Kodi 16 and PCSX 1.4
#1
Hi there.

I use Kodi 16 + Advanced Launcher Plugin + AutoIt script + PCSX 1.4

Here is the script:

Code:
#include <GDIPlus.au3>
#include <WindowsConstants.au3>
#include <GUIConstants.au3>

#Run("E:\Programs\nomousy\nomousy.exe /hide", "", @SW_HIDE)
#Run("E:\Programs\taskbarhider\TaskBarHider.exe -hide -exit")

HotKeySet("{ESC}", "Terminate")

If $CmdLine[0] == 2 Then
   GUICreate('MyGUI', @DesktopWidth, @DesktopHeight, 0, 0, BitOR($WS_POPUP, $WS_EX_TOPMOST))
   GUISetBkColor(0x000000)
    GUISetState()
    Run ( '"C:\Program Files (x86)\PCSX2 1.4.0\pcsx2.exe" --nogui --fullscreen "' & $CmdLine[1] & '" --cfgpath="E:\Games\Sony\PS2\Inis\' & $CmdLine[2] & '"', "C:\Program Files (x86)\PCSX2 1.4.0\" )
   Run("pssuspend Kodi.exe", "", @SW_HIDE)
   While 1
           Sleep(100)
   WEnd
EndIf

Terminate

Func Terminate()
    ProcessClose ( "pcsx2.exe" )
   Run ( 'pssuspend -r Kodi.exe')
   WinSetState("Kodi","", @SW_MAXIMIZE)
   #Run("E:\Programs\nomousy\nomousy.exe", "", @SW_HIDE)
   #Run("E:\Programs\taskbarhider\TaskBarHider.exe -show -exit")
   Exit 0
EndFunc

Is anyone able to tell me why it doesnt work?! Even though it used to  work with older versions of PCSX...

Cheers.
Reply

Sponsored links

#2
I'm not sure what the script is supposed to do but pcsx2 will not run in that way if you don't also add a path to a game image.
It will just run pcsx2 and display nothing(unless you have the console enabled....you will only see the console then)
Reply
#3
CmdLine[1] is supposed to load the iso.

http://forum.kodi.tv/showthread.php?tid=137159&page=2
Reply




Users browsing this thread: 1 Guest(s)