Skip to content

Instantly share code, notes, and snippets.

@igromanru
Created July 29, 2015 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igromanru/490ebe80cce539742fff to your computer and use it in GitHub Desktop.
Save igromanru/490ebe80cce539742fff to your computer and use it in GitHub Desktop.
Script to AutoLoad the LoL xMultiHook
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