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 

Multiclick-Functionality?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
hoppfrosch



Joined: 25 Jan 2006
Posts: 16
Location: Somewhere in Germany

PostPosted: Thu Feb 02, 2006 8:52 am    Post subject: Multiclick-Functionality? Reply with quote

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 Smile )?

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
View user's profile Send private message
BoBo
Guest





PostPosted: Thu Feb 02, 2006 9:13 am    Post subject: Reply with quote

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

PostPosted: Thu Feb 02, 2006 3:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Serenity



Joined: 08 Nov 2004
Posts: 996

PostPosted: Thu Feb 02, 2006 4:37 pm    Post subject: Reply with quote

Laszlo wrote a solution for multiple keypresses here. :)
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
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