AutoHotkey Community

It is currently May 27th, 2012, 12:55 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: December 29th, 2009, 7:25 pm 
Offline

Joined: August 10th, 2009, 8:31 pm
Posts: 20
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 :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2009, 7:59 am 
Offline

Joined: February 2nd, 2008, 4:35 am
Posts: 643
Try
Code:
RAlt::
  Send {RAlt Up}
  Send {LWin}
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2009, 10:20 am 
Offline

Joined: August 10th, 2009, 8:31 pm
Posts: 20
Thanks a_h_k for the reply :) . Unfortunately, the command doesn't seem to work. It sends the LWin key repeatedly when holding down RAlt, and the Clipboard program isn't able to receive the keystroke.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2009, 11:02 am 
I don't know if this is the program you use but perhaps this?
http://www.lw-works.com/doc/clipboard-r ... ns/general
(btw i use ClipX http://bluemars.org/clipx/)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: December 30th, 2009, 3:45 pm 
Offline

Joined: August 10th, 2009, 8:31 pm
Posts: 20
Hi Fred, yes, that's exactly the program I use. The built in hotkey configuration is a nice feature, but the problem is that it's limited to alpha-numberic characters, so it doesn't allow me to use something like "RAlt + AppsKey" or even ";" (semicolon). Because I use the clipboard manager often, I would like to have easy access to the hotkeys, and even using "Win + V" is a little awkward for me because I have to reach over and use my right hand. I've tried ClipX and it's indeed a great program. The thing that brought me to Clipboard Recorder is the scrollable popup menu via hotkey.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google Feedfetcher, WillTroll, XstatyK and 30 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group