How to assign/disable buttons in a specific program

Get help with using AutoHotkey and its commands and hotkeys
arcadelover14
Posts: 2
Joined: 06 Sep 2018, 15:15

How to assign/disable buttons in a specific program

06 Sep 2018, 15:56

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.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bad husband, Bing [Bot] and 135 guests