I'm trying to make a simple hotkey to control a program called ClipX with a Win-RightClick hotkey combination.
I've been having problems getting it just right.
What I want it to do is this:
Remap Win-RightClick to the following actions--
If Clipx is open, send Win-Insert (default hotkey to open ClipX pasting menu)
Otherwise, open ClipX and THEN send Win-Insert.
This is the Window info for ClipX
CLIPX_MAIN
ahk_class CLIPX_CLASS
I've tried the following:
Code:
#RButton::
IfWinNotActive, CLIPX_MAIN
Send, #{Ins}
Else
Run, C:\Program Files\ClipX\clipx.exe
Return
That opens the menu properly, but doesn't open ClipX if it's not already opened.
Code:
#RButton::
IfWinNotExist, CLIPX_MAIN
Run, C:\Program Files\ClipX\clipx.exe
Else
Send, #{Ins}
Return
This opens ClipX if it's not open, but rather than opening the preferred menu of ClipX for pasting, it opens the Settings Menu when I use the Win-RightClick hotkey.
Surely there must be something I'm missing?