xboxscene.org forums

Author Topic: Executioner Script (wip)  (Read 323 times)

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Executioner Script (wip)
« on: February 08, 2004, 08:38:00 PM »

it's a launcher that uses my fileopen script.

START
callfile c:\mxm\scripts\fileopen.xas

setfunc myPath FNPATH %_file2Open%
setfunc myExt FNEXTENSION %_file2Open%

if %myExt% == "xas" goto LAUNCHXAS
if %myExt% == "xbe" goto LAUNCHXBE

BeginDraw
 MessageBox "That file is not supported.$eol$Please select another file.$eol$$eol$A - Continue$eol$B - Quit"
EndDraw

:GETINPUT
IQWaitMsg UI_SELECT UI_BACK
if %MSG_ID% == "UI_SELECT" goto START
if %MSG_ID% == "UI_BACK" goto EXIT
goto GETINPUT

:EXIT
quit

:LAUNCHXAS
callfile %_file2Open%
goto EXIT

:LAUNCHXBE
setfunc myFile REPLACE %myPath% "" %_file2Open%
setfunc myFile REPLACE "\\" "" %myFile%
cd %myPath%
exec %myFile%
quit
Logged

geniusalz

  • Archived User
  • Hero Member
  • *
  • Posts: 1635
Executioner Script (wip)
« Reply #1 on: February 09, 2004, 12:20:00 PM »

smile.gif
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Executioner Script (wip)
« Reply #2 on: February 10, 2004, 08:33:00 AM »

tongue.gif
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Executioner Script (wip)
« Reply #3 on: February 10, 2004, 10:33:00 AM »

QUOTE (flattspott @ Feb 10 2004, 12:33 PM)
I'm shocked, you made this and Texteditor,  yet didn't add an if %myExt% == "txt" goto LAUNCHTXT part. I guess I'll have to do it for you and take all the credit.

Just kidding tongue.gif

heh, good idea!  i was just thinking last night about how much i wish xbmp or xbmc accepted a command-line arg like...

"f:\apps\xbmc\default.xbe f:\video\myvideo.mpg"

...and would automatically start playing the file.  then all dashboards/filemanagers could maintain an xml file or something that made program associations with extensions and could use those associations to open the files from the filemanager.

HINT HINT smile.gif
Logged

flattspott

  • Archived User
  • Hero Member
  • *
  • Posts: 1220
Executioner Script (wip)
« Reply #4 on: February 10, 2004, 10:41:00 AM »

I know what you mean, although I've yet to try it, I want to know if XboyAdvance will except args. F:\Emulators\GBA\default.xbe "0001.zip"

Cause with GBA roms,  they are all numbered by release. I could make a renamer tool for the PC that names then down to just the number and use a script to display the full name. This way you see the full name but wouldn't have any long file name problems.
Logged

Kthulu

  • Archived User
  • Hero Member
  • *
  • Posts: 787
Executioner Script (wip)
« Reply #5 on: February 10, 2004, 11:09:00 AM »

yeah, i've thought about trying to pass the rom as an arg to emus too and just setup my favorite roms in mxm, but i keep finding other things to do.
Logged