Jump to content


Photo

[module] Mouse gestures


  • Please log in to reply
6 replies to this topic

#1 Learning one

Learning one
  • Members
  • 1292 posts

Posted 02 April 2010 - 04:06 PM

[module] Mouse gestures by Learning one
- no globals
- easy to use, understand, and implement in any script
- compatible with both AHK_L and AHK Basic

Download MouseGestures.ahk

Basic example (other examples are in MouseGestures.ahk)

MButton::MG_Recognize() ; recognizes performed mouse gesture and executes appropriate function

MG_R() { ; mouse gesture: Right
MsgBox,,, %A_ThisFunc%, 1 ; specify your action here
}
MG_RD() { ; mouse gesture: Right, Down
MsgBox,,, %A_ThisFunc%, 1 ; specify your action here
}
MG_RDL() { ; mouse gesture: Right, Down, Left
MsgBox,,, %A_ThisFunc%, 1 ; specify your action here
}
; etc.


#2 Learning one

Learning one
  • Members
  • 1292 posts

Posted 05 April 2010 - 11:48 AM

Module updated. Changes:
- added MG_ prefix to all functions to avoid collision with other libs
- RecognizeGesture() renamed to MG_Recognize()
- even simpler usage;
- MGHotkey become optional parameter. Now all parameters are optional.
- you don't have to use #UseHook or $ prefix any more

#3 Tuncay

Tuncay
  • Members
  • 1943 posts

Posted 05 April 2010 - 12:29 PM

Extremly nice. :lol: can`t wait to test it out on my vista machine. New food for my collection (and with license text <3).

#4 Learning one

Learning one
  • Members
  • 1292 posts

Posted 01 January 2011 - 05:26 PM

[module] Mouse gestures updates:
- added FuncPrefix - possibility to specify custom prefix of function to execute. If empty, "MG_" prefix applies.
- license changed - it's very permissive now
- new examples
- first post updated

#5 bj

bj
  • Members
  • 5 posts

Posted 01 January 2011 - 11:44 PM

Great module. I like the enhanced flexibility over Radial Menu Mouse Gestures. Would it be difficult to replace the Radial Menu mouse gestures with this module?

#6 Learning one

Learning one
  • Members
  • 1292 posts

Posted 03 January 2011 - 07:06 PM

Thanks. What possibilities from this module would you like to have in Radial menu's mouse gestures? Maybe configurable MaxMoves in gesture?

#7 bj

bj
  • Members
  • 5 posts

Posted 03 January 2011 - 11:32 PM

Mouse Gestures in Radial Menu is easily my most used and favorite element.

I don't think I could pick a favorite option in this module. I like them all and can see using all of them.

I suppose I could delete all the functions in Radial Menu Mouse Gestures and use this module in its place.