Jump to content
Sign in to follow this  
zutto

Need help placing repeat in this script

Recommended Posts

zutto

yeah.. here its:

WinWait("d2jsp - Ladder Slasher - Mozilla Firefox","")
If Not WinActive("d2jsp - Ladder Slasher - Mozilla Firefox","") Then WinActivate("d2jsp - Ladder Slasher - Mozilla Firefox","")
WinWaitActive("d2jsp - Ladder Slasher - Mozilla Firefox","")
MouseMove(412,288)
MouseDown("left")
MouseUp("left")
sleep("50")
MouseMove(404,288)
MouseDown("left")
sleep("50")
MouseMove(400,286)
MouseUp("left")
sleep("50")
MouseMove(399,286)
MouseDown("left")
sleep("50")
MouseMove(395,286)
MouseUp("left")
sleep("50")
MouseMove(395,288)
MouseDown("left")
sleep("50")
MouseMove(395,290)
MouseUp("left")
sleep("50")
MouseMove(404,292)
MouseDown("left")
sleep("50")
MouseMove(417,293)
MouseUp("left")
sleep("50")
MouseMove(422,293)
MouseDown("left")
sleep("50")
MouseMove(430,293)
MouseUp("left")
sleep("50")
MouseMove(434,291)
MouseDown("left")
sleep("50")
MouseMove(437,282)
MouseUp("left")
sleep("50")
MouseMove(435,272)
MouseDown("left")
sleep("50")
MouseMove(423,272)
MouseUp("left")
sleep("50")
MouseMove(411,272)
MouseDown("left")
sleep("50")
MouseMove(407,272)
MouseUp("left")
sleep("50")
MouseMove(401,275)
MouseDown("left")
sleep("50")
MouseMove(396,278)
MouseUp("left")
sleep("50")
MouseMove(395,278)
MouseDown("left")
sleep("50")
MouseMove(389,285)
MouseUp("left")
sleep("50")
MouseMove(389,291)
MouseDown("left")
sleep("50")
MouseMove(394,295)
MouseUp("left")
sleep("50")
MouseMove(407,295)
MouseDown("left")
sleep("50")
MouseMove(418,290)
MouseUp("left")
sleep("50")
MouseMove(421,286)
MouseDown("left")
sleep("50")
MouseMove(415,278)
MouseUp("left")
sleep("50")
MouseMove(391,266)
MouseClick("left",389,265,2)
sleep("50")
MouseMove(386,283)
MouseDown("left")
sleep("50")
MouseMove(394,287)
MouseUp("left")
sleep("50")
MouseMove(409,287)
MouseDown("left")
sleep("50")
MouseMove(419,285)
MouseUp("left")
sleep("50")
MouseMove(426,283)
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(430,281)
MouseUp("left")
sleep("50")
MouseMove(432,280)
MouseDown("left")
sleep("50")
MouseMove(430,279)
MouseUp("left")
sleep("50")
MouseMove(423,278)
MouseDown("left")
sleep("50")
MouseMove(414,277)
sleep("50")
MouseUp("left")
MouseMove(400,274)
MouseDown("left")
sleep("50")
MouseMove(390,274)
MouseUp("left")
sleep("50")
MouseMove(385,273)
MouseDown("left")
sleep("50")
MouseMove(376,273)
MouseUp("left")
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(391,286)
MouseUp("left")
sleep("50")
MouseMove(395,286)
MouseDown("left")
sleep("50")
MouseMove(402,286)
MouseUp("left")
sleep("50")
MouseMove(407,285)
sleep("50")
MouseDown("left")
MouseMove(413,282)
MouseUp("left")
sleep("50")
MouseMove(417,281)
MouseDown("left")
sleep("50")
MouseMove(417,280)
MouseUp("left")
sleep("50")
MouseMove(427,279)
MouseDown("left")
sleep("50")
MouseUp("left")
sleep("50")
MouseMove(429,279)
MouseClick("left",430,279,2)
sleep("50")
MouseMove(422,277)
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(413,272)
sleep("50")
MouseUp("left")
sleep("50")
MouseMove(411,271)
sleep("50")
MouseDown("left")
MouseMove(396,268)
MouseUp("left")
sleep("50")
MouseMove(392,268)
MouseDown("left")
MouseMove(385,275)
MouseUp("left")
sleep("50")
MouseDown("left")
MouseMove(399,278)
MouseUp("left")
sleep("50")
MouseMove(406,278)
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(412,278)
MouseUp("left")
sleep("50")
MouseMove(439,530)
MouseDown("left")
sleep("50")
MouseUp("left")
MouseClick("left",403,294,2)
sleep("50")
MouseMove(411,292)
MouseDown("left")
sleep("50")
MouseMove(411,290)
MouseUp("left")
sleep("50")
MouseClick("left",411,287,2)
sleep("50")
MouseMove(406,287)
MouseDown("left")
sleep("50")
MouseMove(403,287)
MouseUp("left")
sleep("50")
MouseMove(401,287)
MouseDown("left")
sleep("50")
MouseMove(405,292)
MouseUp("left")
sleep("50")
MouseClick("left",409,294,2)
sleep("50")
MouseMove(412,290)
MouseDown("left")
sleep("50")
MouseMove(412,288)
MouseUp("left")
sleep("50")
MouseMove(410,287)
MouseDown("left")
sleep("50")
MouseMove(405,287)
MouseUp("left")
sleep("50")
MouseMove(404,287)
MouseDown("left")
sleep("50")
MouseMove(400,287)
MouseUp("left")
sleep("50")
MouseMove(398,287)
MouseDown("left")
MouseUp("left")
sleep("50")
MouseMove(399,290)
MouseDown("left")
MouseMove(404,293)
MouseUp("left")
sleep("50")
MouseMove(406,293)
sleep("50")
MouseDown("left")
MouseMove(408,293)
MouseUp("left")
sleep("50")
MouseDown("left")
MouseMove(408,290)
MouseUp("left")
sleep("50")
MouseMove(411,284)
MouseDown("left")
sleep("50")
MouseUp("left")
MouseMove(408,282)
MouseDown("left")
sleep("50")
MouseMove(407,282)
MouseUp("left")
sleep("50")
MouseMove(399,286)
MouseDown("left")
sleep("50")
MouseMove(403,283)
MouseUp("left")
sleep("50")
MouseMove(409,280)
MouseDown("left")
sleep("50")
MouseMove(410,280)
MouseUp("left")
sleep("50")
MouseMove(416,280)
MouseDown("left")
sleep("50")
MouseMove(420,286)
MouseUp("left")
sleep("50")
MouseMove(421,286)
MouseDown("left")
sleep("50")
MouseMove(411,287)
MouseUp("left")
sleep("50")
MouseMove(403,287)
MouseDown("left")
sleep("50")
MouseMove(395,284)
MouseUp("left")
sleep("50")
MouseMove(392,282)
MouseDown("left")
sleep("50")
MouseMove(395,277)
MouseUp("left")
sleep("50")
MouseMove(402,276)
MouseDown("left")
sleep("50")
MouseMove(403,276)
MouseUp("left")
sleep("50")
MouseMove(413,280)
MouseDown("left")
sleep("50")
MouseMove(416,285)
MouseUp("left")
sleep("50")
MouseMove(420,285)
MouseDown("left")
sleep("50")
MouseMove(422,284)
MouseUp("left")
sleep("50")
MouseMove(420,272)
MouseDown("left")
sleep("50")
MouseMove(413,271)
MouseUp("left")
sleep("50")
MouseDown("left")
MouseMove(398,274)
MouseUp("left")
sleep("50")
MouseMove(397,274)
MouseDown("left")
sleep("50")
MouseMove(395,273)
MouseUp("left")
sleep("50")
MouseMove(395,270)
MouseDown("left")
sleep("50")
MouseMove(432,279)
MouseUp("left")
sleep("50")
MouseMove(435,279)
MouseDown("left")
sleep("50")
MouseMove(431,278)
MouseUp("left")
sleep("50")
MouseMove(424,276)
sleep("50")
MouseDown("left")
MouseMove(419,276)
MouseUp("left")
sleep("50")
MouseMove(417,276)
MouseDown("left")
sleep("50")
MouseMove(410,278)
MouseUp("left")
sleep("50")
MouseMove(409,278)
MouseDown("left")
sleep("50")
MouseMove(397,278)
MouseUp("left")
sleep("50")
MouseMove(396,278)
MouseDown("left")
sleep("50")
MouseMove(392,278)
MouseUp("left")
sleep("50")
MouseMove(388,276)
MouseDown("left")
sleep("50")
MouseMove(391,272)
MouseUp("left")
sleep("50")
MouseMove(395,269)
MouseDown("left")
sleep("50")
MouseMove(405,273)
sleep("50")
MouseUp("left")
MouseMove(405,275)
MouseDown("left")
sleep("50")
MouseMove(412,281)
MouseUp("left")
sleep("50")
MouseMove(415,281)
MouseDown("left")
sleep("50")
MouseMove(417,275)
MouseUp("left")
sleep("50")
MouseMove(419,273)
MouseDown("left")
sleep("50")
MouseMove(412,272)
MouseUp("left")
sleep("50")
MouseMove(411,272)
MouseDown("left")
sleep("50")
MouseMove(405,276)
MouseUp("left")
sleep("50")
MouseClick("left",403,276,2)
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(411,275)
MouseUp("left")
sleep("50")
MouseMove(413,275)
MouseDown("left")
sleep("50")
MouseMove(419,276)
MouseUp("left")
sleep("50")
MouseMove(420,276)
MouseDown("left")
sleep("50")
MouseMove(418,272)
MouseUp("left")
sleep("50")
MouseMove(414,272)
MouseDown("left")
sleep("50")
MouseMove(391,284)
MouseUp("left")
sleep("50")

