Hi there.
Im trying to setup Project 64 2.0 or 2.1. Both give me a message saying "attempt to open file failed".
Arguments: "%rom%" "%romname%
Script:
Code:
#include <WindowsConstants.au3>
#include <GUIConstants.au3>
Run("D:\HTPC\Games\Controller.exe")
Run("D:\HTPC\Programs\nomousy\nomousy.exe /hide", "", @SW_HIDE)
Run("D:\HTPC\Programs\autotaskbarhider\TaskBarHider.exe -hide -exit")
$x = 680
$y = -75
$hGUI = GUICreate('MyGUI', @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP)
$hbpic = GUICtrlCreatePic(@ScriptDir & '\N64.jpg', 0, 0, @DesktopWidth, @DesktopHeight)
GUICtrlSetState(-1, $GUI_DISABLE)
GUISetState(@SW_SHOW, $hGUI)
$hGUI_Child = GUICreate('', 375, 260, @DesktopWidth / 2 - 50, - 75, $WS_POPUP, Default, $hGUI)
$hcartridge = GUICtrlCreatePic('D:\HTPC\Games\N64\Roms\cartridge\' & $CmdLine[2] & '.jpg', 0, 0, 375, 260)
GUISetState(@SW_SHOW, $hGUI_Child)
For $y = -250 To 15
WinMove($hGUI_Child, "", @DesktopWidth / 2 - 50, $y)
Sleep(8)
Next
Sleep(2000)
HotKeySet("{ESC}", "Terminate")
If $CmdLine[0] == 2 Then
GUICreate('MyGUI', @DesktopWidth, @DesktopHeight, 0, 0, BitOR($WS_POPUP, $WS_EX_TOPMOST))
GUISetState()
Run ( '"C:\Program Files (x86)\Project64 2.0\Project64.exe"' & $CmdLine[1], "C:\Program Files (x86)\Project64 2.0\" )
Run("pssuspend XBMC.exe", "", @SW_HIDE)
While 1
Sleep(100)
WEnd
EndIf
Terminate
Func Terminate()
ProcessClose ( "Controller.exe" )
ProcessClose ( "Project64.exe" )
Run ( 'pssuspend -r XBMC.exe')
WinSetState("XBMC","", @SW_MAXIMIZE)
Run("D:\HTPC\Programs\nomousy\nomousy.exe", "", @SW_HIDE)
Run("D:\HTPC\Programs\autotaskbarhider\TaskBarHider.exe -show -exit")
Exit 0
EndFunc
When I use the application straight to project64.exe it actually works. So where is the fault in my script?
Cheers.