Please Register and Login to our forum to access all features!
ROTMG free hack Hack ROTMG and Private Server ROTMG Private Server
Play ROTMG Tool Private Server Play ROTMG Hacked Client
View the Frequently Asked Questions Donate to ROTMG Tool Visit the Community Site
Realm of the Mad God Hacks, Cheats and Private Server - Come as Guests, Stay as Family!
Advertisement

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, 2015 11:51 am

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: Select all
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: Select all
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, 2015 9:37 am

The problem got solved, I added a loop.
Code: Select all
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, 2015 10:24 am

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