• 1
  • 235
  • 236
  • 237(current)
  • 238
  • 239
  • 453
[CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC
(2012-06-12, 09:23)goldsac Wrote: Ok, I've tried this on my own enough to realize I'm not going to be able to solve my issue myself, so I've come to you all for help.

The issue: I'm running XBMC Eden in Win7 64, with a dual display setup such that my HDTV is a secondary monitor. I want to set up Advanced Launcher (AL) to work with my many emulators on my TV. For emulators that include a display toggle (primary vs secondary), this is not a problem at all. There are others, though, that insist on latching onto the primary display (ie my monitor) exclusively for fullscreen mode (e.g., Kega Fusion, though there are others).

To get around this, I've been trying to set up an Ultramon shortcut that ought to trigger my display settings to switch, such that my HDTV becomes primary (and auto-switches back upon closing the emu program). This is not working with AL though. I can confirm that the Ultramon shortcut(s) I've created work properly when launched via Windows Explorer - but if I set the same shortcut as the application pathway in AL, it ignores the shortcut and just launches the emu as it always has: on my regular monitor. My Ultramon shortcut is being ignored completely, as the HDTV doesn't adopt primary monitor status upon launch from AL.

I can't really find any loose ends with what I'm trying, but maybe someone here can shed some light on this for me. I feel like I'm *this* close to getting this to work out, and it's driving me nuts. I'm also open to suggestions for alternate approaches. From what I've read, it seems as though a batch file might be able to help in this situation. I understand completely what a batch file is, but, unfortunately haven't a clue as to how to go about creating one from scratch (even modifying one can be a challenge, though I'm up to it if I can get a kick-start). It'd be cool someone here has either run into this exact situation, or some variation, and has a solution ready-made - that said, I'll take whatever help I can get!
I this case I think the best way is to create small .bat or autoit scripts that will be started instead of the emulator. These script will change the active display before starting the emulator or force the emulator to start on a specific display. For this it exist a small application under windows that work with command line : Display Changer

For example the command line :

Code:
dccmd.exe -monitor="\\.\DISPLAY1" -width=1024 -height=768

Will specify to operate on the first monitor with a screen resolution of 1024x768px. So you could create small launchers like this one :

Code:
dccmd.exe -monitor="\\.\DISPLAY2" -width=1024 -height=768
C:\Program Files\snes9x\snes9x.exe -fullscreen "$1"
dccmd.exe -monitor="\\.\DISPLAY1" -width=1024 -height=768

This script, for example, will start Snes9X on second monitor. When Snes9X will be closed focus will be forced to first monitor (where XBMC may be running). You will surely need to adapt this script to work on your system (modify display name or resolution), but the idea is here. You will found more example on Display Changer web page.
Thanks for responding. I managed to get it working properly with the following batch sequence:

Start /w HdtvPrimary.vbs
Start /w emulator.exe
Start CPUprimary.vbs

(where the vbs scripts are ultramon profiles, which make my hdtv and computer monitor the primary monitor, respectively).

Thanks though! Appreciate the thought & effort.
xbmc keep crashing now when I play an windows game...
http://pastebin.com/6aeTwr0b

any ideas?
(2012-06-14, 17:09)bakito Wrote: xbmc keep crashing now when I play an windows game...
http://pastebin.com/6aeTwr0b

any ideas?
I have count 82 XBMC error lines into your log file, but none related to Advanced Launcher. Normally on a stable XBMC install you may have no errors. I strongly suggest you to remove bugged add-ons and skin or make a clean install of XBMC.

Will do!
Thanks!
Cheers!
Version 1.8.9 : This new version of Advanced Launcher fix errors occurring during scraping due to Internet connection or files access problems (timed out errors). Thank to [email protected] for report and patches.

Changelog :
I like the way it sorts items, ignoring articles "the" and "a". Is there anywhere in the code that we could modify this to add to the list of ignored words?

This has come up with SNES games. There are too many games that are prefixed with the word "super". I like to keep the prefix in the title but have, for example, Super Castlevania IV show up in the C section.

