ChromeFan Posted September 8, 2008 Share Posted September 8, 2008 (edited) i want my gui to always use "Windows XP Theme" for its title, buttons, etc can someone tell me about it? how to fo it? or is it not possible in autoit? or any comments? whatever?i want my script to run only on XP and vista with minimum 256Mb of ram and 800MHz Proccess, can someone provide some good info about it? or a example code?Thanks!Edit: Spelling mistakes in Title Edited September 8, 2008 by ChromeFan Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, What happened? Casey Stengel Link to comment Share on other sites More sharing options...
Andreik Posted September 8, 2008 Share Posted September 8, 2008 i want my script to run only on XP and vista with minimum 256Mb of ram and 800MHz Proccess, can someone provide some good info about it? or a example code?You can use DOS coomand 'systeminfo' or if you don't like you can use WMI. When the words fail... music speaks. Link to comment Share on other sites More sharing options...
picaxe Posted September 8, 2008 Share Posted September 8, 2008 (edited) Can't help with XP theme, but for the others try $cpuspeed = RegRead("HKEY_LOCAL_MACHINE\HARDWARE\DESCRIPTION\System\CentralProcessor\0", "~MHz") If @OSVersion = "WIN_XP" Or @OSVersion = "WIN_VISTA" Then $aMem = MemGetStats() $iMemSizeMegaBytes = $aMem[1]/1000 Edited September 8, 2008 by picaxe Link to comment Share on other sites More sharing options...
ChromeFan Posted September 9, 2008 Author Share Posted September 9, 2008 thank you all guys for helping me in system requirements question, but i still need to know about using the xp theme in my GUI. i have searched and found EzSkin but it have no skin like origional windows xp theme. anyone please help me out in my GUI problem. Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, What happened? Casey Stengel Link to comment Share on other sites More sharing options...
rasim Posted September 9, 2008 Share Posted September 9, 2008 ChromeFanYou can check what the current theme is used:$Struct = DllStructCreate("wchar File[255];wchar Color[255];wchar Size[255]") $GetTheme = DllCall("UxTheme.dll", "int", "GetCurrentThemeName", _ "ptr", DllStructGetPtr($Struct, "File"), _ "int", 255, _ "ptr", DllStructGetPtr($Struct, "Color"), _ "int", 255, _ "ptr", DllStructGetPtr($Struct, "Size"), _ "int", 255) MsgBox(0, "", "Theme file: " & DllStructGetData($Struct, 1) & @LF & @LF & _ "Color scheme: " & DllStructGetData($Struct, 2) & @LF & @LF & _ "Font size: " & DllStructGetData($Struct, 3)) Link to comment Share on other sites More sharing options...
ChromeFan Posted September 9, 2008 Author Share Posted September 9, 2008 ChromeFan You can check what the current theme is used: $Struct = DllStructCreate("wchar File[255];wchar Color[255];wchar Size[255]") $GetTheme = DllCall("UxTheme.dll", "int", "GetCurrentThemeName", _ "ptr", DllStructGetPtr($Struct, "File"), _ "int", 255, _ "ptr", DllStructGetPtr($Struct, "Color"), _ "int", 255, _ "ptr", DllStructGetPtr($Struct, "Size"), _ "int", 255) MsgBox(0, "", "Theme file: " & DllStructGetData($Struct, 1) & @LF & @LF & _ "Color scheme: " & DllStructGetData($Struct, 2) & @LF & @LF & _ "Font size: " & DllStructGetData($Struct, 3)) Thanks! but i want to use the theme in my GUI, can you tell me about it? i am trying to use xp theme in my GUI. Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, What happened? Casey Stengel Link to comment Share on other sites More sharing options...
ChromeFan Posted September 12, 2008 Author Share Posted September 12, 2008 Ding "it's a Dump" Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, What happened? Casey Stengel Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now