Sign in to follow this  
Followers 0
Scinner

Assign key to break out of loop?

27 posts in this topic

#1 ·  Posted (edited)

Hi guys!

How do I assign a key to break out of the "Do" loop and continue on in the script?

While 1

$i = 0
Do

;do stuff
$i = $i + 1
Until $i = 11

;do stuff

WEnd

Thanks in advance!

Edited by Scinner

Share this post


Link to post
Share on other sites



Scinner,

This is one way to do it

HotKeySet("{PAUSE}", "TogglePause")

Local $pause = true

While $pause

    $i = 0
    Do

        ;do stuff
        $i = $i + 1
    Until $i = 11

    ;do stuff

WEnd

ConsoleWrite('Left loop' & @LF)

func TogglePause()
    $pause = not $pause
endfunc

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

kylomas

Not been able to try the script out (@work).

Isn't that code you wrote to pause the script? If so, I dont want to pause.

I wan't to break out of the Do loop manually and before $i equals 11 just to continue on with the code written after the Do loop.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

No, just run it and you'll see. The variable name is mis-leading. I cobbled this directly out of the help file.

kylomas

edit: modified code

If you prefer try do it this way...

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = true

While $break

    $i = 0
    Do

        ;do stuff
        $i = $i + 1
    Until $i = 11

    ;do stuff

WEnd

ConsoleWrite('Left loop' & @LF)

func Bust_Out_Of_This_Dog()
    $break = not $break
endfunc
Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

No, just run it and you'll see. The variable name is mis-leading. I cobbled this directly out of the help file.

kylomas

edit: modified code

If you prefer try do it this way...

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = true

While $break

    $i = 0
    Do

        ;do stuff
        $i = $i + 1
    Until $i = 11

    ;do stuff

WEnd

ConsoleWrite('Left loop' & @LF)

func Bust_Out_Of_This_Dog()
    $break = not $break
endfunc

I can't seem to get it to work?

Here is my code:

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = true

While $break

