Sign in to follow this  
Followers 0
TheTaxCollector

msconfig - replace boot gui with os boot information

2 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by johnmcloud

Share this post


Link to post
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
Sign in to follow this  
Followers 0