@madfx:
Thank you for kind words.
I only want the main Radial Menu script to effect the program I've set it up for, and disabled for all other windows.
1. option - see
OnRMShowHotkey event in RM help
2. option - turn
BlackList into
WhiteList; open
RMApp lib.ahk, go to
RMApp_RMShowHotkeyState() function, and replace
Hotkey, IfWinNotActive with
Hotkey, IfWinActive (2 times)
3. option - build your own app based on
RM2module - study examples, especially:
Example 3 - Context-sensitive.ahk
Example 9 AHK_L - Menu definition in RMApp style.ahk
@joefango:
Thanks for kind words and sharing nice ideas and "dreams".
... context-sensitive docks ... toggle ...
Study this code and adapt it to fit your needs. It makes 2 groups of docks; SciTEDocks and ShellDocks (taskbar), and pressing F1 showes or hides appropriate docks.
SciTEDocks := "2,4"
ShellDocks := "6,7"
F1::
IfWinActive, ahk_class SciTEWindow
CustomDocksHnadler(SciTEDocks)
else IfWinActive, ahk_class Shell_TrayWnd
CustomDocksHnadler(ShellDocks)
return
CustomDocksHnadler(DocksList) {
VisCount := 0, InVisCount := 0
Loop, parse, DocksList, `,
{
if (DllCall("IsWindowVisible", A_PtrSize ? "Ptr" : "UInt", RM2_Reg("M" A_LoopField "#HWND")) = 1)
VisibleDocks .= A_LoopField ",", VisCount += 1
else
InVisibleDocks .= A_LoopField ",", InVisCount += 1
}
VisibleDocks := RTrim(VisibleDocks, ","), InVisibleDocks := RTrim(InVisibleDocks, ",")
AllDocksList := RM2_Reg("DocksList")
if (VisCount >= InVisCount)
RM2_HideAllDocks() ; hides all docks
else
RM2_ShowDocks(DocksList) ; shows a comma delimited list of docks and hides all other docks.
}
... with all these docks features I don't need the Main Radial Menu anymore. Is there a way to disable it but keep the RMShowHotkey ? (needed it for mouse gestures) ...
1. option - build your own app based on
RM2module and
Mouse gestures.
2. option - see OnRMShowHotkey event in RM help
3. option - open RMApp lib.ahk, go to RMApp_RMShowHotkey() function, and delete those 2 lines:
if (Gesture = RMShowMethod)
break