TheTaxCollector Posted February 22, 2013 Posted February 22, 2013 hello, first of all i am new to scripting and just wanted to make an .exe which replaces the standard boot gui with the os information. i copied the the script from Szhlopp in this thread and just changed the buttons and the tab. it didn't work and i can't figure out how. what am i doing wrong? there are no errors on my machine when i run the script and it does nothing when i run the compiled .exe. here is "my" script: #include-once #include "GuiTab.au3" Run("msconfig.exe") WinWait("System Configuration") Sleep(500) $hSysconfig = WinGetHandle("System Configuration") $hTab = ControlGetHandle($hSysConfig, "", "SysTabControl321") ; Click Boot _GUICtrlTab_ClickTab($hTab, 1) Sleep(50) ; Check No Gui Start ControlCommand($hSysConfig, "", "Button10", "Check") Sleep(50) ; Check Show OS Boot Information ControlCommand($hSysConfig, "", "Button13", "Check") Sleep(50) ; Click Apply ControlClick($hSysConfig, "", "Button25") Sleep(50) i'd apreciate any help concerning this matter. thanks tax
johnmcloud Posted February 22, 2013 Posted February 22, 2013 (edited) Just an example Opt("WinTitleMatchMode", 2) ; see help ShellExecute("msconfig.exe", -4) ; Start on the fourth tab = BOOT.INI $HWnd = WinWait("system") Sleep(50) $hSysconfig = WinGetHandle($HWnd) ; How to move SYSTEM TAB like MsConfig,in the example the second TAB on the right ;~ ControlSend($hSysconfig, "", "[CLASS:SysTabControl32; INSTANCE:1]", "{RIGHT}""{RIGHT}") ; End ControlCommand($hSysconfig, "", "[CLASS:Button; INSTANCE:6]", "Check", "") ; Check NOGUI Checkbox Sleep(50) Understood? Edited February 22, 2013 by johnmcloud
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