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 

newb needs help writing a looping script

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



Joined: 09 Nov 2004
Posts: 1

PostPosted: Tue Nov 09, 2004 4:09 am    Post subject: newb needs help writing a looping script Reply with quote

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
View user's profile Send private message
Gre



Joined: 12 Oct 2004
Posts: 77
Location: São Paulo ,Brazil

PostPosted: Tue Nov 09, 2004 5:45 am    Post subject: Reply with quote

this is the simplest example
Code:
loop
{
   mouseclick,left
   send, {space}
   sleep, 1000
   mouseclick,left
   send, {space}
   sleep, 45000
}

#k::ExitApp
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Tue Nov 09, 2004 10:23 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
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