Are navigation keys possible?
I worked the following in from StarHotkeys to StarsCash/FTCash, but they don't seem to directly fit in with the AP script (I also included NextWindow.ahk in the hotkey's directory. It was included with Starskeys and can be found
here):
Code:
1) Gui menu, no problem
Gui, Font, S8 CDefault Bold, Verdana
Gui, Add, Text, x70 y150 , Navigation Hotkeys
Gui, Font, S8 CDefault norm, Verdana
Gui, Add, Text, x25 y170 , Up
Gui, Add, Edit, x180 y170 w50 h20 vNextWindow_Up, %NextWindow_Up%
Gui, Add, Text, x25 y190 , Down
Gui, Add, Edit, x180 y190 w50 h20 vNextWindow_Down, %NextWindow_Down%
Gui, Add, Text, x25 y210 , Left
Gui, Add, Edit, x180 y210 w50 h20 vNextWindow_Left, %NextWindow_Left%
Gui, Add, Text, x25 y230 , Right
Gui, Add, Edit, x180 y230 w50 h20 vNextWindow_Right, %NextWindow_Right%
2)
IniRead, NextWindow_Up,%thisahk%.ini, Hotkeys, NextWindow_Up,%A_Space%
IniRead, NextWindow_Down,%thisahk%.ini, Hotkeys, NextWindow_Down,%A_Space%
IniRead, NextWindow_Left,%thisahk%.ini, Hotkeys, NextWindow_Left,%A_Space%
IniRead, NextWindow_Right,%thisahk%.ini, Hotkeys, NextWindow_Right,%A_Space%
3)
If NextWindow_Up
{
HotKey, IfWinActive, ahk_class PokerStarsTableFrameClass
Hotkey, %NextWindow_Up%, NextWindow_Up
}
If NextWindow_Down
{
HotKey, IfWinActive, ahk_class PokerStarsTableFrameClass
Hotkey, %NextWindow_Down%, NextWindow_Down
}
If NextWindow_Left
{
HotKey, IfWinActive, ahk_class PokerStarsTableFrameClass
Hotkey, %NextWindow_Left%, NextWindow_Left
}
If NextWindow_Right
{
HotKey, IfWinActive, ahk_class PokerStarsTableFrameClass
Hotkey, %NextWindow_Right%, NextWindow_Right
}
4)
NextWindow_Left:
NextWindow_Left("ahk_class PokerStarsTableFrameClass")
return
;--------------------------------------------------------------------------------
---------------------
NextWindow_Right:
NextWindow_Right("ahk_class PokerStarsTableFrameClass")
return
;--------------------------------------------------------------------------------
---------------------
NextWindow_Up:
NextWindow_Up("ahk_class PokerStarsTableFrameClass")
return
;--------------------------------------------------------------------------------
---------------------
NextWindow_Down:
NextWindow_Down("ahk_class PokerStarsTableFrameClass")
return
;--------------------------------------------------------------------------------
---------------------
5)
If NextWindow_Up
IniWrite, %NextWindow_Up%, %thisahk%.ini, Hotkeys, NextWindow_Up
If NextWindow_Down
IniWrite, %NextWindow_Down%, %thisahk%.ini, Hotkeys, NextWindow_Down
If NextWindow_Left
IniWrite, %NextWindow_Left%, %thisahk%.ini, Hotkeys, NextWindow_Left
If NextWindow_Right
IniWrite, %NextWindow_Right%, %thisahk%.ini, Hotkeys, NextWindow_Right
6)
NextWindow_Up=Up
NextWindow_Down=Down
NextWindow_Left=Left
NextWindow_Right=Right