AutoHotkey Community

It is currently May 26th, 2012, 4:59 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: February 10th, 2009, 8:05 pm 
Offline

Joined: February 7th, 2009, 11:28 pm
Posts: 384
Does AHK have a simple hotkey expressions for the double-clicks?

I'm trying to replace ClickZap with something like this:

Quote:

[RButton double-click]
::
Send, {ALTDOWN}{F4}{ALTUP}
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2009, 8:20 pm 
?
Code:
~Rbutton::
KeyWait, Rbutton
KeyWait, Rbutton, d T1
if Errorlevel != 1
msgbox, double click
return


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2009, 8:45 pm 
Offline

Joined: February 7th, 2009, 11:28 pm
Posts: 384
Thank you evan! (that was quick)

Here's the script for closing an active window (or to begin windows shutdown if no windows) with double-right clicks (for win xp/sp3 at least):

Code:
~Rbutton::
KeyWait, Rbutton
KeyWait, Rbutton, d T1
if Errorlevel != 1
Send, {ALTDOWN}{F4}{ALTUP}
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2009, 1:44 am 
Offline

Joined: February 7th, 2009, 11:28 pm
Posts: 384
I updated the code to close the child window/s first if one is present, and only then the parent, or everything at once if the mouse is over the main window's title bar area. For example, a double-right-click over a pdf document should now close the pdf instead of Adobe, Foxit, or whatever Reader is being used.

I find this more convenient than using menus, or clicking the little x at the upper-right corner to close xp windows and applications.

Code:
; close active window w/ dbl right-click
~Rbutton::
KeyWait, Rbutton
KeyWait, Rbutton, d T1
if Errorlevel != 1
  {  MouseGetPos,,,,control,1
      if control !=
      {  Send, {CTRLDOWN}{F4}{CTRLUP}
      }
      else
      {  Send, {ALTDOWN}{F4}{ALTUP}
      }
  }
return

_________________
Hardware: 1.8 GHz laptop with 4 GB ram, Windows XP/SP3
Software: Prevx, Privatefirewall, KeyScrambler.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 21st, 2009, 1:20 pm 
Offline

Joined: June 16th, 2008, 6:19 am
Posts: 66
Thanks for posting this, pajenn,
& thanks for your script, evan -

I like to know this double click method for your usage,
& maybe for others.

also agree ! --->
Quote:
I find this more convenient than using menus, or clicking the little x at the upper-right corner to close xp windows and applications.


Anybody hear of "Fitts' law" ? apparently not the folks at Adobe,
who make the Close button of Acrobat smaller & smaller w/ each version!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey, SifJar, SKAN and 41 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group