Sign in to follow this  
Followers 0
yucatan

checkbox

7 posts in this topic

hi i want to make a script that kliks a checkbox but before he do that he need to look if the box is checked then controlclick the box so it become unchecked if he is already unchecked then exit how do i need to do that

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

;eerst ff kijken of het wel een nederlanse windows is

If not @OSLang = 0413 then msgBox(4096, "ERREUR!", "Dit is geen nederlandse windows.")

;eerst ff kijken of het wel windows xp of vista is

If not @OSVersion = "WIN_xp" And "win_vista" Then msgBox(4096, "ERREUR!", "script is alleen voor XP en Vista.") Exit EndIf

Run(@ComSpec & " /c " & 'control', "", @SW_HIDE)

Send("T")

Send("{ENTER}")

WinWait("Eigenschappen voor Taakbalk en menu Start")

If ControlCommand(Button7) IsChecked Then unCheck

ControlClick("Eigenschappen voor Taakbalk en menu Start", "", "Button7")

ControlClick("Eigenschappen voor Taakbalk en menu Start", "", "Button13")

ControlClick("Eigenschappen voor Taakbalk en menu Start", "", "Button11")

MsgBox(4096, "Finish", "")

Like this?

Edited by yucatan

Share this post


Link to post
Share on other sites

Open AutoIt helpfile and go to ControlCommand()!!!

I gave only advice for the command you should use and not compile/ready solution!

$return = ControlCommand("Eigenschappen voor Taakbalk en menu Start", "", "Button7", "IsChecked", "")

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

i need a command/way to close control panel with a command when iets open it needs to close it how do i do that

Edited by yucatan

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