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
  • December 08, 2016, 10:06:13 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: Alt-DoubleClick folder icon also closes original folder (a la OS/2)  (Read 3286 times)

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Umm, I guess the subject line tells it all, but here's what I intended to paste here:

Right after I stumbled across DonationCoder some time ago, I asked
about a utility to duplicate a feature I had liked in OS/2 (Alt-drag
any part of a window and move it without taking focus so you can move
one window underneath another).  I didn't really think anything would
come of it, but sure enough Skrommel came right back with a perfect
autohotkey script (if it wasn't in less than an hour, and I think it
might have been, it sure seemed pretty instant). I was hooked.

So... another feature I liked from OS/2 was Alt-DoubleLeftClick on a
folder in an explorer main window, and not only did you open your
folder (I have my system set to open folders in a new window), but the
original folder was automatically closed.

Anybody interested?  I have DonationCredits lonely for a new home...

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Alt-DoubleClick folder icon also closes original folder (a la OS/2)
« Reply #1 on: February 11, 2008, 11:18:31 AM »
Well I guess I'm the only one who would find this handy, but I really do think it would be nice to be able to Alt-doubleclick a folder icon and not only have the folder open but also automagically close the parent folder.

I can do simple stuff with Autohotkey, but this is way beyond me.

Anyone? Anyone?  Bueller?  (Skrommel?)

Ampa

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 592
  • I am cute ;)
    • View Profile
    • MonkeyDash - 2 Player strategy boardgame
    • Donate to Member
Re: IDEA: Alt-DoubleClick folder icon also closes original folder (a la OS/2)
« Reply #2 on: February 11, 2008, 11:29:39 AM »
I believe this feature is already a part of WinXP?!?

Disclaimer: I don't often use Explorer (preferring Xplorer²) and when I do, it isn't set up the same way as you describe but...

If you hold CONTROL when you double click a folder, the new folder is opened in the current window (akin to opening a new window and closing the parent).

That is what you wanted isn't it?

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Alt-DoubleClick folder icon also closes original folder (a la OS/2)
« Reply #3 on: February 11, 2008, 02:59:08 PM »
That is what you wanted isn't it?

Not exactly.  I could also just click on a subfolder in the left pane to open a new folder in the same window and therefore vanish the old one.  But the reason I generally don't do that is that I usually want the new folder to open with the same size and placement as the last time I opened it.

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Alt-DoubleClick folder icon also closes original folder (a la OS/2)
« Reply #4 on: February 14, 2008, 11:50:42 AM »
I've posted this question on the AutoHotkey forum, but in case anyone here knows the answer....

#SingleInstance,Force
#Persistent

RButton::
MouseGetPos,xpos,ypos,ParentWin
MouseClick,Left,%xpos%,%ypos%,2
Winclose,ahk_id %ParentWin%
return

This works, but only when assigned to a Right Button single click.

I have no idea how to assign it to an Alt-LeftButtonDoubleClick.

I could live with an Alt-Rightclick, Ctrl-Rightclick, or any combination of Alt/Ctrl/Shift-Rightclick/Middleclick. but when I try any of these:

^RButton,#RButton,!RButton, ^!RButton,#^RButton,!#RButton

either the new window doesn't open, or nothing works.

Any ideas?

Thanks,

Andy

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Alt-DoubleClick folder icon also closes original folder (a la OS/2)
« Reply #5 on: February 14, 2008, 12:27:39 PM »
Ok, I plead slowbrain

This works, assigned to LeftControl/RightClick,
good enough for me:

#SingleInstance,Force
#Persistent
Menu,Tray,Tip,CloseParent

LControl & RButton::
MouseGetPos,xpos,ypos,ParentWin
MouseClick,Left,%xpos%,%ypos%,2
Sleep, 200
Winclose,ahk_id %ParentWin%
return

It opens any folder, shortcut, file, etc. and closes the parent explorer window.  Don't know yet about any "gotcha's.....
« Last Edit: February 14, 2008, 12:45:55 PM by AndyM »

AndyM

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 616
    • View Profile
    • Donate to Member
Re: IDEA: Alt-DoubleClick folder icon also closes original folder (a la OS/2)
« Reply #6 on: February 14, 2008, 12:55:53 PM »
feature (or bug?):  LeftControl/RightClick anyplace in any window will close the window (but will also trigger any confirmation dialog, as in "are you sure you want to close...").  I kinda like it.