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 

deguix's "Mouse Gestures"
Goto page Previous  1, 2, 3  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
deguix



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

PostPosted: Sat Dec 25, 2004 4:31 am    Post subject: Reply with quote

Chris, I'm out of AutoHotkey community for some time and I'm going to still be. If you want, you can put the script on the script showcase, but you might want to change it depending if there are problems or suggestions. Or maybe someone else wants to take over and work on it for a while...
_________________
Working now on:
NSIS Wiki (NSIS)
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Sat Dec 25, 2004 12:02 pm    Post subject: Reply with quote

I'll be putting it in there soon, but if anyone reports that a fix is needed, or offers signficant improvements to it, I'll certainly update it.
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: Sat Dec 25, 2004 12:52 pm    Post subject: Reply with quote

Thanks! Very Happy
_________________
Working now on:
NSIS Wiki (NSIS)
Back to top
View user's profile Send private message
Vorchatwo
Guest





PostPosted: Wed Dec 29, 2004 7:01 am    Post subject: mouse gestures Reply with quote

No offense, but why not just get the program StrokeIt? Its a pre-made mouse stroke recognization program that is super easy to learn to use as well as very configuable, especially if you know how to write scripts (which i dont yet, but want to learn through the AutoHotkey prog)

It seems that from reading the AHk help file that the coding (scripting?) for StrokeIt is the same. So what I learn from AHk I could put into StrokeIt and visa-versa make hotkeys for StrokeIt to recognize that would do stuff.

c-ya's
V2
Back to top
deguix



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

PostPosted: Wed Dec 29, 2004 10:50 pm    Post subject: Reply with quote

Quote:
No offense, but why not just get the program StrokeIt?
Simple, I want an AHK approach, so everyone can learn from it and use it as part of their scripts.
_________________
Working now on:
NSIS Wiki (NSIS)
Back to top
View user's profile Send private message
Guest






PostPosted: Tue Feb 22, 2005 3:00 pm    Post subject: Reply with quote

NOw i am really impressed by autohotkey!!
this is awesome . i use strokeit for gestures but since i am totally gesture dependent i needed more. so i just changed it to work with the midlle mouse button and now hav strokeit with the right and autohotkey with the middle(or left). LOVELY!! Very Happy
the biggest advantage of this setup is having more single line gestures ( from 8 -> 16)

Thank u very much deguix
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10474

PostPosted: Tue Mar 15, 2005 4:47 pm    Post subject: Reply with quote

This wonderful mouse gestures script has finally be posted to the script showcase: http://www.autohotkey.com/docs/scripts/MouseGestures.htm

deguix: If you see anything you'd like changed in the way it's presented, please let me know. And thanks for writing it!
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: Wed Mar 16, 2005 12:24 am    Post subject: Reply with quote

Thanks! It's perfect, you don't need to change anything at this moment.

Quote:
i use strokeit for gestures but since i am totally gesture dependent i needed more. so i just changed it to work with the midlle mouse button and now hav strokeit with the right and autohotkey with the middle(or left). LOVELY!!
I never used Stroke It really (I just tried it now), I was more of a fan of Sensiva which I used since its first version (talk about a fan). Having a mouse gestures script for AutoHotkey is a real advantage over other programs. Principally when talkin' about using AutoHotkey codes for the gestures actions which can include labels, loops, GUI's...
_________________
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 1:42 pm    Post subject: Reply with quote

Hi everyone,

I'm very interested by the Mouse Gestures Script! I can say that this script is very useful for someone like me! I've installed a Firefox Extensions which is called "Mouse Gestures" (very close from the autohotkey script)! I'm very enthousiatic about it, because this extension can draw on the screen the tace that you've made with the mouse! That's the point of my question:

- is there a meaning to draw the gesture that I made every time I use a mouse gesture function!

I'm sorry, but I'm french ( Sad ) and if you don't have understand what I'm saying, please just test the Firefox extenion "mouse gestures" and you will certainly understand what I'm talking about!

I hope someone can help me... by explaining me which functions in Autohotkey will help me to achieve in my goals!

Best regards !

