ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

close folders

(1/1)

ajlewis:
I'm new here so excuse this if it has appeared already.
When I open a folder and execute a file the containing folder remains open. Is there a simple script to close the folder when I launch a file?
Thanks!  :)

skrommel:
:) Try RunToClose!

RunToClose - DoubleClicking a file in Explorer closes Explorer afterwards.

You'll find the downloads and more info at 1 Hour Software by Skrommel.

Skrommel

mouser:
Skrommel's on fire again  :huh: :huh: :huh:  :Thmbsup: :Thmbsup: :Thmbsup:

AndyM:
Is there a simple script to close the folder when I launch a file?
-ajlewis (January 07, 2009, 10:21 AM)
--- End quote ---
This is simple.  Hold down the Left Control key and Right Click on an object.  The object opens and the parent window closes.  The folder always closes but sometimes the file doesn't open (it's a timing thing), which can be irritating.  But it is simple  ;D

--- ---;CloseParent.ahk
;
;In an Explorer Window, hold down Left-Control and RightClick on a
;folder,shortcut,or file.  The folder/shortcut/file will open/run
;and the Explorer Window will close.
;
;If you LeftControl-RightClick anyplace other than an object,
;eg a window background, the window will close, very handy
;
;sometimes the timing doesn't work, hence the sleeps

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

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

Navigation

[0] Message Index

Go to full version