Page 1 of 1

How to assign/disable buttons in a specific program

Posted: 06 Sep 2018, 15:56
by arcadelover14
Hello,

I am working on this script and I am trying to figure out how to disable in XBMC.

I can get it to work on the global level but not within the program.

The Keys I want to simultaneously (pressing all the keys at the same time not in sequence) disable in XBMC are: ALT+DOWN+TAB and ALT+UP+TAB.

Alternatively if there is a way to prevent 2Joy10 and 2Joy9 being pressed at the same time that would also be helpful.


I have included the code below - any and all help is much appreciated.


TAB & UP::Return
TAB & DOWN::Return

IfWinActive XBMC
{

WinActivate XBMC ;
WinGet XBMC
WinShow
}
else
{
IfWinExist XBMC
{

WinActivate XBMC
WinShow
WinGet XBMC


}
else
{

Run C:\Program Files\XBMC\XBMC.exe
WinWait XBMC
WinActivate XBMC
}
}

IfWinNotExist XBMC.exe
{Run C:\Program Files\XBMC\XBMC.exe
WinWait XBMC
WinActivate XBMC
}

Process, Exist, EventGhost.exe
If ErrorLevel <> 0
Process, Close, GSB_Script_AllinOne.exe

return



Thank You.

Re: How to assign/disable buttons in a specific program

Posted: 06 Sep 2018, 22:43
by YMP2