Hai leute ich will euch nicht lang auf die Folter Spannen also hier sind die Codes ^..^
Code
#RequireAdmin
Global $i = 0
If FileExists("config.ini") = False Then
$input1 = InputBox("ID","Bitte gib deine ID ein")
$input2 = InputBox("PW","Bitte gib dein PW ein")
IniWrite("config.ini","ID","ID",$input1)
IniWrite("config.ini","PW","PW",$input2)
While True
$i +=1
$keyname = RegEnumKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", $i)
If @error Then ExitLoop
$result = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & $keyname, "DisplayName")
If $result = "S4 League_EU" Then
$s4path = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & $keyname, "InstallLocation")
ExitLoop
EndIf
WEnd
IniWrite("config.ini","Pfad","Pfad",$s4path)
EndIf
$read1 = IniRead("config.ini","Pfad","Pfad","")
$read2 = IniRead("config.ini","ID","ID","")
$read3 = IniRead("config.ini","PW","PW","")
ShellExecute($read1 & "\patcher_s4.exe", "", $read1)
WinWait("S4 League Game Launcher")
ControlClick("S4 League Game Launcher", "", "[CLASS:Button; INSTANCE:2]")
WinWait("S4 Client")
$get1 = WinGetHandle("S4 Client")
Opt("PixelCoordMode",0)
Do
$pixel=PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, 0x3C4757,"","",$get1)
Until Isarray($pixel)
Send($read2 & "{TAB}" & $read3 & "{ENTER}")
Exit
Alles anzeigen
Ich hoffe es hat euch geholfen und Have Fun ^..^
PS: Nicht so Streng bin neu hier :o