Sign in to follow this  
Followers 0
LiquidWarlock

Another Question

6 posts in this topic

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!

Share this post


Link to post
Share on other sites



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

And 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
Wend

Edit: Forgot an EndSelect!!

Edited 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.

Share this post


Link to post
Share on other sites

Thank you both! and check my other post if you could to see if you have any advice please!

Share this post


Link to post
Share on other sites

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 also

good luck

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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.

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