| View previous topic :: View next topic |
| Author |
Message |
hoppfrosch
Joined: 25 Jan 2006 Posts: 16 Location: Somewhere in Germany
|
Posted: Thu Feb 02, 2006 8:52 am Post subject: Multiclick-Functionality? |
|
|
Hi there,
I'm looking for something like this:
Detection of doubleclicking on a key seems to be easy corresponding to "A double-click can be detected by checking whether A_GuiControlEvent contains the word DoubleClick."
What about detecting TripleClicks (or even OctupleClicks )?
Can't figure out, how to do this?
I want this to trigger the PrintScr-Key taking different types of screenshots (whole screen, client area, region .... - using WinSnap and Snippy ...)
Any help welcome
Hoppfrosch |
|
| Back to top |
|
 |
BoBo Guest
|
Posted: Thu Feb 02, 2006 9:13 am Post subject: |
|
|
| Quote: | KeyWait
--------------------------------------------------------------------------------
Waits for a key or mouse/joystick button to be released or pressed down.
KeyWait, KeyName [, Options] | Example 4 might be close to what you've requested ... |
|
| Back to top |
|
 |
hoppfrosch
Joined: 25 Jan 2006 Posts: 16 Location: Somewhere in Germany
|
Posted: Thu Feb 02, 2006 3:33 pm Post subject: |
|
|
The KeyWait-Example 4 comes close to what I mean, but does not hit my question perfectly.
Using the KeyWaitExample, I can distinguish between a single and a double click of a key.
But this doesn't meet my problem exactly:
The user hits the key n-times within a certain TIMEOUT-interval between single keypresses. If there is no further keypress within the TIMEOUT interval , a certain action should be triggered. The triggered action depends on the count n (how often was the key pressed not violating the TIMEOUT limit ...).
The questions still unanswered are:
* How to count the number of keypresses not violating the TIMEOUT limit?
* How to make Autohotkey trigger an action after the n - keypresses (and not after the first keypress)? The triggered action should depend on n. |
|
| Back to top |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 996
|
Posted: Thu Feb 02, 2006 4:37 pm Post subject: |
|
|
Laszlo wrote a solution for multiple keypresses here. :) _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
|