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 

Up in folders with middle click...

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
albundo



Joined: 26 Jun 2006
Posts: 3

PostPosted: Thu Jun 29, 2006 5:29 am    Post subject: Up in folders with middle click... Reply with quote

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! Very Happy

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
Back to top
View user's profile Send private message
Szara



Joined: 24 Jun 2006
Posts: 8
Location: The left side of Canada

PostPosted: Thu Jun 29, 2006 7:35 am    Post subject: Reply with quote

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?
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4511
Location: Belgrade

PostPosted: Thu Jun 29, 2006 9:59 pm    Post subject: Reply with quote

Explorer ?
_________________
Back to top
View user's profile Send private message
albundo



Joined: 26 Jun 2006
Posts: 3

PostPosted: Fri Jun 30, 2006 1:29 am    Post subject: Reply with quote

majkinetor wrote:
Explorer ?
...as in explorer.exe (Windows Explorer).
Back to top
View user's profile Send private message
rghammo
Guest





PostPosted: Sun Jul 09, 2006 4:28 pm    Post subject: Left Click Reply with quote

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.
Back to top
Ian
Guest





PostPosted: Fri Jul 14, 2006 8:17 pm    Post subject: Reply with quote

Change:
Code:
~MButton::

to
Code:
~LButton::
Back to top
albundo



Joined: 26 Jun 2006
Posts: 3

PostPosted: Mon Jul 17, 2006 8:06 pm    Post subject: Reply with quote

Ian wrote:
Change:
Code:
~MButton::
to
Code:
~LButton::
Well, that would make it pretty tough to actually select anything. Wink

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. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions 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