yucatan Posted March 24, 2008 Posted March 24, 2008 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
Zedna Posted March 24, 2008 Posted March 24, 2008 ControlCommand() IsChecked ControlCommand() Check Resources UDF ResourcesEx UDF AutoIt Forum Search
yucatan Posted March 24, 2008 Author Posted March 24, 2008 (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 March 24, 2008 by yucatan
Zedna Posted March 24, 2008 Posted March 24, 2008 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", "") Resources UDF ResourcesEx UDF AutoIt Forum Search
yucatan Posted March 24, 2008 Author Posted March 24, 2008 (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 March 24, 2008 by yucatan
Zedna Posted March 24, 2008 Posted March 24, 2008 i need a command/way to close control panel with a command when iets open it needs to close it how do i do thatWinClose() Resources UDF ResourcesEx UDF AutoIt Forum Search
Swift Posted March 24, 2008 Posted March 24, 2008 WinClose() If WinExists("Control Panel") Then WinClose("Control Panel")
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