AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple mouse click loop I can't get to work

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Stormsender



Joined: 28 Nov 2006
Posts: 1

PostPosted: Tue Nov 28, 2006 2:10 am    Post subject: Simple mouse click loop I can't get to work Reply with quote

I am really new to this, and I am trying for a repetitive mouse click in one spot in an active window. Any recomendations would be great, thanks.


Loop {

}
Loop %Runcount2545% {

}
Click 67,676
Sleep 80000
Back to top
View user's profile Send private message
.AHK



Joined: 26 Apr 2006
Posts: 662
Location: USA

PostPosted: Tue Nov 28, 2006 2:58 am    Post subject: Reply with quote

Code:

Amount = 10
IfWinActive Apps Title
Loop %Amount% {
Click 67, 676
Sleep 100
}
Return


Last edited by .AHK on Tue Nov 28, 2006 4:56 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website AIM Address
BETLOG



Joined: 27 Nov 2006
Posts: 218
Location: Queensland, Australia

PostPosted: Tue Nov 28, 2006 3:58 am    Post subject: Reply with quote

..or in the format you were asking it:

Runcount2545 = 2545 ;assuming you mean what i think you mean
Loop %Runcount2545% ;having the count/number as part of the name does nothing afaik
{
Click 67, 676 ;click location
Sleep 80000 ;1.3minutes
;2545 clicks at 1.3 minutes apart takes 55.15 hours to exit loop
}
MsgBox, 2545 clicks at 1.3 minutes apart - COMPLETE ;nice to know when it finishes if it takes this long
ExitApp ;is exit required?
;Return
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group