 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
deguix
Joined: 26 Aug 2004 Posts: 72 Location: Everett - MA, USA
|
Posted: Sat Dec 25, 2004 4:31 am Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10474
|
Posted: Sat Dec 25, 2004 12:02 pm Post subject: |
|
|
| 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 |
|
 |
deguix
Joined: 26 Aug 2004 Posts: 72 Location: Everett - MA, USA
|
Posted: Sat Dec 25, 2004 12:52 pm Post subject: |
|
|
Thanks!  _________________ Working now on:
NSIS Wiki (NSIS) |
|
| Back to top |
|
 |
Vorchatwo Guest
|
Posted: Wed Dec 29, 2004 7:01 am Post subject: mouse gestures |
|
|
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
|
Posted: Wed Dec 29, 2004 10:50 pm Post subject: |
|
|
| 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 |
|
 |
Guest
|
Posted: Tue Feb 22, 2005 3:00 pm Post subject: |
|
|
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!!
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
|
Posted: Tue Mar 15, 2005 4:47 pm Post subject: |
|
|
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 |
|
 |
deguix
Joined: 26 Aug 2004 Posts: 72 Location: Everett - MA, USA
|
Posted: Wed Mar 16, 2005 12:24 am Post subject: |
|
|
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 |
|
 |
Basile
Joined: 28 Jun 2005 Posts: 8 Location: FRANCE
|
Posted: Tue Jun 28, 2005 1:42 pm Post subject: |
|
|
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 ( ) 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 |
|
 |
deguix
Joined: 26 Aug 2004 Posts: 72 Location: Everett - MA, USA
|
Posted: Sat Jul 02, 2005 4:22 am Post subject: |
|
|
| 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 |
|
 |
Basile
Joined: 28 Jun 2005 Posts: 8 Location: FRANCE
|
Posted: Mon Jul 04, 2005 1:25 pm Post subject: |
|
|
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 |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Mon Jul 04, 2005 2:10 pm Post subject: |
|
|
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 |
|
 |
BoBo Guest
|
Posted: Mon Jul 04, 2005 3:04 pm Post subject: |
|
|
| Quote: | | I'm sorry, but I'm french | What should the belgium ones think about that ?! First, their famous fries are named after the French, then not renamed correctly to Belgium-Fries, but Freedom Fries
Vive la (tour de) France!  |
|
| Back to top |
|
 |
Basile
Joined: 28 Jun 2005 Posts: 8 Location: FRANCE
|
Posted: Tue Jul 05, 2005 6:58 am Post subject: |
|
|
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 |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3841 Location: Bremen, Germany
|
Posted: Tue Jul 05, 2005 7:30 am Post subject: |
|
|
| 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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|