senatin Posted August 6, 2017 Share Posted August 6, 2017 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 expandcollapse popup#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 Link to comment Share on other sites More sharing options...
Developers Jos Posted August 6, 2017 Developers Share Posted August 6, 2017 @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. See you soon with a legitimate question I hope. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts