Use mouse button & wheel to activate a command

Discussion, questions and support.
Post Reply
User avatar
Ennovy
Posts: 73
Joined: Mar 18th, ’14, 08:46

Post by Ennovy » Mar 18th, ’14, 08:58

Hi,

I am evaluating the portable version of FastKeys and I am impressed by all it's features.

I want to create a command to browse forward and backward in Firefox using the right mouse button in combination with the mouse wheel, but I don't know how to do this.

Thanks in advance for your support
User avatar
Marko
Posts: 1925
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Mar 18th, ’14, 09:58

Currently there is only indirect way to do this. We will think about allowing complex shortcuts like this in the future.

For now you can make a Start Menu item, Type=Command, Options=AutoRun:

Command:

Code: Select all

return
~RButton & WheelDown::
Send ^{Tab}
return

~RButton & WheelUp::
Send ^+{Tab}
return
User avatar
Ennovy
Posts: 73
Joined: Mar 18th, ’14, 08:46

Post by Ennovy » Mar 18th, ’14, 10:14

Thanks for the quick reply Marko!

The mouse combination works great to activate the command, but the command I need is : browse to previous or next page visited in my browser.

When I hold down the right mouse button I hear a sound. Can this be deactivated?
User avatar
Marko
Posts: 1925
Joined: Mar 2nd, ’13, 21:02

Post by Marko » Mar 18th, ’14, 12:37

sorry, try this:

Code: Select all

return
~RButton & WheelDown::
Send {Browser_Back}
return

~RButton & WheelUp::
Send {Browser_Forward}
return
Right mouse button is by default also a mouse gesture key. To not hear the sound you can disable gestures module or untick the option Play sound for no match (under Preferences/Gestures).
User avatar
Ennovy
Posts: 73
Joined: Mar 18th, ’14, 08:46

Post by Ennovy » Mar 18th, ’14, 13:27

Thanks Marko
Post Reply