Does anyone know how to implement 'browse forward and back' in strokeit! or a similar mouse-gesture app? I'm sure I had it going a while back, but have lost the config... Thanks.
You might get a better/quicker answer at the StrokeIt forum if the question is how to make StrokeIt generate a particular keypress (which doesn't involve Opus at all really).
On the Opus side, you can define any key(s) you want to do the same thing as the back and forward buttons, if that helps you use different keys in StrokeIt.
Thanks Leo. The solution was to assign hotkeys to the DOpus button and then send the hotkeys from Strokeit as 'new commands'. Bit of a kludge, but hey.
I used the same general method with AutoHotkey, including the code for the AHK script here for comparison:
; dopus.ahk
#SingleInstance ignore
#IfWinActive, ahk_class dopus.lister
~LButton & RButton::Send ^!x
~RButton & LButton::
Send ^!z
LButtonReleased := 0
Loop 500
{
GetKeyState, RBstate, RButton, P
if RBstate = U
{
Sleep, 25
Send {Esc}
break
}
GetKeyState, state, LButton, P
if state = U
LButtonReleased := 1
else if state = D
{
if LButtonReleased = 1
{
Send ^!z
LButtonReleased := 0
}
}
Sleep, 25
}
Send {Esc}
return
I made this to emulate the "rocker mouse gesture" behavior of the Opera web browser.... where holding the RIGHT mouse button while clicking and releasing the LEFT mouse button goes BACK in browser history, and the reverse LEFT/RIGHT rocker gesture goes FORWARD. So I used <Ctrl+Alt+Z> and <Ctrl+Alt+X> as my back and forward hotkeys in Opus.
You didn't say which mouse gesture you were going to configure in StrokeIt. Is it the same sort of 'rocker' mouse gesture as I've described or something else? The reason I ask is that while I use this a hundred times a day, one thing I don't like about it is the sleep and Esc key tricks I had to rely on in order to dismiss the context menu that normally pops up when you RELEASE the right mouse button in Opus. If there were a cleaner way to achieve this without the context menu popping up at all, that'd be MUCH more to my liking. Wondering if other programs will 'gobble' up the RMB release so that it never gets to Opus to trigger the context menu in the first place...
Hi Steje, I haven't had any issues with the right-click menu at all, and I'm just using 'left' and 'right'.