Code:
#comments-start
ShellExecute('time.bat') ; TIME.BAT STARTEN
Sleep(5000)
ShellExecute('WTP ' & $WTP & '\WindowsActive' & $WA & '\WindowsActive.exe') ; WINDOWS ACTIVE STARTEN
Sleep(5000)
ShellExecute('WTP ' & $WTP & '\asus-wtp\bin\DiagEG.exe') ; DIAGEG.EXE STARTEN
Sleep(5000)
ShellExecute('time.bat') ; TIME.BAT STARTEN
#comments-end
#RequireAdmin
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <StaticConstants.au3>
ShellExecute('time.bat') ; TIME.BAT STARTEN
Sleep(2000)
WindowsActive()
Sleep(2000)
DiaEG()
Func WindowsActive()
; TOOL VERSIONEN
$WA = "1.6.7.4_20160519" ; WINDOWS ACTIVE VERSION
$SRT = "3.14" ; REPERATION TOOL
Global $titel1 = 'WindowsActive' ; WINDOWS ACTIVE FENSTERNAME
Global $titel2 = 'Systeme Preparation Tool' & $SRT & '' ; SYSTEME REPERATION TOOL FENSTERNAME
; Run WindowsActive with the window maximized.
Run("WTP\WindowsActive" & $WA & "\WindowsActive.exe", "", @SW_SHOWMAXIMIZED)
; Wait 10 seconds for the WindowsActive window to appear.
WinWait("[CLASS:WindowsActive]", "", 10)
; Wait for 2 seconds.
Sleep(2000)
; FINDE DAS FENSTER UND POSITIONIERE
If WinExists($titel1) Then
WinActivate($titel1)
WinWait($titel1)
Local $aPos = WinGetPos($titel1)
WinMove($titel1,"",1,1,$aPos[2],$aPos[3])
EndIf
If Not WinExists($titel1) Then
Beep(500, 1000)
EndIf
EndFunc ;==>WindowsActive
Sleep(2000)
ShellExecute('time.bat') ; TIME.BAT STARTEN
Func DiaEG()
$WA = "1.6.7.4_20160519" ; WINDOWS ACTIVE VERSION
$Form1_1 = GUICreate("DiaEG", 366, 341, 363, 324)
GUISetBkColor(0x434E54)
$Button1 = GUICtrlCreateButton("DiaEG Starten", 0, 48, 139, 49, $WS_GROUP)
GUISetState(@SW_SHOW)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Run ( "WTP\asus-wtp\bin\DiagEG.exe", "WTP\asus-wtp\bin\") ; normales spiel für single player und online
Exit
EndSwitch
WEnd
EndFunc ;==>WindowsActive