Welcome Guest.   Make a donation to an author on the site April 20, 2014, 06:37:45 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: IDEA: Triple-Click Mouse Utility  (Read 6159 times)
Ralf Maximus
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« on: May 05, 2007, 01:46:39 PM »

Hiya,

I've looked high and low for something like this, but to no avail.

I need a wee little thing that sits in the task bar and detects mouse triple-clicks.  Upon triple-click, it converts the action into a predefined hotkey / keystroke.  For instance, convert triple-click into SHIFT-F2.

Make sense?  Whattaya think?

Thanks,
Ralf
Logged
mouser
First Author
Administrator
*****
Posts: 32,674



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: May 05, 2007, 06:51:55 PM »

Seems like it could be useful to me, at least for some apps.  i wonder if any of the mouse gesture utilities (stroke it) have anything like this already?
Logged
Nod5
Supporting Member
**
Posts: 716



View Profile Give some DonationCredits to this forum member
« Reply #2 on: May 06, 2007, 11:43:38 AM »

Hi Ralf,
there are various mouse gesture programs that I think could do that. In addition to StrokeIt that Mouse mentioned Autohotkey (http://www.autohotkey.com ) is capable of mouse gesture scripts ( http://www.autohotkey.com...scripts/MouseGestures.htm ).

Triple left clicks might be complicated to implement since I suppose you would still want to use single and double clicks in many contexts. So the script must often let those through but not in those cases where you want the triple click functionality.

One alternative would be to instead make a mouse middle button gesture. For example, when you hold the mouse middle button and at the same time drag the mouse up, window sends SHIFT-F2. There are two advantages here: Middle mouse clicks are seldom used in window applications so there are fewer possible conflicts. Also, holding middle mouse button and moving the mouse might be less tiring than triple clicking (I at least get tired in my right arm quickly when I do a lot of double clicking so triple would be even worse).

I made such a script for Autohotkey that sends SHIFT-F2 on middle mouse press + mouse move up. You could try it and see if it fits your needs:
[copy or print]
~MButton::
MouseGetPos, OutputVarX, OutputVarY
sleep, 100
MouseGetPos, OutputVarXB, OutputVarYB
GetKeyState, state, MButton
if state = D
{
ydiff := OutputVarY - OutputVarYB
if ydiff > 50
Send +{F2}
}
« Last Edit: May 06, 2007, 11:46:31 AM by Nod5 » Logged
Ralf Maximus
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: May 06, 2007, 07:30:41 PM »

I installed StrokeIt and configured it the way I want.  No triple-click (obviously) but now I've got a gesture that does what I need.  Thanks!

Programmy my middle button to do something would be great, but this particular mouse (el cheapo Dell) has a hard time discerning between middle-click and a scroll.  Sometimes I get both, sometimes neither.  So alas, I must stay away from my middle button.  Which kind of sounds naughty but rest assured, it's not.

I'd still like a triple-click thingie, but I can live without it.  I recognize it's a hard thing to detect and also many applications (MS Word) use triple-click to mean "select a whole phrase" so it'd be fun fighting that.  In my case, I only need it available in one app, and it ain't Word.  :-)

Thanks again for the awesome lead -- I wouldn't have found StrokeIt on my own.  Which, again, sounds naughty but it's not...

Regards,
Ralf

Logged
Nod5
Supporting Member
**
Posts: 716



View Profile Give some DonationCredits to this forum member
« Reply #4 on: May 07, 2007, 02:55:39 AM »

Ralf,
glad to hear StrokeIt is working for you... Here's a triple click script for Autohotkey. It lets all clicks through to windows so watch out for accidental single/double click commands when trying to triple click. Also, it only sends the command tied to triple click if a certain process has focus (notepad.exe below, change that to whatever process name you want to send SHIFT + F2 to)

[copy or print]
~LButton::
WinGet, xproc, ProcessName, A
if xproc != notepad.exe
 return

if t1 =
 {
 t1 = %A_Now%
 return
 }

if t2 =
 {
 if (A_Now - t1) < 1
   t2 = %A_Now%
 else
   t1 =
 return
 }

if (A_Now - t1) < 1
 {
 Send +{F2}
 t1 =
 t2 =
 return
 }

t1 = %A_Now%
t2 =
« Last Edit: May 07, 2007, 02:58:52 AM by Nod5 » Logged
Ralf Maximus
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: May 07, 2007, 07:58:30 AM »

W00t!  Thanks!  I'm off to compile me some AutoHotKey macro!

Ralf
Logged
Ralf Maximus
Supporting Member
**
Posts: 927



View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: May 08, 2007, 08:13:07 AM »

Worked like a champ.  And doesn't interfere with single or double clicks.  Thanks!

Ralf
Logged
Nod5
Supporting Member
**
Posts: 716



View Profile Give some DonationCredits to this forum member
« Reply #7 on: May 09, 2007, 12:33:12 PM »

Great that it works for you!  smiley You can also easily modify the script to send other commands when other applications have focus.
Logged
aidan_cage
Supporting Member
**
Posts: 27


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #8 on: October 20, 2009, 04:06:41 PM »

is there a way to make this script global so that when I triple click I send a window key signal (bringing up my taskbar)? would I just make the process explorer.exe?
Logged
skwire
Moderator
*****
Posts: 3,905



Another Coding Snack request? Om nom nom...

see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #9 on: October 20, 2009, 04:27:57 PM »

is there a way to make this script global so that when I triple click I send a window key signal (bringing up my taskbar)? would I just make the process explorer.exe?

Try this:

Formatted for AutoIt with the GeSHI Syntax Highlighter [copy or print]
  1. Timeout = 400 ; In milliseconds.  Adjust as necessary.
  2.  
  3. ~LButton::
  4. {
  5.    If ( A_ThisHotkey = A_PriorHotkey AND A_TimeSincePriorHotkey < Timeout )
  6.    {
  7.        ClickCount++
  8.    }
  9.    Else
  10.    {
  11.        ClickCount = 1
  12.    }
  13.    SetTimer, ClickHandler, % Timeout
  14. }
  15.  
  16. ClickHandler:
  17. {
  18.    SetTimer, ClickHandler, Off
  19.    If ( ClickCount = 3 )
  20.    {
  21.        Send, {LWin}
  22.    }
  23. }
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.101s | Server load: 0.13 ]