AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

mouse gesture script
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
nanasisan
Guest





PostPosted: Sat Jul 24, 2004 9:24 pm    Post subject: mouse gesture script Reply with quote

http://cgi19.plala.or.jp/lukewarm/news/2004_07.html#23

Edit: Fixed URL to be clickable
Back to top
Rajat



Joined: 28 Mar 2004
Posts: 1717

PostPosted: Sat Jul 24, 2004 9:43 pm    Post subject: Reply with quote

thanx for the link... by the way any idea what language is the page in?
_________________
Back to top
View user's profile Send private message
dijiyd



Joined: 01 Apr 2004
Posts: 90
Location: Philippines

PostPosted: Sun Jul 25, 2004 1:59 am    Post subject: Reply with quote

It's in japanese. .jp is a japanese TLD.
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Fri Aug 20, 2004 10:35 pm    Post subject: Reply with quote

Has someone seen my dictionary Question [more...]
Back to top
jmh
Guest





PostPosted: Fri Sep 10, 2004 7:08 pm    Post subject: Reply with quote

I've had a bit of a play around with that script and come up with this:

http://www.geocities.com/jadoxa/misc/mg.ahk.txt

The default configuration will:
    manipulate the scroll bar(s) of the window under the cursor;
    close the active window;
    maximise (and restore) the width or height of the active window;
    center (and restore) the active window, or position in one of the four corners;
    translate middle click to double left click (forgot to optionalise it).

Jason.

PS: I'll be away for a week, so I'll look forward to any comments.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Sep 11, 2004 4:34 am    Post subject: Reply with quote

I tried it and it's pretty amazing. Although it takes a little training to get the gestures right, the effect is akin to magic. The script itself is also a work of art: your use of configuration and dynamic elements is very advanced, pushing the limits of what the language can do.

Since it took me a while to get started with it, I think what it most needs is a little more documentation. For example, although you say "each of these should have an _Action label", there is no explanation for the string "-L-R-U-D-LR-RL-DU-LD-UR-RD-UL-RU-DL-LU-DR-UD-" (though now I understand that it's a way to indicate which gestures are enabled).

I notice you've taken some of the easiest gestures and made them activate various functions, which is good because I found it hard to perform more complex gestures, such as the letter S, in a way that the script would detect consistently.

Since you're away for a week, I'll mention to anyone else who wants to try it that the way to start understanding the script is to search for labels that end in _Action. For example, the DU_Action label is automatically launched when you hold down the right button and move the mouse down-then-up (DU) fairly quickly. This gesture maximizes the height (but not the width) of the active window.

Thanks for sharing your creative script. I'll look forward to any future versions you might produce.
Back to top
View user's profile Send private message Send e-mail
BoBo
Guest





PostPosted: Sat Sep 11, 2004 10:35 am    Post subject: Reply with quote

Once we will be able to write AHK scripts with Palm-like-mouse-gestures Very Happy Cool
Back to top
Guest






PostPosted: Fri Sep 17, 2004 4:42 pm    Post subject: Reply with quote

Chris wrote:
I tried it and it's pretty amazing. Although it takes a little training to get the gestures right, the effect is akin to magic. The script itself is also a work of art: your use of configuration and dynamic elements is very advanced, pushing the limits of what the language can do.

C has funtion pointers, BASIC has ON/GOSUB, AutoHotkey has dereference. Personally, I prefer C; AHK is too much like DOS batch files for my liking, although not quite that bad (after all the trouble I had with Which, I'm never going to use batch files for anything other than basic tasks). I also had trouble forgetting to add percent signs. Smile

Chris wrote:
Since it took me a while to get started with it, I think what it most needs is a little more documentation. For example, although you say "each of these should have an _Action label", there is no explanation for the string "-L-R-U-D-LR-RL-DU-LD-UR-RD-UL-RU-DL-LU-DR-UD-" (though now I understand that it's a way to indicate which gestures are enabled).

Yes, I should have added more documentation (or any, really). Initially, I thought the string was a good idea, but it's quite long, isn't it? Can't really think of anything better though, and I won't go back to using If.

Chris wrote:
I notice you've taken some of the easiest gestures and made them activate various functions, which is good because I found it hard to perform more complex gestures, such as the letter S, in a way that the script would detect consistently.

Ah, well, the S was just a demonstration of what the gestures could be, not something I'd think you'd actually use. You might also like to try adjusting the sensitivity and timeout values.

Chris wrote:
Thanks for sharing your creative script. I'll look forward to any future versions you might produce.

Even though I should add more documentation, I'll leave it till I actually modify the script (could be a while, since I don't really know what else to add, other than diagonals). I also have a script that simulates WinKey (which AutoHotkey replaces, along with Type Pilot), which I'll upload. Eventually. It's small enough to post here, anyway.

Jason <jadoxa@yahoo.com.au>
Back to top
nanasisan
Guest





PostPosted: Wed Nov 10, 2004 3:23 pm    Post subject: Reply with quote

new version with configuration GUI
http://lukewarm.s41.xrea.com/AutoHotkey/myscripts/index.html
Back to top
Wingfat



Joined: 23 Aug 2004
Posts: 193
Location: East Bay, California USA

PostPosted: Wed Nov 10, 2004 5:14 pm    Post subject: Reply with quote

Is it me or does this new one not work? When loaded my Rbutton hangs when used. I right click on a web page and it takes a few seconds for the drop down menu to show up.
no matter what gesture i try nothing works for me. (i could be doing something wrong i guess.. but i dont think so.) Surprised
_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Thu Nov 11, 2004 12:44 am    Post subject: Reply with quote

nanasisan wrote:
new version with configuration GUI
Thanks for sharing it, and for your posting all your other work on the web for the benefit of others.

Wingfat wrote:
Is it me or does this new one not work?
I think this new one is an update of the original version, not the version modified and posted by jmh above. Jmh's version is the only one I've used so far.
Back to top
View user's profile Send private message Send e-mail
deguix



Joined: 26 Aug 2004
Posts: 72
Location: Everett - MA, USA

PostPosted: Fri Nov 19, 2004 4:07 am    Post subject: Reply with quote

I'm developing a different version from nanasian's. I'm trying to make the drawing like some shareware products like Sensiva (which I used a lot in the past) and I can say I'm having sucessful results with this version being developed. Right now I only can draw an arrow...

As I can't edit bitmaps, I'm planning to create a INI file support for the customized symbol creation, like letters, numbers and etc. And logically, a GUI where you are going to put information about the symbols.

I plan also to make the drawing support for specific windows. It's base is already implemented in my code right now.

The only problem it will have is that you can't see the drawing trails. Ideas?
_________________
Working now on:
NSIS Wiki (NSIS)
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Nov 19, 2004 12:22 pm    Post subject: Reply with quote

Quote:
The only problem it will have is that you can't see the drawing trails. Ideas?
Assuming "trails" is a representation of the path of the mouse, maybe this:

1) When the user clicks and holds down the mouse...
2) Create an always-on-top window with a transparent background (via WinSet TransColor)
3) Create a series of bitmap controls to make dots that follow the trail of the mouse.
4) Destroy the window when the user releases the mouse button.

Of course the above isn't very efficient. If you were to program this, how would you do it? Perhaps by drawing directly onto the system/desktop DC and then erasing it afterward?
Back to top
View user's profile Send private message Send e-mail
deguix



Joined: 26 Aug 2004
Posts: 72
Location: Everett - MA, USA

PostPosted: Fri Nov 19, 2004 1:24 pm    Post subject: Reply with quote

Quote:
Of course the above isn't very efficient. If you were to program this, how would you do it? Perhaps by drawing directly onto the system/desktop DC and then erasing it afterward?
Yeah... At least it would support Win9x and WinMe.
_________________
Working now on:
NSIS Wiki (NSIS)
Back to top
View user's profile Send private message
Basile



Joined: 28 Jun 2005
Posts: 8
Location: FRANCE

PostPosted: Tue Jun 28, 2005 3:10 pm    Post subject: Reply with quote

hi everyone,

I'm very interested by drawing the trails of the mouse! I just want ot known if someone is still working on it and how many problems you faced in developping a function like that! I will be very enthousiatuc if someone can share his works for all people like me in order to achieve in this project!

Best regards

Basile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group