AutoHotkey Community

It is currently May 27th, 2012, 8:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: June 29th, 2006, 6:29 am 
Offline

Joined: June 26th, 2006, 3:22 pm
Posts: 3
I liked that in some file managers you can double click on the background to go up a level, so I made a simple script that allows this in both Explorer folders and open/save dialogs with the middle mouse button (doesn't have to be over the background, and MMB isn't normally used for anything). It just sends backspace when you middle click in a folder view.

Enjoy! :D

Code:
~MButton::
MouseGetPos,,,,hovercontrol
if hovercontrol = SysListView321 ; folder windows and background in open and save dialogs
Send {Backspace}
else if hovercontrol = #327701 ; items in open and save dialogs
Send {Backspace}
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2006, 8:35 am 
Offline

Joined: June 24th, 2006, 11:49 pm
Posts: 8
Location: The left side of Canada
Thank you so much for this. I get myself in trouble by double-clicking in those windows and having them not respond...this will help a great deal!

_________________
If I'm asking a question about AHK, it's only because I can't find the answer anywhere else. I swear, I looked!

AutoHotKey has saved me at least 8 hours a month of data entry. What has it done for you?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 29th, 2006, 10:59 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Explorer ?

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 30th, 2006, 2:29 am 
Offline

Joined: June 26th, 2006, 3:22 pm
Posts: 3
majkinetor wrote:
Explorer ?
...as in explorer.exe (Windows Explorer).


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Left Click
PostPosted: July 9th, 2006, 5:28 pm 
This sounds really cool but I have the middle click assigned elsewhere. How can I do this with the left click instead? This may be obvious but I'm just learning how to do this type of thing. Thanks.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 14th, 2006, 9:17 pm 
Change:
Code:
~MButton::

to
Code:
~LButton::


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: July 17th, 2006, 9:06 pm 
Offline

Joined: June 26th, 2006, 3:22 pm
Posts: 3
Ian wrote:
Change:
Code:
~MButton::
to
Code:
~LButton::
Well, that would make it pretty tough to actually select anything. ;)

I assume he means to get the left double click working.

The problem is then distinguishing between items in the list and the background. That could technically be done by comparing the color under the cursor with the background during both clicks (doing it both times is to keep it from working when you click between characters in the name for example). It would also have to take into account the active column highlight color that XP uses.

Of course, you'd also have to add some code to determine double clicks.

I thought I'd just keep it simple with the single middle click, but if anyone wants to tackle these issues, feel free to do so. :)


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google Feedfetcher, tomoe_uehara, Xx7 and 7 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