Created
July 29, 2015 19:10
-
-
Save igromanru/490ebe80cce539742fff to your computer and use it in GitHub Desktop.
Script to AutoLoad the LoL xMultiHook
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Local $sFileName | |
Local $hSearch = FileFindFirstFile("*.exe") | |
While 1 | |
$sFileName = FileFindNextFile($hSearch) | |
If $sFileName <> "" Or @error Then | |
ExitLoop | |
EndIf | |
WEnd | |
Run($sFileName) | |
ProcessWait($sFileName) | |
Local $sWinName = StringReplace($sFileName,".exe","") | |
Local $hWin = WinWaitActive($sWinName) | |
WinActivate($hWin) | |
Sleep(1000) | |
ControlClick($hWin, "", "[CLASS:Button; INSTANCE:1]") ;Press "Login" | |
Sleep(3000) | |
MouseClick("left", 562, 357) ;Position of [+]"Subscripted Cheats" . You need exact the position of the [+] | |
Sleep(500) | |
Send("l") ; jump to the first game that begins with "l", at the moment it´s League of Legends | |
Sleep(500) | |
MouseClick("left", 581, 661) ;Position of the [+] from League of Legends after the jump. | |
Sleep(200) | |
Send("{down}") ; "League of Legends should be still focused so we jump down to xMultiHook | |
Sleep(200) | |
ControlClick($hWin, "", "[CLASS:Button; INSTANCE:1]") ;Pressing "Load" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment