Voilà Monsieur.
Download:
via Megaupload
Falls du es dir selber kompilieren willst:
C
- #RequireAdmin
- #NoTrayIcon
- #include <GUIConstants.au3>
- #include <EditConstants.au3>
- $fenster = GUICreate("American Conquest Launcher",300,120)
- GUICtrlCreateLabel("American Conquest directory:",10,10)
- $pathbox = GUICtrlCreateInput("",10,30,220,20,$ES_ReadOnly)
- $getbtn = GUICtrlCreateButton("Get",240,30,50,20)
- $killbtn = GUICtrlCreateButton("Kill Explorer",10,70,80,30)
- $startbtn = GUICtrlCreateButton("Start Explorer",100,70,80,30)
- $launchbtn = GUICtrlCreateButton("Launch AC",190,70,80,30)
- GUISetState()
- $explorer_kill = False
- While 1
- $msg = GUIGetMsg()
- Switch $msg
- Case $GUI_Event_Close
- ExitLoop
- Case $getbtn
- $path = FileSelectFolder("Please select your American Conquest directory!","")
- GUICtrlSetData($pathbox, $path)
- Case $killbtn
- If $explorer_kill = False then $explorer_kill=True
- Case $startbtn
- If $explorer_kill = True then $explorer_kill=False
- Case $launchbtn
- If FileExists(""&GUICtrlRead($pathbox)) then
- ShellExecute(""&GUICtrlRead($pathbox)&"\dmcr.exe")
- Else
- MsgBox(16,"Error","Wrong path / Program was not able to locate dmcr.exe")
- EndIf
- EndSwitch
- If $explorer_kill = True Then
- If ProcessExists("explorer.exe") then ProcessClose("explorer.exe")
- Endif
- If $explorer_kill = False Then
- If NOT ProcessExists("explorer.exe") then ShellExecute("explorer.exe")
- Endif
- WEnd
Pfad zum Ordner eingeben. Explorer kill drücken, Spiel starten drücken.
Das Ding bleibt im Hintergrund offen, und sobald du das Spiel beendest kannst du wieder auf "Start Explorer" drücken.
Müsste funktionieren.