Hey epvp ich bin ein anfänger in autoit und habe mich mal an einem
relogger für metin versucht und habe bzw wollte es so machen das
er sich reloggt sobald man f12 drückt aber irgendwie tut sich garnichts
hier das script
Es war eine Vermutung das Windows vl. Programmen verbietet auf solche Grunddinge Zugriff
zu nehmen. Wäre ja auch irgendwie logisch oder irre ich mich ?
Code posted below is cleaned up, ive not tested it because im not installing whatever merkey is you press F1 to start your script where you will enter you username and password (or you could just add $username = "whatever" $password = "whatever") and remove the input boxes.
As for admin required i dont know if thats required, also better to run this in a window i "think" that way you dont need control send but i could be wrong. Im just going from old Diablo 3 example. You need to check everything is right too, like i said im not installing merkury or whatever its called and make sure no sleep timers are needed, i normally add them on my scrips even if short random clicks = Sleep(random(200, 900))
Code:
HotKeySet("{F1}","_start") ; change to what you want f1 is best for me testing
HotKeySet("{ESC}","_exit") ;change, remove comment out
While 1
sleep(10)
WEnd
Func _Start()
$id = InputBox ("Daten","ID")
$pw = InputBox ("Daten","Passwort","","*")
;WinActive("[Class:Merkury2-The Legend Returns]") ; you need to double check this.
If WinActive("[Class:Merkury2-The Legend Returns]") Then ; you need to double check this.
Sleep (2000)
MouseMove (729,743) ;no idea what these are could change to MouseClick("Left", 729, 743)
MouseClick ("left")
MouseMove (765,876) ;no idea what these are
MouseClick ("left")
Send ($id)
Send ("{tab}")
Send ($pw)
Send ("{enter}")
Else
MsgBox(0, "Error:", "Unable to find application will exit in 5 seconds.", 5)
Exit
EndIf
EndFunc
Func _exit()
Exit
EndFunc
mit dem spammer habe ich das problem das ich nicht weis wie ich das machen muss das er es bestimmt oft macht und mit den inis für windowname und der exe das sie bei der inputbox nicht angezeigt werden und irgenwie erkennt das skript das fenster nicht bzw meint der name ist falsch obwohl es eig richtig ist und die controlclicks bzw send kommen auch nicht an wer mir über skype helfen könnte
Ich will jetzt nicht respektlos klingen aber vl. solltest du dir erstmal anschauen wie AutoIT so funktioniert. In deinem Script sind ca. 100 Fehler drinnen die man durch das einfachste Basiswissen herausfinden kann. Hier mal eine Anlaufstelle bei der du dir dieses Wissen aneignen kannst: