Home
Download
Screenshots

Wiki
Plugins
Translations
Developers
Donate

Forums/Help
Contact Us

StrokeIt

To draw gesture holding both Left and Right button...

Posted by Stephane 
...at a time ?

Hello,

I use to work with autocad and sketchup using sensiva (on windows XP) It's Amazing !
I plan to install Stoke It when I'll update XP to Win.8...

So I use to make gesture holding both Left and Right button at a time because I use pen tablet instead of mouse.
Can I do this with Stoke It too ?

If I only use Left or Right button, little movement when I draw quickly or click quickly make mistakes... I can't work slowly :o)

Best regards.
Stephane.
Re: To draw gesture holding both Left and Right button...
April 18, 2013 12:58PM
StrokeIt can have only one gesture button.
OK.
Thanks for this ...sad reply, MKairys :-)
Is a "plug in" ables to do this ?

(Would a "plug in" be able to do this ?)

Thanks.
Stephane.
Leo
Re: To draw gesture holding both Left and Right button...
April 22, 2013 03:11PM
Hello Stephane,

You could install autohotkey and do if mouse_down_button_left and mouse_down_right execute mouse_down_middle and Strokeit draw button middle mouse.

with best regards

Leo
Thank you Leo,

In fact, I installed AutoHotkeh yesterday to remap a key to MButton...
I was not very reactiv and not so handy.

In add I already offten use left hand to handle a 3D controler (3DConnexion)

But... your idea to remap RButton+LButton to MButton seems to be a really good idea :-)

Do you know how write this script in AutoHotkey ?
I tried some minutes ago with :
RButton & LButton::MButton
but it doesn't work.
It make : Error at line 6.
Line Text : MButton
Error : This line does not contain a recognized action.
The program will exit.

Thanks and best regards.
Stéphane
Leo
Re: To draw gesture holding both Left and Right button...
April 23, 2013 06:45AM
Hello Stephane,
Try this and play with sleep in Miliseconds

~LButton & RButton::
send {MButton down}
Sleep 300
send {MButton up}

with best regards

Leo
Thanks a lot for your reply, Leo.

I'm impressed.
I spent long hours to understand and try AutoHotkey
I spent long time to search and read differents forums but it's quite difficult because it's a technical software (and English is not my mother language)
Nothing I tried really works...
I lost hope.

And you find quickly a solution which work. Thank you :-)

Is it really nessesary to play with "sleep" ?
With long gesture 300 ms are sometime too short
but with simple gesture 300 ms are too long (Any way it make latency when you work quickly)

It is strange...why (RButton & LButton::MButton) doesn't work ?
However (²::MButton) work find even if this way is not so handy.
With this way I can drag holding the simulated MButton without define any time laps or "sleep".

My best regards
Stephane
Leo
Re: To draw gesture holding both Left and Right button...
April 23, 2013 04:02PM
ok try this one

~LButton & RButton::
send {MButton down}
Loop
{
    Sleep, 10
    GetKeyState, state, RButton, P
    if state = U  ; The key has been released, so break out of the loop.
        break
}
send {MButton up}
return



Edited 1 time(s). Last edit at 04/23/2013 04:03PM by Leo.
Hello my savior :-D

I can't believe it. It works
It works without any latency and without kind of problems :-D

I only swap LButton and RButton in the first line due to the pen tablet use :
~RButton & LButton::
(...)

It perfectly works on AutoCAD (Most important Software for me becaus I often use it with a huge sort of gestures)
But... it make problems with Sketchup (less important because I ony use zoom and pan gesture with it and I can replace zoom gestures and pan gesture with 3D controler (3DConnexion)

In fact, with Sketchup, when I press LeftButton holding down RightButton
Sketchup understand only RightButton and show me contextual menus...

I don't want you think (in brainstorm meaning) about this problem because you already give me a very good work and help. Thanks a lot !!
But if you already have the solution...I take it, of course ;-)

So I thank you, and all the clever guys, and the W.W.Web.
It was for me a very big problem becaus sensiva doesn't work with Win.7 or Win.8.
and I can't use XP all my live.

Best regards
Stephane
(I can't edit previous post)
To be more accurate :

In fact, with Sketchup, when I press LeftButton holding down RightButton
Sketchup understand only RightButton (released) and show me contextual menus...
even if I don't release this RightButton.

Stephane
@ Leo.

1/ The problem with Sketchup is entirely due to the Sketchup behavior.
A RButton down (without RButton Up) show anyway a context menu when the mouse is above a sketchup drawing or after a pan or after a zoom. That's the way it is. With or without StrokeIt or Autohotkey (even if it works with Sensiva)
It's not because of the script.

2/ I tried to simplify your last script (which is fine ! ;-)) and it seems it be OK too :

~RButton & LButton::
send {MButton down}
KeyWait RButton
Keywait LButton
send {MButton up}
return

3/ I "succeed" (a little bit) to draw gestures using strokeIt and autohotkey with Sketchup.
But the script without tilde (below) doesn't allow to use Right Click... :o)...:-S

RButton & LButton::
send {MButton down}
KeyWait RButton
KeyWait LButton
send {MButton up}
return


So I re-Thank you again for your precious help :-)
Stephane.
Sorry I'm doing a monologue.

_Here the last simplified release (AutoHotkey)
For a standard use (Windows, Autocad...) without Sketchup :

~RButton & LButton::
send {MButton down}
KeyWait LButton
send {MButton up}
return

_Here, a relase which seems working with Sketchup too (he he he) :

RButton & LButton::
send {MButton down}
Keywait LButton
send {MButton up}
return

RButton Up::
send {RButton}
return

So many thanks to Leo, Jeff Doozan and Chris Mallet
Stephane
Re: To draw gesture holding both Left and Right button...
February 19, 2014 04:59AM
Hi,

how can i send tilde character (~)
ALT+0176
UTF-8 Hexadecimal Encoding= 0x7E

i can't do it with "send keystrokes"

Thanks



Edited 1 time(s). Last edit at 02/19/2014 05:02AM by Metin.
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 22 plus 6?
Message: