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 

Small issue =/

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





PostPosted: Sat Jul 19, 2008 8:14 pm    Post subject: Small issue =/ Reply with quote

Can anyone help me fix this script

Loop
{
WinWait, Bleach Unleashed,
IfWinNotActive, Bleach Unleashed, , WinActivate, Bleach Unleashed,
WinWaitActive, Bleach Unleashed,
MouseClick, left, 46, 656 i want this to be repeated for 3minutes
MouseClick, left, 46, 656
Sleep, 100
MouseClick, left, 194, 594
MouseClick, left, 194, 594 and then this right after those 3minutes =)
Sleep, 100
}

Thanks in advanced guys =)
Back to top
ScionOfWar
Guest





PostPosted: Sat Jul 19, 2008 8:27 pm    Post subject: Reply with quote

Quote:
MouseClick, left, 46, 656 i want this to be repeated for 3minutes
MouseClick, left, 46, 656
Sleep, 100
MouseClick, left, 194, 594
MouseClick, left, 194, 594 and then this right after those 3minutes =)
Sleep, 100


Try something like

Loop, 3 ;first three minutes
{
Sleep, value ;change value accordingly
MouseClick, left, 46, 656 i want this to be repeated for 3minutes
MouseClick, left, 46, 656
}

Loop, 3 ;Second three minutes
{
Sleep, value ;change value
MouseClick, left, 194, 594
MouseClick, left, 194, 594 and then this right after those 3minutes =)
}


That might work. The loop will cause it to repeat however many times you want. Change the Loop value so it'll repeat the amount you'd like, and the Sleep value to change the timer.
Back to top
Kev
Guest





PostPosted: Sat Jul 19, 2008 8:29 pm    Post subject: Reply with quote

Yea but im new to this so how exactly would i add that script =/ i just got confused withthe "loop ,3" on both of the scripts u made
Back to top
ScionOfWar
Guest





PostPosted: Sat Jul 19, 2008 8:37 pm    Post subject: Reply with quote

Loop
{
WinWait, Bleach Unleashed,
IfWinNotActive, Bleach Unleashed, , WinActivate, Bleach Unleashed,
WinWaitActive, Bleach Unleashed,

Loop, 3 ;first three minutes
{
Sleep, value ;change value accordingly
MouseClick, left, 46, 656
MouseClick, left, 46, 656
}

Loop, 3 ;Second three minutes
{
Sleep, value ;change value
MouseClick, left, 194, 594
MouseClick, left, 194, 594
}

}
return
Back to top
Guest






PostPosted: Sat Jul 19, 2008 8:38 pm    Post subject: Reply with quote

Whoops, I forgot to add, you have to edit the bolded selections.

The number next to loop is the number of times you want it to repeat.

The number next to the sleep, like you probably already figured out, is how long it'll pause each loop.
Back to top
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