Advertisement
Cyberbyte

League of Legends Auto Login(any resolution)

Feb 1st, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 1.63 KB | None | 0 0
  1. ; League of Legends Auto Login (any screen resolution) by Cyberbyte
  2. ; You need to write some information below to use this script ( like path info and etc)
  3. Run("") ; внутри кавычек Ваш путь к lollauncher.exe ; your FULL path to the lollauncher.exe
  4. WinWaitActive("[CLASS:LOLPATCHER]")
  5. Sleep(3000)
  6. Opt("MouseCoordMode",0)
  7. MouseClick("left",505,30,1)
  8. WinWaitClose("[CLASS:LOLPATCHER]")
  9. Sleep(3000)
  10. WinWaitActive("[CLASS:ApolloRuntimeContentWindow]")
  11. MouseClick("left",330,290,1)
  12. $hWnd = WinGetHandle("[CLASS:ApolloRuntimeContentWindow]")
  13. $nOld_Layout = _GetKeyboardLayout($hWnd)
  14. _SetKeyboardLayout("00000409", $hWnd)
  15. Sleep(1000)
  16. Send("{CTRL}^a{DEL}")
  17. Send("") ;внутри кавычек Ваш логин ; write your login here
  18. Send("{TAB}{Enter}") ;внутри кавычек между {TAB} и {Enter} должен быть Ваш пароль ; write here your pass between "tab" and "enter"
  19. Sleep(1000)
  20. _SetKeyboardLayout($nOld_Layout, $hWnd)
  21.  
  22. Func _SetKeyboardLayout($sLayoutID, $hWnd)
  23.     Local $WM_INPUTLANGCHANGEREQUEST = 0x50
  24.  
  25.     If StringLen($sLayoutID) <= 3 Then $sLayoutID = "00000" & $sLayoutID
  26.     Local $aRet = DllCall("user32.dll", "long", "LoadKeyboardLayout", "str", $sLayoutID, "int", 0)
  27.  
  28.     DllCall("user32.dll", "ptr", "SendMessage", "hwnd", $hWnd, "int", $WM_INPUTLANGCHANGEREQUEST, "int", 1, "int", $aRet[0])
  29. EndFunc
  30.  
  31. Func _GetKeyboardLayout($hWnd)
  32.     Local $aRet = DllCall("user32.dll", "long", "GetWindowThreadProcessId", "hwnd", $hWnd, "ptr", 0)
  33.     $aRet = DllCall("user32.dll", "long", "GetKeyboardLayout", "long", $aRet[0])
  34.  
  35.     Return "0000" & Hex($aRet[0], 4)
  36. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement