Presentation
Je vous presente un petit logiciel qui sert a vous connecter a S4 League sans passer pas Aeria ignite.
Tutoriel
Deplacez le .exe dans le dossier d’origine de S4 league.
Lancez le, entrez vos identifiant et connectez vous.
BONUS
Source e*p*v*p
Je vous presente un petit logiciel qui sert a vous connecter a S4 League sans passer pas Aeria ignite.
Tutoriel
Deplacez le .exe dans le dossier d’origine de S4 league.
Lancez le, entrez vos identifiant et connectez vous.
BONUS
Code:
#RequireAdmin
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
If Not FileExists(@scriptdir & "/S4Client.exe") Then
MsgBox(48, "Error", "Missing S4Client.exe!")
Exit
EndIf
$oIE = _IECreateEmbedded()
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("S4League Launcher", 288, 115, 376, 131)
GUICtrlCreateObj($oIE, 0, 0, 1, 1)
$Label1 = GUICtrlCreateLabel("Username:", 16, 16, 55, 17)
$Label2 = GUICtrlCreateLabel("Password:", 16, 48, 53, 17)
$fUsername = GUICtrlCreateInput("", 72, 16, 201, 21)
$fPassword = GUICtrlCreateInput("", 72, 48, 201, 21, BitOR($GUI_SS_DEFAULT_INPUT,$ES_PASSWORD))
$fLoginbutton = GUICtrlCreateButton("Login", 8, 80, 267, 25, $BS_DEFPUSHBUTTON)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
If FileExists(@scriptdir&"/logindata.ini") Then
GUICtrlSetData($fUsername, IniRead(@scriptdir&"/logindata.ini", "Logindata", "username", ""))
GUICtrlSetData($fPassword, IniRead(@scriptdir&"/logindata.ini", "Logindata", "password", ""))
EndIf
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $fLoginbutton
LoginProcess(GUICtrlRead($fUsername), GUICtrlRead($fPassword))
EndSwitch
WEnd
Func LoginProcess($user, $pass)
IniWrite(@scriptdir&"/logindata.ini", "Logindata", "username", $user)
IniWrite(@scriptdir&"/logindata.ini", "Logindata", "password", $pass)
$sURL = "https://www.aeriagames.com/dialog/oauth?response_type=code&client_id=a354ab1d0894ba2ecaac12bf5ad86fd905373a07f&redirect_uri=https://www.aeriagames.com/content_only_launcher&theme=api_ignite"
_IENavigate($oIE, $sURL)
$oForm = _IEFormGetCollection($oIE, 0)
$oUsername = _IEFormElementGetObjByName($oForm, "edit[id]")
$oPassword = _IEFormElementGetObjByName($oForm, "edit[pass]")
_IEFormElementSetValue($oUsername, $user)
_IEFormElementSetValue($oPassword, $pass)
_IEFormSubmit($oForm, 0)
_IELoadWait($oIE)
If _IEPropertyGet($oIE, "innertext") == "." Then
$code = _IEPropertyGet($oIE, "locationurl")
$code = StringTrimLeft($code, StringInStr($code, "code=")+4)
Run('"S4Client.exe" -rc:eu -lac:ger -auth_server_ip:83.220.134.84 -aeria_acc_code:'&$code)
Exit
Else
MsgBox(48, "Error", "Wrong Username or Password!")
EndIf
EndFunc
Source e*p*v*p