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 

my macro ends after like 2minutes

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



Joined: 10 Dec 2007
Posts: 8

PostPosted: Mon Dec 10, 2007 10:43 am    Post subject: my macro ends after like 2minutes Reply with quote

hi, im sorry for this noobish scenery but this is my current issue
(NOTE IM NEW TO THIS)


1.i have autohotkey
2.i made this script
Code:
WinWait, Angels Online - killaroth(Haniel-1),
IfWinNotActive, Angels Online - killaroth(Haniel-1), , WinActivate, Angels Online - killaroth(Haniel-1),
WinWaitActive, Angels Online - killaroth(Haniel-1),

MouseClick, left,  409,  281
Sleep, 100
MouseClick, left,  409,  281
Sleep, 100
MouseClick, left,  394,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  406,  300
Sleep, 100
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  407,  300
Sleep, 100
Send, {F8}
MouseClick, left,  408,  299
Sleep, 100
Send, {F8}
MouseClick, left,  408,  299
Sleep, 100
MouseClick, left,  408,  299
Sleep, 100
Send, {F8}{F8}
MouseClick, left,  408,  299
Sleep, 100
MouseClick, left,  408,  298
Sleep, 100
Send, {F8}
MouseClick, left,  408,  298
Sleep, 100
MouseClick, left,  408,  298
Sleep, 100
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}{F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}{F8}{F8}{F8}{F8}{F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}{F8}{F8}{F8}{F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}{F8}{F8}{F8}{F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}{F8}{F8}{F8}{F8}{F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}{F8}{F8}{F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}{F8}{F8}{F8}{F8}{F8}
MouseClick, left,  408,  297
Sleep, 100
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
Send, {F8}
MouseClick, left,  408,  297
Sleep, 100
MouseClick, left,  408,  297



thats basicly what i need.

but it ends right there and then i would have to be up in order to reopen the application can anyone make this scripty repeat itself over and over without ending i made the exe but it ends after 2minutes what i want is this to repeat it self constantly can someone make it shorter someone told me
that i can make it "repeat" itself over 9999 times wich would let me bot while sleeping someone please help thanks in advanced.


EDIT MADE A NEW SCRIPT SINCE LAST ONE WAS CLICKING EVERYWHERE ON SCREEN


Last edited by killakev on Mon Dec 10, 2007 11:43 am; edited 1 time in total
Back to top
View user's profile Send private message
Guest






PostPosted: Mon Dec 10, 2007 10:49 am    Post subject: Reply with quote

Read the manual about the "Loop" command.
Back to top
killakev



Joined: 10 Dec 2007
Posts: 8

PostPosted: Mon Dec 10, 2007 10:53 am    Post subject: Reply with quote

Anonymous wrote:
Read the manual about the "Loop" command.


is there anyway "you" can make it shorter for me? im 100% noob at this..lol
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 67

PostPosted: Mon Dec 10, 2007 11:11 am    Post subject: Reply with quote

Example:
Code:

Loop
{

   Click 243, 108
   Click 100,200
 
   Sleep 500

}

Pause::ExitApp
Back to top
View user's profile Send private message
killakev



Joined: 10 Dec 2007
Posts: 8

PostPosted: Mon Dec 10, 2007 11:43 am    Post subject: Reply with quote

HM that made my mouse go crazy can u fix that script i just made edited first post thanks again.
Back to top
View user's profile Send private message
Mustang



Joined: 17 May 2007
Posts: 415
Location: England

PostPosted: Mon Dec 10, 2007 12:28 pm    Post subject: Reply with quote

Stick this at the beginning of your code:
Code:
Loop
{


And this at the end:
Code:
}


Then it will happily keep repeating Very Happy
Back to top
View user's profile Send private message
killakev



Joined: 10 Dec 2007
Posts: 8

PostPosted: Mon Dec 10, 2007 11:29 pm    Post subject: Reply with quote

thanks alot for this info.mustang.

now happily botting a game that your buffs level u up on^^ so im spamming buff take care.
Back to top
View user's profile Send private message
Mustang



Joined: 17 May 2007
Posts: 415
Location: England

PostPosted: Tue Dec 11, 2007 1:35 am    Post subject: Reply with quote

Are there not keyboard shortcuts that can achieve the same thing as a mouseclick?
As this would be more reliable
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