It auto inserts the path to the rom file, but I get a error that it can't find the file.
I knowthis the path name starts with:
Code: Select all
"H:\....
Code: Select all
H:\....
Here's the script that I used:
Code: Select all
;Parsing
Local $count = StringInStr($CmdLineRaw, ".exe", 0 , 1, 1)
local $app = StringLeft ( $CmdLineRaw, $count + 4 )
local $command = StringTrimLeft( $CmdLineRaw, $count + 4 )
if not $command then exit 0
hotkeyset("{esc}", "sendKey")
run('"' & $app & '"')
WinwaitActive("Project Tempest")
send("!f")
send("{enter}")
WinwaitActive("Open ROM File")
send($command, 1)
send("{enter}")
WinwaitActive("Project Tempest")
; Start the game (F2).
send("{F2}")
While WinExists("Project Tempest")
Sleep (500)
Wend
exit 0
;[tidy up]
; Stop the game - F3.
; Close Project Tempest.
Func sendKey()
Send ("{F3}")
WinClose("Project Tempest")
exit
Endfunc
Code: Select all
"H:\...."