 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Kev Guest
|
Posted: Sat Jul 19, 2008 8:14 pm Post subject: Small issue =/ |
|
|
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
|
Posted: Sat Jul 19, 2008 8:27 pm Post subject: |
|
|
| 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
|
Posted: Sat Jul 19, 2008 8:29 pm Post subject: |
|
|
| 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
|
Posted: Sat Jul 19, 2008 8:37 pm Post subject: |
|
|
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
|
Posted: Sat Jul 19, 2008 8:38 pm Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|