Sign in to follow this  
Followers 0
LordRaven

About stop script

7 posts in this topic

#1 ·  Posted (edited)

Hey guys im sure other people already asked this same question but my problem is

I cant find any stoping method to put in my script, im trying to make a script for

auto-move/clicking to open some packages in a game called ryl, my problem is:

When i start my script(I made this coords as an test) it starts to click in randoms

places from the screen and when i use the stop button it stop moving/clicking, but when

i start again it starts clicking where it stops when what i want is a fresh new clicking

from the begining.

Sorry guys if what im asking is a stupid question and my script is wrong thing is, im newbie

in autoit programming and i wish to learn really more, i hope you guys could point me in the

right direction.

If any of you could help me with my code and make it better i would really appreciate!

Theres my code so far:

HotKeySet("{HOME}", "Start")
HotKeySet("{END}", "Stop")
Global $Go
Global $Wait

MsgBox(4096, "Instructions", "Press Home to start opening your packs, End to Pause.", 10)

While 1
    While $Go = 1
           MouseMove(453,233)
           MouseClick("Right")
           Sleep(1000)
           MouseMove(738,445)
           MouseClick("Right")
           Sleep(1000)
           MouseMove(930,210)
           MouseClick("Right")
           Sleep(1000)
    WEnd
  Sleep(100)
WEnd

Func Start()
    $Go = 1
    ToolTip('Packs Opener is "ON"',0,0)
EndFunc

Func Stop()
    $Wait = NOT $Wait
    While $Wait
        sleep(100)
        ToolTip('Packs Opener is "Stoped"',0,0)
    WEnd
    ToolTip('Packs Opener is "ON"',0,0)
EndFunc

I got another quick question and nobbish aswell >.>

How can i break lines in MsgBox, in C i know is \n, its the same for AutoIT?

Thanks in advance.

Edited by LordRaven

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

so theres no section in this forum i can discuss about it?

if anyone could help me even by private message i would appreciate =/

and sorry, i didnt notice talking about game botting was forbidden

couldnt we just assume this is a normal clicking program? is that all i need for, clicking on some specifics places of the screen, the only problem im having is breaking that loop

Edited by LordRaven

Share this post


Link to post
Share on other sites

ok sorry, but as my previous question, how to break lines?

Share this post


Link to post
Share on other sites

How can i break lines in MsgBox, in C i know is \n, its the same for AutoIT?

this is how:

$answer= MsgBox(4, "Programm name", "text" & @CRLF & "more text")

and @czardas : he's mentioning game autoing, but the questions he's asking can be used for all sorts of things, so by answering those questions u don't really help the botting itself...

I think it's quite patethic that people always refer to this "anti-auto" link...

But that's just my personal opinion of course

kind regards,

stefan

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

ok sorry, but as my previous question, how to break lines?

Don't care any more ... Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0