AutoHotkey Community

It is currently May 27th, 2012, 9:27 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: November 9th, 2004, 5:09 am 
Offline

Joined: November 9th, 2004, 4:57 am
Posts: 1
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2004, 6:45 am 
Offline

Joined: October 12th, 2004, 11:34 pm
Posts: 74
Location: São Paulo ,Brazil
this is the simplest example
Code:
loop
{
   mouseclick,left
   send, {space}
   sleep, 1000
   mouseclick,left
   send, {space}
   sleep, 45000
}

#k::ExitApp


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 9th, 2004, 11:23 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, migz99 and 67 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