$i = 0
Do
Sleep(Random(1000*3, 1000*4))
MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1))
Sleep(Random(1000*2, 1000*3))
MouseClick("left", Random(1427, 1437, 1), Random(276, 286, 1))
MouseClick("left", Random(258, 268, 1), Random(297, 307, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(350, 360, 1), Random(352, 362, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(445, 455, 1), Random(398, 408, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(539, 549, 1), Random(450, 460, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(631, 641, 1), Random(488, 498, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(722, 732, 1), Random(538, 548, 1))
Sleep(Random(1000*4, 1000*5))
MouseClick("left", Random(258, 268, 1), Random(297, 307, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(350, 360, 1), Random(352, 362, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(445, 455, 1), Random(398, 408, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(539, 549, 1), Random(450, 460, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(631, 641, 1), Random(488, 498, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(722, 732, 1), Random(538, 548, 1))
Sleep(Random(1000*1, 1000*2))
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*305, 1000*310))
$i = $i + 1
Until $i = 11

MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1))
Sleep(Random(1000*2, 1000*3))
MouseClick("left", Random(1427, 1437, 1), Random(276, 286, 1))
Sleep(Random(1000*4, 1000*5))
MouseClick("left", Random(565, 584, 1), Random(147, 167, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(626, 646, 1), Random(178, 198, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(689, 701, 1), Random(208, 228, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(753, 773, 1), Random(237, 257, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(815, 835, 1), Random(270, 290, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(878, 898, 1), Random(300, 317, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(940, 960, 1), Random(332, 352, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(472, 492, 1), Random(192, 212, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(535, 555, 1), Random(222, 242, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(598, 618, 1), Random(254, 274, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(658, 678, 1), Random(286, 306, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(722, 742, 1), Random(317, 337, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(784, 804, 1), Random(347, 367, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(847, 867, 1), Random(378, 398, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(409, 429, 1), Random(223, 243, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(472, 492, 1), Random(253, 273, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(534, 554, 1), Random(287, 307, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(599, 620, 1), Random(317, 337, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(659, 679, 1), Random(347, 367, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(722, 742, 1), Random(381, 401, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(785, 805, 1), Random(409, 429, 1))
MouseClick("left", Random(324, 334, 1), Random(268, 278, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(386, 396, 1), Random(300, 310, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(453, 463, 1), Random(328, 339, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(511, 521, 1), Random(356, 366, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(570, 580, 1), Random(393, 403, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(635, 645, 1), Random(425, 435, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(700, 710, 1), Random(456, 466, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(761, 771, 1), Random(491, 501, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(820, 830, 1), Random(518, 528, 1))
Sleep(Random(200*1, 500*1))
WEnd
ConsoleWrite('Left loop' & @LF)

func Bust_Out_Of_This_Dog()
$break = not $break
endfunc

Share this post


Link to post
Share on other sites

Scinner,

Don't use moseclicks and sleep a lot so you'll have to wait for someone that knows what they are doing...

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = True

While 1

    $i = 0
    Do
        Sleep(Random(1000 * 3, 1000 * 4))
        If Not MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1)) And $break Then ExitLoop
        ; You'll need to do it with all of them if you want to immediately break out of the loop, and not continue it after a pause function.

        $i = $i + 1
    Until $i = 11
    ConsoleWrite('Left Do loop' & @LF)

    MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1))
    Sleep(Random(1000 * 2, 1000 * 3))

WEnd
ConsoleWrite('Left while loop' & @LF)

Func Bust_Out_Of_This_Dog()
    $break = Not $break
EndFunc   ;==>Bust_Out_Of_This_Dog

Edited by JohnOne

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Well, the whole script is based upon mouseclicks.

Share this post


Link to post
Share on other sites

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = True

While 1

$i = 0
Do
Sleep(Random(1000 * 3, 1000 * 4))
If Not MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1)) And $break Then ExitLoop
; You'll need to do it with all of them if you want to immediately break out of the loop, and not continue it after a pause function.

$i = $i + 1
Until $i = 11
ConsoleWrite('Left Do loop' & @LF)

MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1))
Sleep(Random(1000 * 2, 1000 * 3))

WEnd
ConsoleWrite('Left while loop' & @LF)

Func Bust_Out_Of_This_Dog()
$break = Not $break
EndFunc ;==>Bust_Out_Of_This_Dog

Thx, I'll try that!

Share this post


Link to post
Share on other sites

naughty script. I suppose mouse clicks on elements in a game and random sleeps in a range of specific intervals to ensure you're not caught?


Spoiler

“Hello, ladies, look at your man, now back to me, now back at your man, now back to me. Sadly, he isn’t me, but if he stopped using ladies scented body wash and switched to Old Spice, he could smell like he’s me. Look down, back up, where are you? You’re on a boat with the man your man could smell like. What’s in your hand, back at me. I have it, it’s an oyster with two tickets to that thing you love. Look again, the tickets are now diamonds. Anything is possible when your man smells like Old Spice and not a lady. I’m on a horse.”

 

Share this post


Link to post
Share on other sites

Well this isn't working either.

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = True

While 1


$i = 0
Do
Sleep(Random(1000*3, 1000*4))
If Not MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1)) And $break Then ExitLoop
Sleep(Random(1000*2, 1000*3))
If Not MouseClick("left", Random(1427, 1437, 1), Random(276, 286, 1)) And $break Then ExitLoop
Sleep(Random(1000*2, 1000*3))
If Not MouseClick("left", Random(258, 268, 1), Random(297, 307, 1)) And $break Then ExitLoop
Sleep(Random(200*1, 500*1))
If Not MouseClick("left", Random(350, 360, 1), Random(352, 362, 1)) And $break Then ExitLoop
Sleep(Random(200*1, 500*1))
If Not MouseClick("left", Random(445, 455, 1), Random(398, 408, 1)) And $break Then ExitLoop
Sleep(Random(200*1, 500*1))
If Not MouseClick("left", Random(539, 549, 1), Random(450, 460, 1)) And $break Then ExitLoop
Sleep(Random(200*1, 500*1))
If Not MouseClick("left", Random(631, 641, 1), Random(488, 498, 1)) And $break Then ExitLoop
Sleep(Random(200*1, 500*1))
If Not MouseClick("left", Random(722, 732, 1), Random(538, 548, 1)) And $break Then ExitLoop
Sleep(Random(1000*4, 1000*5))
If Not MouseClick("left", Random(258, 268, 1), Random(297, 307, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(697, 707, 1), Random(469, 479, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(350, 360, 1), Random(352, 362, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(697, 707, 1), Random(469, 479, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(445, 455, 1), Random(398, 408, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(697, 707, 1), Random(469, 479, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(539, 549, 1), Random(450, 460, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(697, 707, 1), Random(469, 479, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(631, 641, 1), Random(488, 498, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(697, 707, 1), Random(469, 479, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(722, 732, 1), Random(538, 548, 1)) And $break Then ExitLoop
Sleep(Random(1000*1, 1000*2))
If Not MouseClick("left", Random(697, 707, 1), Random(469, 479, 1)) And $break Then ExitLoop
Sleep(Random(1000*305, 1000*310))
$i = $i + 1
Until $i = 11
ConsoleWrite('Left Do loop' & @LF)

MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1))
Sleep(Random(1000*2, 1000*3))
MouseClick("left", Random(1427, 1437, 1), Random(276, 286, 1))
Sleep(Random(1000*4, 1000*5))
MouseClick("left", Random(565, 584, 1), Random(147, 167, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(626, 646, 1), Random(178, 198, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(689, 701, 1), Random(208, 228, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(753, 773, 1), Random(237, 257, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(815, 835, 1), Random(270, 290, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(878, 898, 1), Random(300, 317, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(940, 960, 1), Random(332, 352, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(472, 492, 1), Random(192, 212, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(535, 555, 1), Random(222, 242, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(598, 618, 1), Random(254, 274, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(658, 678, 1), Random(286, 306, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(722, 742, 1), Random(317, 337, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(784, 804, 1), Random(347, 367, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(847, 867, 1), Random(378, 398, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(409, 429, 1), Random(223, 243, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(472, 492, 1), Random(253, 273, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(534, 554, 1), Random(287, 307, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(599, 620, 1), Random(317, 337, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(659, 679, 1), Random(347, 367, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(722, 742, 1), Random(381, 401, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(785, 805, 1), Random(409, 429, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(324, 334, 1), Random(268, 278, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(386, 396, 1), Random(300, 310, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(453, 463, 1), Random(328, 339, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(511, 521, 1), Random(356, 366, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(570, 580, 1), Random(393, 403, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(635, 645, 1), Random(425, 435, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(700, 710, 1), Random(456, 466, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(761, 771, 1), Random(491, 501, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(820, 830, 1), Random(518, 528, 1))
Sleep(Random(200*1, 500*1))
WEnd
ConsoleWrite('Left While loop' & @LF)

Func Bust_Out_Of_This_Dog()
$break = Not $break
EndFunc ;==>Bust_Out_Of_This_Dog

Share this post


Link to post
Share on other sites

#12 ·  Posted (edited)

Scinner,

Don't use moseclicks and sleep a lot so you'll have to wait for someone that knows what they are doing...

kylomas

I did not make myself clear...should have said "I don't use ..."

Two more things:

"Well, that is'nt working either" is not an adequate explanation of the problem

Have you read the forum rules?

kylomas

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

I did not make myself clear...should have said "I don't use ..."

Two more things:

"Well, that is'nt working either" is not an adequate explanation of the problem

Have you read the forum rules?

kylomas

I get no respons by pressing F1, the script works as it did before I added the new code.

Where can I find the forum rules? Ive tried searching for "Forum rules" and looking for them but cant find them?

Share this post


Link to post
Share on other sites

Try this.

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = True

While $break

    $i = 0
    Do
        If Not ($break And Sleep(1000)) Then ExitLoop
        If Not ($break And Beep(700,150)) Then ExitLoop
        ; You'll need to do it with all of them if you want to immediately break out of the loop, and not continue it after a pause function.

        $i = $i + 1
    Until $i = 11
    MsgBox(0,0,"Out of do loop")
    Exit

WEnd
ConsoleWrite('Left while loop' & @LF)

Func Bust_Out_Of_This_Dog()
    $break = Not $break
EndFunc   ;==>Bust_Out_Of_This_Dog

AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

Where can I find the forum rules? Ive tried searching for "Forum rules" and looking for them but cant find them?

When you enter the forum they are right at the top...


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

Where can I find the forum rules? Ive tried searching for "Forum rules" and looking for them but cant find them?

When you enter the forum they are right at the top...

When I enter i see:

Announcements and Site News

User Moderation

And I cant see forum rules in those two categories. Please give me the adress.

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

Try this.

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = True

While $break

    $i = 0
    Do
        If Not ($break And Sleep(1000)) Then ExitLoop
        If Not ($break And Beep(700,150)) Then ExitLoop
        ; You'll need to do it with all of them if you want to immediately break out of the loop, and not continue it after a pause function.

        $i = $i + 1
    Until $i = 11
    MsgBox(0,0,"Out of do loop")
    Exit

WEnd
ConsoleWrite('Left while loop' & @LF)

Func Bust_Out_Of_This_Dog()
    $break = Not $break
EndFunc ;==>Bust_Out_Of_This_Dog

When I use this code it exits the script:

HotKeySet("{F1}", "Bust_Out_Of_This_Dog")

Local $break = True

While $break


$i = 0
Do
Sleep(Random(1000*3, 1000*4))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1))
Sleep(Random(1000*2, 1000*3))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(1427, 1437, 1), Random(276, 286, 1))
Sleep(Random(1000*2, 1000*3))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(258, 268, 1), Random(297, 307, 1))
Sleep(Random(200*1, 500*1))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(350, 360, 1), Random(352, 362, 1))
Sleep(Random(200*1, 500*1))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(445, 455, 1), Random(398, 408, 1))
Sleep(Random(200*1, 500*1))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(539, 549, 1), Random(450, 460, 1))
Sleep(Random(200*1, 500*1))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(631, 641, 1), Random(488, 498, 1))
Sleep(Random(200*1, 500*1))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(722, 732, 1), Random(538, 548, 1))
Sleep(Random(1000*4, 1000*5))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(258, 268, 1), Random(297, 307, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(350, 360, 1), Random(352, 362, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(445, 455, 1), Random(398, 408, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(539, 549, 1), Random(450, 460, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(631, 641, 1), Random(488, 498, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(722, 732, 1), Random(538, 548, 1))
Sleep(Random(1000*1, 1000*2))
If Not ($break And Sleep(1000)) Then ExitLoop
MouseClick("left", Random(697, 707, 1), Random(469, 479, 1))
Sleep(Random(1000*305, 1000*310))
$i = $i + 1
Until $i = 11
MsgBox(0,0,"Out of do loop")
  Exit

MouseClick("left", Random(886, 1036, 1), Random(660, 670, 1))
Sleep(Random(1000*2, 1000*3))
MouseClick("left", Random(1427, 1437, 1), Random(276, 286, 1))
Sleep(Random(1000*4, 1000*5))
MouseClick("left", Random(565, 584, 1), Random(147, 167, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(626, 646, 1), Random(178, 198, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(689, 701, 1), Random(208, 228, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(753, 773, 1), Random(237, 257, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(815, 835, 1), Random(270, 290, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(878, 898, 1), Random(300, 317, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(940, 960, 1), Random(332, 352, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(472, 492, 1), Random(192, 212, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(535, 555, 1), Random(222, 242, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(598, 618, 1), Random(254, 274, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(658, 678, 1), Random(286, 306, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(722, 742, 1), Random(317, 337, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(784, 804, 1), Random(347, 367, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(847, 867, 1), Random(378, 398, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(409, 429, 1), Random(223, 243, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(472, 492, 1), Random(253, 273, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(534, 554, 1), Random(287, 307, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(599, 620, 1), Random(317, 337, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(659, 679, 1), Random(347, 367, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(722, 742, 1), Random(381, 401, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(785, 805, 1), Random(409, 429, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(324, 334, 1), Random(268, 278, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(386, 396, 1), Random(300, 310, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(453, 463, 1), Random(328, 339, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(511, 521, 1), Random(356, 366, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(570, 580, 1), Random(393, 403, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(635, 645, 1), Random(425, 435, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(700, 710, 1), Random(456, 466, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(761, 771, 1), Random(491, 501, 1))
Sleep(Random(200*1, 500*1))
MouseClick("left", Random(820, 830, 1), Random(518, 528, 1))
Sleep(Random(200*1, 500*1))
WEnd
ConsoleWrite('Left while loop' & @LF)

Func Bust_Out_Of_This_Dog()
$break = Not $break
EndFunc ;==>Bust_Out_Of_This_Dog
Edited by Scinner

Share this post


Link to post
Share on other sites

Scinner,

Here

kylomas


Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Share this post


Link to post
Share on other sites

Scinner,

Here

kylomas

Thx!

I wonder why I can't see "Forum rules", I got there with your link but I cant see it if just enter the forum. Strange?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0