| View previous topic :: View next topic |
| Author |
Message |
Stormsender
Joined: 28 Nov 2006 Posts: 1
|
Posted: Tue Nov 28, 2006 2:10 am Post subject: Simple mouse click loop I can't get to work |
|
|
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 |
|
 |
.AHK
Joined: 26 Apr 2006 Posts: 662 Location: USA
|
Posted: Tue Nov 28, 2006 2:58 am Post subject: |
|
|
| 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 |
|
 |
BETLOG
Joined: 27 Nov 2006 Posts: 218 Location: Queensland, Australia
|
Posted: Tue Nov 28, 2006 3:58 am Post subject: |
|
|
..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 |
|
 |
|