AutoHotkey Community

It is currently May 27th, 2012, 1:12 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: June 4th, 2008, 12:29 am 
Offline

Joined: April 8th, 2008, 2:17 pm
Posts: 3
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2008, 2:59 am 
Offline

Joined: March 14th, 2008, 3:33 am
Posts: 60
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2008, 3:02 am 
use a loop or SetTimer and a IfWinExist to detect the popup
and then Click the button


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2008, 3:43 am 
Offline

Joined: April 4th, 2008, 8:15 pm
Posts: 538
Location: Canada
Kinda off topic - You might want to simply Shoot the messenger!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Amandaville, BrandonHotkey, chaosad, Yahoo [Bot] and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group