2009-10-31, 08:08
simphax Wrote:Hi! Just wanted to share my solution to the fullscreen problem on Windows machines. If you have the problem that XBMC cannot minimize when in fullscreen and therefore you cannot use the launched application because xbmc is covering the screen, please follow these instructions:
Many thanks for this tip. + the steps are not much different for xbmcLive / ubuntu / linux...
- EDIT ~/.xbmc/plugins/programs/Launcher/resources/lib/launcher_plugin.py
- FIND TWO elif (sys.platform.startswith('linux')):
- WRAP BOTH with xbmc.executehttpapi("Action(199)")...ex1...
[/color]Code:elif (sys.platform.startswith('linux')):
[color=Red] xbmc.executehttpapi("Action(199)")[/color]
os.system("\"%s\" %s \"%s\"" % (launcher["application"], launcher["args"], rom["filename"]))
[color=Red] xbmc.executehttpapi("Action(199)")
- Bingo Bango
EDIT: i originally did this by creating a BASH script (like a BAT file in windows)
EDIT 2 > now i've moved action(199) to the launcher_plugin.py, thanks simphax.
EDIT 3 > Still need BASH-fu to HIDE the control from XBMC when playing games ...
(otherwise event server continues passing command to xbmc [without focus] while launcher is running emu's)
- delete /userdata/keymap/logtitech.xml
- refresh keymaping ... Action(203)
- launch
- restore keymap
- refresh key list ... Action(203)
Code:
[color=DarkOrange] rm /home/xbmc/.xbmc/userdata/keymaps/LogitechRumble.xml # remove keymap[/color]
[color=Red]curl "http://localhost:8080/xbmcCmds/xbmcHttp?command=Action(203)" # reload Keys[/color]
$@
[color=DarkOrange] cp /home/xbmc/.xbmc/userdata/keymaps/LogitechRumble.xml~ \
/home/xbmc/.xbmc/userdata/keymaps/LogitechRumble.xml # restore keys[/color]
[color=Red] curl "http://localhost:8080/xbmcCmds/xbmcHttp?command=Action(203)" # relaod keys
in the userdata/plugin_data/programs/Launcher/launchers.xml
- point each <launcher> <application> @ your scipt (BAT or SH)
- point ARG1 to your EMU/APP
- put [arg1] [arg2] [arg3] as [2,3,4]...
Code:
<launcher>
<name>nes</name>
<application>[b]/path/to/the/scipt[/b]</application>
<args>mednafen -nes.stretch 1 -nes.input.port1 gamepad -nes.special scale4x -nes.pixshader scale4x -vdriver sdl -fs 1 -nes.xres 1920 -nes.yres 1080 </args>
<rompath>/home/xbmc/links/gameISOs/NES/</rompath>
<romext>nes</romext>
Is it possible to do this in the launcher_plugin.py ?