2012-07-17, 00:59
I try to make a autoIT script for steam (i know he already exist a .bat for steam, but i want a autoIT script) :
This script works on cmd.exe with this parameters "SteamXBMC.exe steam://rungameid/6120"
but in XBMC he didn't work, I don't get it....
Quote:#Include <GUIConstantsEx.au3>
#Include <WindowsConstants.au3>
HotKeySet("{ESC}", "Terminate")
HotKeySet("!{F4}", "Terminate")
If $CmdLine[0] == 1 Then
Run("nomousy.exe /hide", "", @SW_HIDE)
;~ Run("pssuspend XBMC.exe", "", @SW_HIDE)
Run( '"D:\Program Files\Steam\Steam.exe " "' & $CmdLine[1]& '"', "D:\Program Files\Steam")
While 1
Sleep(100)
WEnd
EndIf
Func Terminate()
GUISetState()
Run("nomousy.exe", "", @SW_HIDE)
Run ( "nircmd win max process XBMC.exe" )
;~ Run("pssuspend -r XBMC.exe", "", @SW_HIDE)
WinWaitActive ("XBMC")
Exit 0
EndFunc
This script works on cmd.exe with this parameters "SteamXBMC.exe steam://rungameid/6120"
but in XBMC he didn't work, I don't get it....