$coord = PixelSearch( 0, 0, 787, 361, 0xE1FFFF, 10 )
if not @error Then
    Run("relog.exe")
EndIf

tried with these

While 1

Sleep(5000)

WEnd

but didnt get good succes :< if someone can add repeat to my script i would be happy =)

~Regards Zutto~

Share this post


Link to post
Share on other sites
Muchuchu

WinWait("d2jsp - Ladder Slasher - Mozilla Firefox","")
If Not WinActive("d2jsp - Ladder Slasher - Mozilla Firefox","") Then WinActivate("d2jsp - Ladder Slasher - Mozilla Firefox","")
WinWaitActive("d2jsp - Ladder Slasher - Mozilla Firefox","")
do
MouseMove(412,288)
MouseDown("left")
MouseUp("left")
sleep("50")
MouseMove(404,288)
MouseDown("left")
sleep("50")
MouseMove(400,286)
MouseUp("left")
sleep("50")
MouseMove(399,286)
MouseDown("left")
sleep("50")
MouseMove(395,286)
MouseUp("left")
sleep("50")
MouseMove(395,288)
MouseDown("left")
sleep("50")
MouseMove(395,290)
MouseUp("left")
sleep("50")
MouseMove(404,292)
MouseDown("left")
sleep("50")
MouseMove(417,293)
MouseUp("left")
sleep("50")
MouseMove(422,293)
MouseDown("left")
sleep("50")
MouseMove(430,293)
MouseUp("left")
sleep("50")
MouseMove(434,291)
MouseDown("left")
sleep("50")
MouseMove(437,282)
MouseUp("left")
sleep("50")
MouseMove(435,272)
MouseDown("left")
sleep("50")
MouseMove(423,272)
MouseUp("left")
sleep("50")
MouseMove(411,272)
MouseDown("left")
sleep("50")
MouseMove(407,272)
MouseUp("left")
sleep("50")
MouseMove(401,275)
MouseDown("left")
sleep("50")
MouseMove(396,278)
MouseUp("left")
sleep("50")
MouseMove(395,278)
MouseDown("left")
sleep("50")
MouseMove(389,285)
MouseUp("left")
sleep("50")
MouseMove(389,291)
MouseDown("left")
sleep("50")
MouseMove(394,295)
MouseUp("left")
sleep("50")
MouseMove(407,295)
MouseDown("left")
sleep("50")
MouseMove(418,290)
MouseUp("left")
sleep("50")
MouseMove(421,286)
MouseDown("left")
sleep("50")
MouseMove(415,278)
MouseUp("left")
sleep("50")
MouseMove(391,266)
MouseClick("left",389,265,2)
sleep("50")
MouseMove(386,283)
MouseDown("left")
sleep("50")
MouseMove(394,287)
MouseUp("left")
sleep("50")
MouseMove(409,287)
MouseDown("left")
sleep("50")
MouseMove(419,285)
MouseUp("left")
sleep("50")
MouseMove(426,283)
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(430,281)
MouseUp("left")
sleep("50")
MouseMove(432,280)
MouseDown("left")
sleep("50")
MouseMove(430,279)
MouseUp("left")
sleep("50")
MouseMove(423,278)
MouseDown("left")
sleep("50")
MouseMove(414,277)
sleep("50")
MouseUp("left")
MouseMove(400,274)
MouseDown("left")
sleep("50")
MouseMove(390,274)
MouseUp("left")
sleep("50")
MouseMove(385,273)
MouseDown("left")
sleep("50")
MouseMove(376,273)
MouseUp("left")
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(391,286)
MouseUp("left")
sleep("50")
MouseMove(395,286)
MouseDown("left")
sleep("50")
MouseMove(402,286)
MouseUp("left")
sleep("50")
MouseMove(407,285)
sleep("50")
MouseDown("left")
MouseMove(413,282)
MouseUp("left")
sleep("50")
MouseMove(417,281)
MouseDown("left")
sleep("50")
MouseMove(417,280)
MouseUp("left")
sleep("50")
MouseMove(427,279)
MouseDown("left")
sleep("50")
MouseUp("left")
sleep("50")
MouseMove(429,279)
MouseClick("left",430,279,2)
sleep("50")
MouseMove(422,277)
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(413,272)
sleep("50")
MouseUp("left")
sleep("50")
MouseMove(411,271)
sleep("50")
MouseDown("left")
MouseMove(396,268)
MouseUp("left")
sleep("50")
MouseMove(392,268)
MouseDown("left")
MouseMove(385,275)
MouseUp("left")
sleep("50")
MouseDown("left")
MouseMove(399,278)
MouseUp("left")
sleep("50")
MouseMove(406,278)
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(412,278)
MouseUp("left")
sleep("50")
MouseMove(439,530)
MouseDown("left")
sleep("50")
MouseUp("left")
MouseClick("left",403,294,2)
sleep("50")
MouseMove(411,292)
MouseDown("left")
sleep("50")
MouseMove(411,290)
MouseUp("left")
sleep("50")
MouseClick("left",411,287,2)
sleep("50")
MouseMove(406,287)
MouseDown("left")
sleep("50")
MouseMove(403,287)
MouseUp("left")
sleep("50")
MouseMove(401,287)
MouseDown("left")
sleep("50")
MouseMove(405,292)
MouseUp("left")
sleep("50")
MouseClick("left",409,294,2)
sleep("50")
MouseMove(412,290)
MouseDown("left")
sleep("50")
MouseMove(412,288)
MouseUp("left")
sleep("50")
MouseMove(410,287)
MouseDown("left")
sleep("50")
MouseMove(405,287)
MouseUp("left")
sleep("50")
MouseMove(404,287)
MouseDown("left")
sleep("50")
MouseMove(400,287)
MouseUp("left")
sleep("50")
MouseMove(398,287)
MouseDown("left")
MouseUp("left")
sleep("50")
MouseMove(399,290)
MouseDown("left")
MouseMove(404,293)
MouseUp("left")
sleep("50")
MouseMove(406,293)
sleep("50")
MouseDown("left")
MouseMove(408,293)
MouseUp("left")
sleep("50")
MouseDown("left")
MouseMove(408,290)
MouseUp("left")
sleep("50")
MouseMove(411,284)
MouseDown("left")
sleep("50")
MouseUp("left")
MouseMove(408,282)
MouseDown("left")
sleep("50")
MouseMove(407,282)
MouseUp("left")
sleep("50")
MouseMove(399,286)
MouseDown("left")
sleep("50")
MouseMove(403,283)
MouseUp("left")
sleep("50")
MouseMove(409,280)
MouseDown("left")
sleep("50")
MouseMove(410,280)
MouseUp("left")
sleep("50")
MouseMove(416,280)
MouseDown("left")
sleep("50")
MouseMove(420,286)
MouseUp("left")
sleep("50")
MouseMove(421,286)
MouseDown("left")
sleep("50")
MouseMove(411,287)
MouseUp("left")
sleep("50")
MouseMove(403,287)
MouseDown("left")
sleep("50")
MouseMove(395,284)
MouseUp("left")
sleep("50")
MouseMove(392,282)
MouseDown("left")
sleep("50")
MouseMove(395,277)
MouseUp("left")
sleep("50")
MouseMove(402,276)
MouseDown("left")
sleep("50")
MouseMove(403,276)
MouseUp("left")
sleep("50")
MouseMove(413,280)
MouseDown("left")
sleep("50")
MouseMove(416,285)
MouseUp("left")
sleep("50")
MouseMove(420,285)
MouseDown("left")
sleep("50")
MouseMove(422,284)
MouseUp("left")
sleep("50")
MouseMove(420,272)
MouseDown("left")
sleep("50")
MouseMove(413,271)
MouseUp("left")
sleep("50")
MouseDown("left")
MouseMove(398,274)
MouseUp("left")
sleep("50")
MouseMove(397,274)
MouseDown("left")
sleep("50")
MouseMove(395,273)
MouseUp("left")
sleep("50")
MouseMove(395,270)
MouseDown("left")
sleep("50")
MouseMove(432,279)
MouseUp("left")
sleep("50")
MouseMove(435,279)
MouseDown("left")
sleep("50")
MouseMove(431,278)
MouseUp("left")
sleep("50")
MouseMove(424,276)
sleep("50")
MouseDown("left")
MouseMove(419,276)
MouseUp("left")
sleep("50")
MouseMove(417,276)
MouseDown("left")
sleep("50")
MouseMove(410,278)
MouseUp("left")
sleep("50")
MouseMove(409,278)
MouseDown("left")
sleep("50")
MouseMove(397,278)
MouseUp("left")
sleep("50")
MouseMove(396,278)
MouseDown("left")
sleep("50")
MouseMove(392,278)
MouseUp("left")
sleep("50")
MouseMove(388,276)
MouseDown("left")
sleep("50")
MouseMove(391,272)
MouseUp("left")
sleep("50")
MouseMove(395,269)
MouseDown("left")
sleep("50")
MouseMove(405,273)
sleep("50")
MouseUp("left")
MouseMove(405,275)
MouseDown("left")
sleep("50")
MouseMove(412,281)
MouseUp("left")
sleep("50")
MouseMove(415,281)
MouseDown("left")
sleep("50")
MouseMove(417,275)
MouseUp("left")
sleep("50")
MouseMove(419,273)
MouseDown("left")
sleep("50")
MouseMove(412,272)
MouseUp("left")
sleep("50")
MouseMove(411,272)
MouseDown("left")
sleep("50")
MouseMove(405,276)
MouseUp("left")
sleep("50")
MouseClick("left",403,276,2)
sleep("50")
MouseDown("left")
sleep("50")
MouseMove(411,275)
MouseUp("left")
sleep("50")
MouseMove(413,275)
MouseDown("left")
sleep("50")
MouseMove(419,276)
MouseUp("left")
sleep("50")
MouseMove(420,276)
MouseDown("left")
sleep("50")
MouseMove(418,272)
MouseUp("left")
sleep("50")
MouseMove(414,272)
MouseDown("left")
sleep("50")
MouseMove(391,284)
MouseUp("left")
sleep("50")

