Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • September 26, 2016, 08:54:26 AM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: IDEA: Triple-Click Mouse Utility  (Read 8057 times)

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
IDEA: Triple-Click Mouse Utility
« 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

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,251
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« 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?

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 855
    • View Profile
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« 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.autohotke...ts/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:
~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 »

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« 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


Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 855
    • View Profile
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« 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)

~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 »

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« Reply #5 on: May 07, 2007, 07:58:30 AM »
W00t!  Thanks!  I'm off to compile me some AutoHotKey macro!

Ralf

Ralf Maximus

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 927
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« 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

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 855
    • View Profile
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« Reply #7 on: May 09, 2007, 12:33:12 PM »
Great that it works for you!  :) You can also easily modify the script to send other commands when other applications have focus.

aidan_cage

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 27
    • View Profile
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« 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?

skwire

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 4,629
    • View Profile
    • Donate to Member
Re: IDEA: Triple-Click Mouse Utility
« 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:

Code: AutoIt [Select]
  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. }