2012-09-06, 15:53
#!Enter:: ; Win+Alt+Enter shortcut key <<<<<<<<<<<<<<<<<<<<<<< Can I change this to the key F7?
LaunchApplication(XBMCPath)
Sleep, 2000
WinActivate, ahk_class XBMC
FocussedOnce = 0
LaunchApplication(iMONPath)
LaunchApplication(XBMConiMONPath)
Sleep, 5000
WinActivate, ahk_class XBMC
WinGet, Style, Style, ahk_class XBMC
if (Style & 0xC00000) ;Detects if XBMC has a title bar.
{
Send {VKDC} ;Maximize XBMC to fullscreen mode if its in a window mode.
}
Return
SetTitleMatchMode 2
#IfWinActive XBMC ahk_class XBMC ; XBMC detection for XBMC/GSB Home Screen action.
#!Enter::
WinGet, Style, Style, ahk_class XBMC
if (Style & 0xC00000) ;Detects if XBMC has a title bar.
{
Send {VKDC} ;Maximize XBMC to fullscreen mode if its in a window mode.
}
WinMaximize ;Maximize XBMC if Windowed.
send, ^!{VK74} ; if XBMC is Active (GSB Home Jump will activate)
Return
#IfWinActive ;
LaunchApplication(XBMCPath)
Sleep, 2000
WinActivate, ahk_class XBMC
FocussedOnce = 0
LaunchApplication(iMONPath)
LaunchApplication(XBMConiMONPath)
Sleep, 5000
WinActivate, ahk_class XBMC
WinGet, Style, Style, ahk_class XBMC
if (Style & 0xC00000) ;Detects if XBMC has a title bar.
{
Send {VKDC} ;Maximize XBMC to fullscreen mode if its in a window mode.
}
Return
SetTitleMatchMode 2
#IfWinActive XBMC ahk_class XBMC ; XBMC detection for XBMC/GSB Home Screen action.
#!Enter::
WinGet, Style, Style, ahk_class XBMC
if (Style & 0xC00000) ;Detects if XBMC has a title bar.
{
Send {VKDC} ;Maximize XBMC to fullscreen mode if its in a window mode.
}
WinMaximize ;Maximize XBMC if Windowed.
send, ^!{VK74} ; if XBMC is Active (GSB Home Jump will activate)
Return
#IfWinActive ;