Restore window when opening multiple folders in single mode
Moderators: fgagnon, nikos, Site Mods
Restore window when opening multiple folders in single mode
Hi!
I've been searching everywhere for this, is there a way to restore xplorer when opening new folders after it has been minimized? I am using single mode and right now instead of restoring the window when I open a new folder (from a quicklaunch shortcut), xplorer blinks a few times in my taskbar but stays minimized.
Thanks a lot,
Laurence
I've been searching everywhere for this, is there a way to restore xplorer when opening new folders after it has been minimized? I am using single mode and right now instead of restoring the window when I open a new folder (from a quicklaunch shortcut), xplorer blinks a few times in my taskbar but stays minimized.
Thanks a lot,
Laurence
Hi fgagnon,
Thanks for the quick reply
I am using xplorer as my default shell so I tried replacing the registry entries to use the /M command switch. I'm not sure if I did it right but it doesn't work. Here's my registry file (modified from this thread):
Thanks for the quick reply
I am using xplorer as my default shell so I tried replacing the registry entries to use the /M command switch. I'm not sure if I did it right but it doesn't work. Here's my registry file (modified from this thread):
Code: Select all
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell]
@="open"
[HKEY_CLASSES_ROOT\Directory\shell\open]
[HKEY_CLASSES_ROOT\Directory\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"%1\""
[HKEY_CLASSES_ROOT\Drive\shell]
@="open"
[HKEY_CLASSES_ROOT\Drive\shell\open]
[HKEY_CLASSES_ROOT\Drive\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"%1\""
[HKEY_CLASSES_ROOT\Drives]
[HKEY_CLASSES_ROOT\Drives\shell]
[HKEY_CLASSES_ROOT\Drives\shell\open]
[HKEY_CLASSES_ROOT\Drives\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"%1\""
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell]
@="open"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\open]
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\""
[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell]
@="open"
[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\open]
[HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"%1\""
[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell]
@="open"
[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\open]
[HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"::{208D2C60-3AEA-1069-A2D7-08002B30309D}\""
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell]
@="open"
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open]
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"::{645FF040-5081-101B-9F08-00AA002F954E}\""
[HKEY_CLASSES_ROOT\CLSID\{21EC2020-3AEA-1069-A2DD-08002B30309D}\shell]
@="open"
[HKEY_CLASSES_ROOT\CLSID\{21EC2020-3AEA-1069-A2DD-08002B30309D}\shell\open]
[HKEY_CLASSES_ROOT\CLSID\{21EC2020-3AEA-1069-A2DD-08002B30309D}\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\""
[HKEY_CLASSES_ROOT\CLSID\{2227A280-3AEA-1069-A2DE-08002B30309D}\shell]
@="open"
[HKEY_CLASSES_ROOT\CLSID\{2227A280-3AEA-1069-A2DE-08002B30309D}\shell\open]
[HKEY_CLASSES_ROOT\CLSID\{2227A280-3AEA-1069-A2DE-08002B30309D}\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\xplorer2_UC.exe\" \"/M\" \"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{2227A280-3AEA-1069-A2DE-08002B30309D}\""
What you are looking for can be achieved using following AutoIt3 script
Compile this script as an exe say x2launch.exe and update your registery like
This trick was discussed in the following thread
http://forum.zabkat.com/viewtopic.php?t=25 ... c&start=30
Code: Select all
; Restore xplorer2 if running; else run.
#NoTrayIcon
$xplorerLocation = "C:\Program Files\zabkat\xplorer2\xplorer2_UC.exe"
If $CmdLine[0]="0" then
$xplorerArguments = ""
Else
$xplorerArguments = $CmdLine[1]
EndIf
$splitLocation = StringSplit($xplorerLocation, "\")
$procName = $splitLocation[UBound($splitLocation)-1]
If ProcessExists($procName) Then
Opt("WinTitleMatchMode", 4)
WinActivate("classname=ATL:ExplorerFrame", "")
;If parameter is passed, then open it in a new tab
If $xplorerArguments <> "" Then
sleep(100)
Send("^{INSERT}")
sleep(100)
ControlClick("classname=ATL:ExplorerFrame", "", "Edit1")
ControlSetText("classname=ATL:ExplorerFrame", "", "Edit1", $xplorerArguments )
Send("{ENTER}")
EndIf
Else
Run ($xplorerLocation & ' "' & $xplorerArguments & '"')
EndIf
Exit
Code: Select all
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Directory\shell\open\command]
@="\"C:\\Program Files\\zabkat\\xplorer2\\x2launch.exe\" \"%1\""
http://forum.zabkat.com/viewtopic.php?t=25 ... c&start=30
Help! I'm an AI running around in someone's universe simulator.
I have updated the script posted above to open passed parameter in a new tab.
You can download the compiled version of above script from here
http://hacks.anunay.com/xplorer2/downlo ... Launch.exe
To launch Xplorer2, create a shortcut of xplorer2Launch.exe on your desktop. If xplorer2 is not running it will create a new instance of x2 otherwise it will activate and bring X2 to the front.
When X2 is already running and a path parameter is passed to this exe, it will open the passed path in a new tab.
For shell integration, call xplorer2Launch.exe instead of xplorer2 exe from the registry
You can download the compiled version of above script from here
http://hacks.anunay.com/xplorer2/downlo ... Launch.exe
To launch Xplorer2, create a shortcut of xplorer2Launch.exe on your desktop. If xplorer2 is not running it will create a new instance of x2 otherwise it will activate and bring X2 to the front.
When X2 is already running and a path parameter is passed to this exe, it will open the passed path in a new tab.
For shell integration, call xplorer2Launch.exe instead of xplorer2 exe from the registry
Last edited by snakebyte on 2008 Jan 09, 00:27, edited 1 time in total.
Help! I'm an AI running around in someone's universe simulator.
You guys are SO awesome thanks for all the help, I will definately try this as soon as I get home.
BTW I love AutoHotkey. I've been using it for a while and I made a script that will help xplorer act more like firefox. It now opens tabs on middle click, closes tabs on middle click and some other stuff, but it's not quite ready to be released yet--I'm having some troubles when middle clicking the tree.
But since you guys use AHK already, am I wasting my time? Is there already a script like this?
BTW I love AutoHotkey. I've been using it for a while and I made a script that will help xplorer act more like firefox. It now opens tabs on middle click, closes tabs on middle click and some other stuff, but it's not quite ready to be released yet--I'm having some troubles when middle clicking the tree.
But since you guys use AHK already, am I wasting my time? Is there already a script like this?
Works for folders and drives. A couple of points...
1. Is code snippet above the updated version? I have a different location so had to update+recompile. If not, could you please post the updated code?
2. The code I compiled does open folders in new tabs (the way I've set x2 to open them) so if the code snipped pasted here isn't the latest version could you explain what the new version does?
3. I also modified
[HKEY_CLASSES_ROOT\Drive\shell\Open_X2\command]
to point to the loader, since it wouldn't open root drives
4. I have set up a few quicklaunch shortcuts (.lnk) to open two folders side by side, this doesn't seem to work - any suggestions?
If the folders could be forced to open in opposite panes that would be even better.
Thanks for your help.
1. Is code snippet above the updated version? I have a different location so had to update+recompile. If not, could you please post the updated code?
2. The code I compiled does open folders in new tabs (the way I've set x2 to open them) so if the code snipped pasted here isn't the latest version could you explain what the new version does?
3. I also modified
[HKEY_CLASSES_ROOT\Drive\shell\Open_X2\command]
to point to the loader, since it wouldn't open root drives
4. I have set up a few quicklaunch shortcuts (.lnk) to open two folders side by side, this doesn't seem to work - any suggestions?
If the folders could be forced to open in opposite panes that would be even better.
Thanks for your help.