$coord = PixelSearch( 0, 0, 787, 361, 0xE1FFFF, 10 )
if not @error Then
    Run("relog.exe")
EndIf
until false

Such as that?

Edited by Muchuchu

Share this post


Link to post
Share on other sites
zutto

kinda, but that doesnt repeat :) well.. didnt repeat for me O,o

EDIT: or is it in my script? if so i explain a bit so if/or/and you can edit it

$coord = PixelSearch( 0, 0, 787, 361, 0xE1FFFF, 10 )

if not @error Then

Run("relog.exe")

EndIf

that looks for if i have Disconnected somehow, i am not sure should it be at end or start or.. where O,o and you see the other looong script in last posts...

things must in this script:

autom. start

that relog script

that it repeats and works :(

Edited by zutto

Share this post


Link to post
Share on other sites
Muchuchu

The only reason it wouldn't repeat is if it can't find that color at the end of the script in which case you can add this line after that to clear it up:

if @error Then
    msgbox(1,"Error","An Error occured")
    endif

Or it possibly can't find the active window which I doubt happens if it can find it the first time.

Share this post


Link to post
Share on other sites
zutto

The only reason it wouldn't repeat is if it can't find that color at the end of the script in which case you can add this line after that to clear it up:

if @error Then
    msgbox(1,"Error","An Error occured")
    endif

Or it possibly can't find the active window which I doubt happens if it can find it the first time.

that explains, ill try that, thanks..

Share this post


Link to post
Share on other sites
zutto

hmhh.. strange now it doesnt even try relogg O,o

EDIT:hmh... when i add the DO & until false it doesnt relog ;/

EDIT2: is there any other way to repeat that?

Edited by zutto

Share this post


Link to post
Share on other sites
zutto

bump..

EDIT: and btw is there way to get this to read sourcecode?

Edited by zutto

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.