| View previous topic :: View next topic |
| Author |
Message |
Thanassis
Joined: 08 Apr 2008 Posts: 2
|
Posted: Wed Jun 04, 2008 12:29 am Post subject: automate the click of the OK button when the window appears |
|
|
I have a popup window that requests the press of the OK button every couple of hours. Is there a way to automate the click of the OK button when the window appears? Any general directions as to how to go about and get it done?
I have learned a ton from this forum and I would appreciate a quick lesson on the subject
T |
|
| Back to top |
|
 |
h4xx0r n00bl37
Joined: 14 Mar 2008 Posts: 56
|
Posted: Wed Jun 04, 2008 2:59 am Post subject: |
|
|
| Code: |
loop, ;makes it go forever
{
Click x, y ;replace x with x-coordinate and y with y coordinate of the button you want to click. (you should be able to find it with the Autoit 3 Window Spy)
sleep, # ;replace # with the duriation in milliseconds between the popups
} |
That should do it |
|
| Back to top |
|
 |
Guest
|
Posted: Wed Jun 04, 2008 3:02 am Post subject: |
|
|
use a loop or SetTimer and a IfWinExist to detect the popup
and then Click the button |
|
| Back to top |
|
 |
PurloinedHeart
Joined: 04 Apr 2008 Posts: 114 Location: Canada
|
Posted: Wed Jun 04, 2008 3:43 am Post subject: |
|
|
| Kinda off topic - You might want to simply Shoot the messenger! |
|
| Back to top |
|
 |
|