senatin

Autoit Script being Block by other program.

2 posts in this topic

#1 ·  Posted

I have a simple script that uses the command send, mousemove, mouseclick
it work fine until the program, where I want to use it, is activated.
my script has #RequireAdmin included to work in ragnarok client.
I learn that the ragnarok client uses .bin files to block the code. unfortunately new update occurred and files .bin is not allowed to be deleted no more.
is there other script that can get through the bin files so it can work fine>?

Heres my code. Simple as it can be

#RequireAdmin
#include <AutoItConstants.au3>

HotKeySet ( "=", "Ended")
HotKeySet ( "z", "Swaper")
HotKeySet ( "c", "Setskillpos")
HotKeySet ( "x", "Getpos")

$String = False
$Posskill = MouseGetPos()
$Pos = MouseGetPos()

While 1
    Sleep ( 1000)

    If $String = True Then
       Send("S")
        MouseClick ( "left", $Posskill[0], $Posskill[1], 1, 8)
        Sleep(100)
        MouseClick ( "left", $Posskill[0], $Posskill[1], 1, 8)
        $pos1 = MouseGetPos()
        $rand = Rand()
        Sleep ($rand)
        MouseClick( "left", $Pos[0], $Pos[1], 2, 8)
        $pos2 = MouseGetPos()

        ToolTip ( $pos1[0] & " = " & $pos2[0] & " | " & $pos1[1] & " = " & $pos2[1], 2,2)

        If ( $pos1[0] == $pos2[0] & $pos1[1] == $pos2[1]) Then
            Reconnecting()
        EndIf

    EndIf


WEnd

Func Rand()
    Return Random (300, 800, 1)
EndFunc

Func Setskillpos()
    $Posskill = MouseGetPos()
EndFunc


Func Getpos()
    $Pos = MouseGetPos()
EndFunc


Func Swaper()
   If $String = False Then
      $String = True
   Else
      $String = False
   EndIf
EndFunc

Func Reconnecting()
    Send("{ESC}")
    ToolTip ( "PRESSED ESCAPE", 2,2)
EndFunc


Func Ended()
   Exit
EndFunc

 

Share this post


Link to post
Share on other sites



#2 ·  Posted

@senatin,

Welcome to the AutoIt forum. :)

Unfortunately you appear to have missed the Forum rules on your way in. (there is also a link in my signature) 
Please read them now particularly the bit about not discussing game automation - and then you will understand why you will get no help and this thread will now be locked. :naughty:

See you soon with a legitimate question I hope. :)

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        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.