| View previous topic :: View next topic |
| Author |
Message |
BlindRage
Joined: 09 Nov 2004 Posts: 1
|
Posted: Tue Nov 09, 2004 4:09 am Post subject: newb needs help writing a looping script |
|
|
what I want to do is make a script that loops indefenetly until I turn it off, here's what I want the loop to do
left click, spacebar, pause 1 second, left click, spacebar, pause 45 seconds
it can click on whatever it's current coordinates are to keep it simple, can anyone help me out? |
|
| Back to top |
|
 |
Gre
Joined: 12 Oct 2004 Posts: 77 Location: São Paulo ,Brazil
|
Posted: Tue Nov 09, 2004 5:45 am Post subject: |
|
|
this is the simplest example
| Code: | loop
{
mouseclick,left
send, {space}
sleep, 1000
mouseclick,left
send, {space}
sleep, 45000
}
#k::ExitApp |
|
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Tue Nov 09, 2004 10:23 pm Post subject: |
|
|
| There's also an example of a hotkey that turns its own loop on and off with each press; that is, a toggle. See the FAQ for details. |
|
| Back to top |
|
 |
|