Python/Autoit Bot for Ragnarok

06/03/2016 22:24 447557#1
Well there was no question session for ragnarok and for python so I thought on asking here.
I was trying to create a bot using python or autoit and it would do:
Click randomly in the screen (as in ragnarok it would walk)
and type a phrase in the chat (hit enter, type, hit enter)

It's easy. I did it in python and autoit. It does click in the screen and it does type.
Problem is this server of ragnarok (I'm not sure if every server since I know nothing about this thing of ragnarok at all) has a protection named Internal Guard.
When the bot, with autoit or python, tries to click on ragnarok's screen, for example, tries to automate the text typing or even clicking in a random place to walk in ragnarok window, it just doesn't.

It's like if the ragnarok runs in a second plan window where automated actions don't work there.

I guess this may be a general problem not only for ragnarok. So the game here is not really important.
If so, how am I supposed to successfully send actions to the game screen if it somehow blocks them?


@The code is simple, there is no need to understand it anyway.
Actually it just clicks and types. If anybody wanna see how it basically is:

Code:
For $i = 1 To 5
   MouseDown("left")
   MouseUp("left")
   Sleep(1000)
Next
06/04/2016 01:29 Moneypulation#2
Start your script as admin by adding #RequireAdmin at the top of your code. That could solve your problem
06/06/2016 04:23 447557#3
Quote:
Originally Posted by Moneypulation View Post
Start your script as admin by adding #RequireAdmin at the top of your code. That could solve your problem
I might try whenever I get some time. Thanks for the answer.