Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; League of Legends Auto Login (any screen resolution) by Cyberbyte
- ; You need to write some information below to use this script ( like path info and etc)
- Run("") ; внутри кавычек Ваш путь к lollauncher.exe ; your FULL path to the lollauncher.exe
- WinWaitActive("[CLASS:LOLPATCHER]")
- Sleep(3000)
- Opt("MouseCoordMode",0)
- MouseClick("left",505,30,1)
- WinWaitClose("[CLASS:LOLPATCHER]")
- Sleep(3000)
- WinWaitActive("[CLASS:ApolloRuntimeContentWindow]")
- MouseClick("left",330,290,1)
- $hWnd = WinGetHandle("[CLASS:ApolloRuntimeContentWindow]")
- $nOld_Layout = _GetKeyboardLayout($hWnd)
- _SetKeyboardLayout("00000409", $hWnd)
- Sleep(1000)
- Send("{CTRL}^a{DEL}")
- Send("") ;внутри кавычек Ваш логин ; write your login here
- Send("{TAB}{Enter}") ;внутри кавычек между {TAB} и {Enter} должен быть Ваш пароль ; write here your pass between "tab" and "enter"
- Sleep(1000)
- _SetKeyboardLayout($nOld_Layout, $hWnd)
- Func _SetKeyboardLayout($sLayoutID, $hWnd)
- Local $WM_INPUTLANGCHANGEREQUEST = 0x50
- If StringLen($sLayoutID) <= 3 Then $sLayoutID = "00000" & $sLayoutID
- Local $aRet = DllCall("user32.dll", "long", "LoadKeyboardLayout", "str", $sLayoutID, "int", 0)
- DllCall("user32.dll", "ptr", "SendMessage", "hwnd", $hWnd, "int", $WM_INPUTLANGCHANGEREQUEST, "int", 1, "int", $aRet[0])
- EndFunc
- Func _GetKeyboardLayout($hWnd)
- Local $aRet = DllCall("user32.dll", "long", "GetWindowThreadProcessId", "hwnd", $hWnd, "ptr", 0)
- $aRet = DllCall("user32.dll", "long", "GetKeyboardLayout", "long", $aRet[0])
- Return "0000" & Hex($aRet[0], 4)
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement