AutoHotkey Community

It is currently May 27th, 2012, 12:37 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: mouse gesture script
PostPosted: July 24th, 2004, 9:24 pm 
http://cgi19.plala.or.jp/lukewarm/news/2004_07.html#23

Edit: Fixed URL to be clickable


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 24th, 2004, 9:43 pm 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1870
thanx for the link... by the way any idea what language is the page in?

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: July 25th, 2004, 1:59 am 
Offline

Joined: April 1st, 2004, 12:00 am
Posts: 87
Location: Philippines
It's in japanese. .jp is a japanese TLD.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 20th, 2004, 10:35 pm 
Has someone seen my dictionary :?: [more...]


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 10th, 2004, 7:08 pm 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2004, 4:34 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 11th, 2004, 10:35 am 
Once we will be able to write AHK scripts with Palm-like-mouse-gestures :D 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: September 17th, 2004, 4:42 pm 
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. :)

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>


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2004, 3:23 pm 
new version with configuration GUI
http://lukewarm.s41.xrea.com/AutoHotkey ... index.html


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2004, 5:14 pm 
Offline

Joined: August 23rd, 2004, 10:06 pm
Posts: 276
Location: East Bay, California USA
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.) :o

_________________
----------------------------
Wingfool you fat! I mean, Wingfat you fool!
Line from Woody Allen's movie "What's Up Tiger Lilly?"
-----------------------------


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 11th, 2004, 12:44 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2004, 4:07 am 
Offline

Joined: August 26th, 2004, 3:11 pm
Posts: 80
Location: Chelsea - MA, USA
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:
NumpadMouse v2 (Draw)
top-recode project (private server script) (pkodev)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2004, 12:22 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 19th, 2004, 1:24 pm 
Offline

Joined: August 26th, 2004, 3:11 pm
Posts: 80
Location: Chelsea - MA, USA
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:
NumpadMouse v2 (Draw)
top-recode project (private server script) (pkodev)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 28th, 2005, 3:10 pm 
Offline

Joined: June 28th, 2005, 2:06 pm
Posts: 8
Location: FRANCE
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


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bon, maul.esel and 9 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group