LiquidWarlock Posted July 1, 2005 Posted July 1, 2005 I need to know how to make it start...paused i guess. When i open my script it clicks where i want it to, but i need some time to open the window its clicking for back up. So is there a way to start the script paused? A second question. How do i make a button on a GUI do what i want it to? Ex: i want the ok button to start my script, I've read the help files and i sort of understand, but could someone show me an example of how i could make my "OK" button to start the script, and my "Exit" button to close the GUI and script? Thanks!
Moderators SmOke_N Posted July 1, 2005 Moderators Posted July 1, 2005 (edited) Sounds like you need a:Mouseclick("left", $xcoord, $ycoord, 1, 1) Sleep(500) If WinExist("Your title of window your waiting for") Then Sleep(500) ; The rest of your script here EndifAnd for the button:While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Button_1 ; what you want the button to do EndSelect WendEdit: Forgot an EndSelect!! Edited July 1, 2005 by ronsrules Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
jftuga Posted July 1, 2005 Posted July 1, 2005 Use the sleep() command to pause. sleep(1000) is one second.For the 2nd question, see this:http://www.autoitscript.com/autoit3/docs/g...OnEventMode.htmHope this helps!-John Admin_Popup, show computer info or launch shellRemote Manager, facilitates connecting to RDP / VNCProc_Watch, reprioritize cpu intensive processesUDF: _ini_to_dict, transforms ini file entries into variablesUDF: monitor_resolutions, returns resolutions of multiple monitorsReport Computer Problem, for your IT help deskProfile Fixer, fixes a 'missing' AD user profile
LiquidWarlock Posted July 1, 2005 Author Posted July 1, 2005 Thank you both! and check my other post if you could to see if you have any advice please!
Valuater Posted July 1, 2005 Posted July 1, 2005 Thank you both! and check my other post if you could to see if you have any advice please!<{POST_SNAPBACK}>you check the other reply.. i think it applies here alsogood luck8)
LiquidWarlock Posted July 1, 2005 Author Posted July 1, 2005 And Val, it still wont pause when i want it to.. it just continues doing Z's til it has done the complete list, then it lets me pause the rest.
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