Basile
Back to top
View user's profile Send private message
deguix



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

PostPosted: Sat Jul 02, 2005 4:22 am    Post subject: Reply with quote

Quote:
- is there a meaning to draw the gesture that I made every time I use a mouse gesture function!

The question is not clear, but if I change the word "meaning" to "way", then the "MouseMove" AHK instruction is just the thing you are looking for. You can find how to use it in the docs.
_________________
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: Mon Jul 04, 2005 1:25 pm    Post subject: Reply with quote

oh I'm sorry, but the question is if it's possible to draw the trails drawn by the mouse every time that the script is eanble?


Thanks for our previous answer... I'm hoping yo uave now understand my question... if not, let's see the pictures on the website

http://optimoz.mozdev.org/gestures/

Basile
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Mon Jul 04, 2005 2:10 pm    Post subject: Reply with quote

So, you wantto draw the trace of the mouse (the gesture) on the screen.

I don'tt think, that this is easily done with AHK.

The gesture would be a line (straight, arc, circles, bends, etc. ) with a certain width. I haven't heard of any AHK feature that does this. Maybe with DllCall this is possible.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
BoBo
Guest





PostPosted: Mon Jul 04, 2005 3:04 pm    Post subject: Reply with quote

Quote:
I'm sorry, but I'm french
What should the belgium ones think about that ?! Wink First, their famous fries are named after the French, then not renamed correctly to Belgium-Fries, but Freedom Fries Rolling Eyes

Vive la (tour de) France! Very Happy
Back to top
Basile



Joined: 28 Jun 2005
Posts: 8
Location: FRANCE

PostPosted: Tue Jul 05, 2005 6:58 am    Post subject: Reply with quote

Hi Bobo, what's the most insulting for the Belgiums: "French Fries" or "Freedom Fries"??!!??!!?? No comment, it's not the aim of this topic!!! But vive le tour de France that's for sure!

Well, for toralf, I found the idea in the topic "mouse gestures script"

http://www.autohotkey.com/forum/viewtopic.php?t=534

As Chris, a site administrator, said:
Quote:

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?


Maybe it's a good start but I'm not enough experienced in programming in AHK script to achieve in creating the functions and GUI. By the way, i'll be very thankfull if someone can explained me the useful functions, dll, etc... that i will need!

Thankx!!

Basile
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3841
Location: Bremen, Germany

PostPosted: Tue Jul 05, 2005 7:30 am    Post subject: Reply with quote

Basile wrote:
As Chris, a site administrator, said:
Quote:

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?



That's what I menat when I wrote: I don't think, that this is easily done with AHK.

I assume that AHK will not be fast enough to draw these traces smooth when bitmaps are drawn. I once did a window with internal controls that was draged and resized due to mouse movement. It was slow. But it was only half transparent which caused a lot of redraw operations. The transparent window and the tracers wouldn't need that, so it might be better.

If you need help, I could do, but I will not program for you. Start to post some code in a new thread. I have only modified my existing script. It nearly does what you want. Just create a gray bmp file with the size of 4 by 4 pixel and name it 4x4_gray.bmp. Place that image and the script in the same folder.
Code:
;#   OS: Windows XP
;#   AHK version: 1.0.36.02   (http://www.autohotkey.com/download/)
;#   Date: 2005-07-05

#SingleInstance force
SetBatchLines, -1
SetWinDelay, -1

Gui, Color, Red
Gui, +LastFound
Gui, -Caption
Gui, Show, x0 y0 w600 h600

Status := True
SetTimer, GetTrace, 10
return
;#############   End of AutoExecution-Section   ###############################

GetTrace:
  CoordMode, Mouse, Relative
  MouseGetPos, MouseX, MouseY
  GetKeyState, LButtonState, LButton, P
  If LButtonState = D
    {
      Gui, Add, Picture, x%MouseX% y%MouseY%, 4x4_gray.bmp
    }
return


Esc::
  If Status
    {
      Status := False
      SetTimer, GetTrace, OFF
    }
  Else
    {
      Status := True
      SetTimer, GetTrace, ON
    }
return

^q::
  ExitApp
return

_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
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