I have a project that has buttons that lead to functions that dont work in Win2000/NT at all. Is there way my project can detect what operating system its launched in, and disable those buttons when in a 2000/NT enviroment and enable again when in xp/98/me. thanks.
Is it possible Pt.2
Collapse
X
-
Worm (or anybody else) would you be so kind as to show me a code to use that action to hide a button if the operating system is is not present and vise versa, thanks.
This is what I could fiqure out so far, but im not sure if thats gonna get me anywhere.
OS_versioninfo = System.GetOSversioninfo()
if (OS_versioninfo=="Windows XP") or (OS_versioninfo=="Windows ME") or (OS_versioninfo=="Windows 98")
Comment
-
-
Originally posted by clienteleWorm (or anybody else) would you be so kind as to show me a code to use that action to hide a button if the operating system is is not present and vise versa, thanks.
This is what I could fiqure out so far, but im not sure if thats gonna get me anywhere.
OS_versioninfo = System.GetOSversioninfo()
if (OS_versioninfo=="Windows XP") or (OS_versioninfo=="Windows ME") or (OS_versioninfo=="Windows 98")Code:OS_versioninfo = System.GetOSName if OS_versioninfo == "Windows XP" then Button.SetVisible("ButtonXP", true); Button.SetVisible("Button98", false); elseif OS_versioninfo == "Windows 98" then Button.SetVisible("ButtonXP", false); Button.SetVisible("Button98", true); elseif OS_versioninfo == "" then Dialog.Message("Error", "There was an error."); end
TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
Originally posted by TJ_TiggerCode:OS_versioninfo = System.GetOSName if OS_versioninfo == "Windows XP" then Button.SetVisible("ButtonXP", true); Button.SetVisible("Button98", false); elseif OS_versioninfo == "Windows 98" then Button.SetVisible("ButtonXP", false); Button.SetVisible("Button98", true); elseif OS_versioninfo == "" then Dialog.Message("Error", "There was an error."); end
Comment
-
-
I ran the code below on a XP system but the buttons still showed up, is there something wrong In the code pls let me know thanks.
OS_versioninfo = System.GetOSName
if OS_versioninfo == "Windows XP" then
Button.SetVisible("Buttonxp1", false);
Button.SetVisible("Buttonxp2", false);
elseif OS_versioninfo == "Windows 98" then
Button.SetVisible("Buttonxp1", true);
Button.SetVisible("Buttonxp2", true);
elseif OS_versioninfo == "Windows Me" then
Button.SetVisible("Buttonxp1", true);
Button.SetVisible("Buttonxp2", true);
elseif OS_versioninfo == "Windows 2000" then
Button.SetVisible("Buttonxp1", false);
Button.SetVisible("Buttonxp2", false);
elseif OS_versioninfo == "Windows NT" then
Button.SetVisible("Buttonxp1", false);
Button.SetVisible("Buttonxp2", false);
end
Comment
-
-
Originally posted by clienteleI ran the code below on a XP system but the buttons still showed up, is there something wrong In the code pls let me know thanks.
Code:OS_versioninfo = System.GetOSName[color=red]();[/color] if OS_versioninfo == "Windows XP" or OS_versioninfo == "Windows 2000" or OS_versioninfo == "Windows NT 4" OS_versioninfo == "Windows NT 3" then Button.SetVisible("Buttonxp1", false); Button.SetVisible("Buttonxp2", false); elseif OS_versioninfo == "Windows 98" or OS_versioninfo == "Windows ME" then Button.SetVisible("Buttonxp1", true); Button.SetVisible("Buttonxp2", true); end
Last edited by TJ_Tigger; 12-15-2004, 08:52 PM.TJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
-
no problemoTJ-Tigger
"A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
"Draco dormiens nunquam titillandus."
Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine
Comment
-
Comment