Hi all, I've literally spent the last two days trying to figure this out. As of now I've pretty much given up, but decided to post as a last ditch effort.
I use a program called "Clipboard Recorder". The reason why I like this program is because it's small, and has the following function:
1. Hold down LWin and press "V" to bring up a popup menu at the current caret position
2. With the LWin key held down, repeatedly press V to scroll through the list of clipboard menu entries
3. When you've landed on the entry you want, release LWin (and V) to automatically paste the entry at the current caret position.
The problem I'm having is remapping the keys. Instead of "LWin + V", I would like to use something like "RAlt + AppsKey" (hold down RAlt and scroll menu with AppsKey). Unfortunately, it seems that this software does not respond to remapped keys. For example, I remapped the RAlt key to LWin
Code:
RAlt::LWin
but when holding down RAlt and pressing "V", nothing happens. After testing out many combinations, it seems that the software simply won't respond to any remapped keys. I have tried to use "GetKeyState", "Keywait", "Send {blind}", as well as sending scancodes - nothing works.
The following bit of code works to force the menu to popup at the cursor:
Code:
RAlt::
DetectHiddenWindows, On
Coordmode, mouse, screen
MouseGetPos, xpos, ypos
WinWait, ahk_class ATL:005BA678
WinMove, %xpos%, %ypos%
WinShow, ahk_class ATL:005BA678
Return
The interesting thing is that if I add
Code:
SendInput {LWin Down}
at the end of the command (after WinShow), the program does in fact "realize" that the LWin key is held down. Pressing "V" at this point works to scroll the menu (without having to physically hold down LWin because the sendinput command already took care of it).
So I figure that if I just remap a siimple key (Appskey::v), I would get my intended functionality. However, when trying to remap or even send the "v" keystroke or even "Enter" (Enter also works to paste the entry and close the menu), there is simply no response.
So for example, I tried:
Code:
#IfWinActive ahk_class ATL:005BA678
AppsKey::
SendInput v
return
#IfWinActive
Even though the LWin key has been permanently pushed down with the first command, pressing AppsKey does not send "V" to scroll the menu (but it does type out the letter "v" in notepad, etc.)
Is there something that I've overlooked? Essentially, I would simply need to remap the keys (or use "send" if necessary) to hold one key down, press another key repeatedly to scroll, and then perform an action when both are released, in this case it would paste the clipboard menu entry at the caret position and close the popup menu. If anyone has any ideas, I'm all ears
