Mapping F2 to Left Mouse Hold

Hi, I’m trying to map the F2 function key to left mouse button hold. The idea is that if I press F2 I can then move the mouse and this will act as a dragging action. If I then press again F2 the left mouse button will be released.

It kinda work, but I noticed that I have to press F2 times to activate it.
I’m uploading the translator to see if it can be done better.

Thanks in advice for any input.

F2 to Hold Mouse.bmtp (1.4 KB)

Hi,

I changed the project so that both translator 0.0 and 0.1 accept F2 Down as an incoming trigger.

Keep in mind that if your computer is programmed to otherwise process F2, the original outgoing keystroke is NOT suppressed so be havior may change depending on which window has focus. It is best to use a function key that doesn’t natively trigger anything else within your application or operating system.

F2 to Hold Mouse-sjc.bmtp (1.4 KB)

Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz

Thanks a lot, it work as I wanted now!
Yes, I’m aware that the original keystrokes are not suppressed, that’s the reason why I choose F2 because I disabled it in the software where I intend to use this translators.

I’m glad to hear it is working now!

Steve Caldwell
Bome Customer Care
Also available for paid consulting services: bome@sniz.biz