ROTMG free hack Hack ROTMG and Private Server
   Realm of the Mad God Hacks, Cheats and Private Server
PS
Private Server
HC
Hacked Client
$
Donations
?
Help
C
Community

Follow us on Facebook!
Please Register and Login to our forum to access all features!

AutoIt 3 - ROTMG Tool


Discuss any thing that is coding related here, ask for help, or show us your work

AutoIt 3

Postby MailBoy » Sat 28 Nov 15 - 11:51

So I'm trying to do an AutoIt program which would do certain mouse clicks when numpad buttons are pressed. The part of code is atm like this:
Code
HotKeySet("{NUMPAD1}", "NUM1")

Func NUM1()
   MouseClick("left", x, y)
   Sleep 10
   MouseClick("left", x, y)
   Return
EndFunc


But when I try it out it just runs through the script and closes it, but I need it to work similar to AHK where it waits for user input. For example in AHK:
Code
1::
mouseclick, left
return
MailBoy  <i> Offline</i>
Learning the Ropes
Learning the Ropes
Posts: 37
Joined: Jun '14
PS Name: MailBoy
Thanks: 1

Re: AutoIt 3

Postby MailBoy » Sun 29 Nov 15 - 9:37

The problem got solved, I added a loop.
Code
While 1
Sleep(50)
WEnd


And now I got another problem. Using ImageSearch on .swf files turns out false. Can ImageSearch even be used on .swf files?

I didn't see the edit button on the topic so I had to reply.
MailBoy  <i> Offline</i>
Learning the Ropes
Learning the Ropes
Posts: 37
Joined: Jun '14
PS Name: MailBoy
Thanks: 1

Postby MailBoy » Mon 30 Nov 15 - 10:24

All problems solved, topic can be locked.
Why can't i find the edit button? Is it something like you can't edit the post when you have closed the topic for the first time?
MailBoy  <i> Offline</i>
Learning the Ropes
Learning the Ropes
Posts: 37
Joined: Jun '14
PS Name: MailBoy
Thanks: 1