It'd be cool if a setting could be made in this regard, but i'd certainly settle for adjusting a few lines of code if that would be easy enough - just need to know where to tweak it.
(2012-06-16, 23:59)goldsac Wrote: I like the way it sorts items, ignoring articles "the" and "a". Is there anywhere in the code that we could modify this to add to the list of ignored words?
Articles are moved (or not) at the end by the title_format function (lines 2412 to 2426 from launcher_plugin.py file)

(2012-06-16, 23:59)goldsac Wrote: This has come up with SNES games. There are too many games that are prefixed with the word "super". I like to keep the prefix in the title but have, for example, Super Castlevania IV show up in the C section.
Code:
def title_format(self,title):
    if ( self.settings[ "clean_title" ] ):
       title = re.sub('\[.*?\]', '', title)
       title = re.sub('\(.*?\)', '', title)
       title = re.sub('\{.*?\}', '', title)
    new_title = title.rstrip()
    if ( self.settings[ "title_formating" ] ):
        if (title.startswith("The ")): new_title = title.replace("The ","",1)+", The"
        if (title.startswith("A ")): new_title = title.replace("A ","",1)+", A"
        if (title.startswith("An ")): new_title = title.replace("An ","",1)+", An"
        if (title.startswith("Super ")): new_title = title.replace("Super ","",1)+", Super"
    else:
        if (title.endswith(", The")): new_title = "The "+"".join(title.rsplit(", The",1))
        if (title.endswith(", A")): new_title = "A "+"".join(title.rsplit(", A",1))
        if (title.endswith(", An")): new_title = "An "+"".join(title.rsplit(", An",1))
        if (title.endswith(", Super")): new_title = "Super "+"".join(title.rsplit(", Super",1))
    return new_title

It may do the job (but not tested).
(2012-06-17, 03:25)Angelscry Wrote:
(2012-06-16, 23:59)goldsac Wrote: I like the way it sorts items, ignoring articles "the" and "a". Is there anywhere in the code that we could modify this to add to the list of ignored words?
Articles are moved (or not) at the end by the title_format function (lines 2412 to 2426 from launcher_plugin.py file)

(2012-06-16, 23:59)goldsac Wrote: This has come up with SNES games. There are too many games that are prefixed with the word "super". I like to keep the prefix in the title but have, for example, Super Castlevania IV show up in the C section.
Code:
def title_format(self,title):
    if ( self.settings[ "clean_title" ] ):
       title = re.sub('\[.*?\]', '', title)
       title = re.sub('\(.*?\)', '', title)
       title = re.sub('\{.*?\}', '', title)
    new_title = title.rstrip()
    if ( self.settings[ "title_formating" ] ):
        if (title.startswith("The ")): new_title = title.replace("The ","",1)+", The"
        if (title.startswith("A ")): new_title = title.replace("A ","",1)+", A"
        if (title.startswith("An ")): new_title = title.replace("An ","",1)+", An"
        if (title.startswith("Super ")): new_title = title.replace("Super ","",1)+", Super"
    else:
        if (title.endswith(", The")): new_title = "The "+"".join(title.rsplit(", The",1))
        if (title.endswith(", A")): new_title = "A "+"".join(title.rsplit(", A",1))
        if (title.endswith(", An")): new_title = "An "+"".join(title.rsplit(", An",1))
        if (title.endswith(", Super")): new_title = "Super "+"".join(title.rsplit(", Super",1))
    return new_title

It may do the job (but not tested).

Thanks for checking, appreciate it.

I gave that a shot, but unfortunately it just produces a script error upon launch of the add-on when implemented.
(2012-06-17, 05:51)goldsac Wrote:
(2012-06-17, 03:25)Angelscry Wrote:
(2012-06-16, 23:59)goldsac Wrote: I like the way it sorts items, ignoring articles "the" and "a". Is there anywhere in the code that we could modify this to add to the list of ignored words?
Articles are moved (or not) at the end by the title_format function (lines 2412 to 2426 from launcher_plugin.py file)

