PDA

View Full Version : Message.box


rheuvink
02-10-2006, 08:46 AM
Please could someone help out. I'm reading 2 registry entry's and want to create 1 messagebox out of them. The only thing i could create is 2 messageboxes. How can i combine the entry's to 1 messagebox?
(this reads what windows version+ what service pack)
This is what i have:
-- Read the values.
registry_value = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", true);
registry_value2 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "CSDVersion", true);
-- Display the value read from the Registry in a dialog.
Dialog.Message("Registry Data", "Uw systeem heeft "..registry_value..".");
Dialog.Message("Registry Data", "En "..registry_value2..".");

Worm
02-10-2006, 08:52 AM
-- Read the values.
registry_value = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", true);
registry_value2 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "CSDVersion", true);
-- Display the value read from the Registry in a dialog.
Dialog.Message("Registry Data", "Uw systeem heeft "..registry_value..".\r\nEn "..registry_value2..".");

TJ_Tigger
02-10-2006, 08:52 AM
Try this


-- Read the values.
registry_value = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "ProductName", true);
registry_value2 = Registry.GetValue(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion", "CSDVersion", true);
-- Display the value read from the Registry in a dialog.
Dialog.Message("Registry Data", "Uw systeem heeft "..registry_value..".\r\nEn "..registry_value2..".");


man that Worm is a quick draw. Beat me again. :D

Worm
02-10-2006, 08:53 AM
sorry.. double post :)

rheuvink
02-10-2006, 12:59 PM
thanx guys, you're the best! :D