Jump to content

About Gui Theme and system Requirements


 Share

Recommended Posts

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 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

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

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 by picaxe
Link to comment
Share on other sites

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

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))
Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...