(2012-06-16, 23:59)goldsac Wrote: This has come up with SNES games. There are too many games that are prefixed with the word "super". I like to keep the prefix in the title but have, for example, Super Castlevania IV show up in the C section.
Code:
def title_format(self,title):
    if ( self.settings[ "clean_title" ] ):
       title = re.sub('\[.*?\]', '', title)
       title = re.sub('\(.*?\)', '', title)
       title = re.sub('\{.*?\}', '', title)
    new_title = title.rstrip()
    if ( self.settings[ "title_formating" ] ):
        if (title.startswith("The ")): new_title = title.replace("The ","",1)+", The"
        if (title.startswith("A ")): new_title = title.replace("A ","",1)+", A"
        if (title.startswith("An ")): new_title = title.replace("An ","",1)+", An"
        if (title.startswith("Super ")): new_title = title.replace("Super ","",1)+", Super"
    else:
        if (title.endswith(", The")): new_title = "The "+"".join(title.rsplit(", The",1))
        if (title.endswith(", A")): new_title = "A "+"".join(title.rsplit(", A",1))
        if (title.endswith(", An")): new_title = "An "+"".join(title.rsplit(", An",1))
        if (title.endswith(", Super")): new_title = "Super "+"".join(title.rsplit(", Super",1))
    return new_title

It may do the job (but not tested).

Thanks for checking, appreciate it.

I gave that a shot, but unfortunately it just produces a script error upon launch of the add-on when implemented.
You have to take care of spaces vs. tabulations in the python code indentation.

Hi angelscry im having problem with demul i followed the setup from gwaeneal. It works great and exits fine but i select a different game it loads the first game i loaded.
(2012-06-17, 15:52)ali2k1 Wrote: Hi angelscry im having problem with demul i followed the setup from gwaeneal. It works great and exits fine but i select a different game it loads the first game i loaded.
Demul command line is bugged. You can mount manually GDRom images from Demul, but cannot do it from the command line. They have also removed the gdrDemul.dll plugin that previously allows to start mounted GDRom images (with DaemonTools for example). Results... it is actually not possible to mount GDRom images from Demul using command line. When you try to do it Demul always start the last manually mounted image.

Best move is actually to use nullDC instead of Demul.

(2012-06-17, 20:17)Angelscry Wrote:
(2012-06-17, 15:52)ali2k1 Wrote: Hi angelscry im having problem with demul i followed the setup from gwaeneal. It works great and exits fine but i select a different game it loads the first game i loaded.
Demul command line is bugged. You can mount manually GDRom images from Demul, but cannot do it from the command line. They have also removed the gdrDemul.dll plugin that previously allows to start mounted GDRom images (with DaemonTools for example). Results... it is actually not possible to mount GDRom images from Demul using command line. When you try to do it Demul always start the last manually mounted image.
I think I have found a way to bypass this... I'm working on it....Wink

(2012-06-17, 15:52)ali2k1 Wrote: Hi angelscry im having problem with demul i followed the setup from gwaeneal. It works great and exits fine but i select a different game it loads the first game i loaded.
Could you confirm me that this new DEmul launcher autoit script is working on your system :

Code:
Opt("WinTitleMatchMode", 1)
Opt("MouseCoordMode", 0)
HotKeySet("{ESC}", "Terminate")

$app = "C:\Program Files (x86)\demul\demul.exe"
$ini = "C:\Program Files (x86)\demul\gdrImage.ini"

If $CmdLine[0] == 1 Then
    FileDelete ( $ini )
    Local $file = FileOpen($ini, 1)
    If $file = -1 Then
            Exit 0
    EndIf
    FileWriteLine($file, "[main]")
    FileWriteLine($file, "imageFileName = " & $CmdLine[1])
    FileWriteLine($file, "openDialog = false")
    FileClose($file)
    Run($app)
    WinWaitActive ( "Demul" )
    MouseMove ( 17, 33, 0)
    MouseClick("left")
    Send ("{DOWN}")
    Send ("{ENTER}")
    WinWaitActive ( "gpu" )
    Send("!{ENTER}")
    While 1
        Sleep(100)
    WEnd
EndIf

Func Terminate()
    ProcessClose ( "demul.exe" )
    Exit 0
EndFunc

To use this script, you have to be sure that the gdrImage GD-ROM plugin is activated and that you are using the last version (0.5.7) of DEmul . You can also now simply close DEmul by pressing the ESC key. Wink
Il try this out soon as im home, thank you il let you know if it works.
  • 1
  • 235
  • 236
  • 237(current)
  • 238
  • 239
  • 453

Logout Mark Read Team Forum Stats Members Help
[CLOSED] Advanced Launcher - Applications Launcher Addon for XBMC24