![]() (B) "0": The "identical" compare method is used. This compare method is recommended due to its ability to formulate general patterns. That means that RegEx patterns (PCRE flavor) can be used for keywords and paths. (A) "1": The "RegEx" (Regular Expressions) compare method is used. ![]() The setting can have one of the following two values: The method of how the keywords and paths are compared with the WE window's location can be specified in the setting vUseRegExForPathCompare. Based on the result of the comparision the script will either redirect the WE window to XY or not. "Computer", "Libraries", "Pictures", etc., and actual paths. That location typically amounts to the same as the content of the WE address bar, e.g. The script allows to specify keywords and paths that are then compared with the location being displayed in a new WE window. (II) Automatically escape redirection with keyword and path definitions: in the config file, but it is on the to-do list. ![]() Currently, there is no other way to deactivate it, e.g. The item also serves as a reminder that you can use the control key in such a way. This functionality of the control key can be activated or deactivated on the fly in the script's system tray context menu, by clicking on the applicable menu item. (Of course the control key escape option should work also if a WE window is opened by other means.) Pressing Control+Win+E, the new WE window would *not* get redirected to XY. With the script running, pressing Win+E would open a new WE window which normally would get redirected to XY. If released too early, it might not work. Typically, the control key must be held down until the WE window is actually visible. Hold the left or right control key pressed down while the WE window opens, which you want to keep. (I) Manually Escape Redirection With the Control Key Thus, if one wants any WE windows to be kept as WE windows and *not* be redirected to XY, then there are the following two options: any special folders, for what reason ever. Various users might also want to keep various other content inside WE, e.g. There are WE windows that should not be redirected, e.g. However, a script file's version number may be longer. Each config file is compatible to all scripts who's version number starts with those same digits. That config file is named "redirectWEwindowsToXY_v#.#.config.ahk", with "#.#" standing for the config file's version number, e.g. These settings are located in a separate config file. Some of the scripts settings can be customized by the user. The script will stay in the system tray until manually exited through the script's tray context menu. (2), of course, the XY setting to act as the system's default file manager must be turned *off*. when clicking in Firefox in the "downloads" window on the "open containing folder" button).įor such scenarios, this script, if running in the system tray, catches any newly opening WE window, reads the path and selected items shown in that WE window, closes that WE window, opens a new tab in XY with that path *and* selects any list items in XY that where selected in WE before (and scrolling them into view), thus "redirecting" the WE window to XY.įor the script to work also in cases of scenario No. (B) List items are not getting automatically selected in XYĪt other times XY *is* sucessfully used as the system's default file manager to open a folder (if that setting is on) but any list itmes which would normally be selected in WE do *not* get selected in XY (e.g. from within certain 3rd-party-software or for other reasons). (A) XY's setting "XY is default file manager" is not getting respected by some programsĭespite XY's build-in optional functionality to act as the system's default file manager (XY menu Tools/Configuration/Other/Shell Integration), sometimes there still are WE windows opening instead of XY (e.g. The script was written for the following scenarios: ![]() Here is a script written in AutoHotkey (AHK), which works in combination with the file explorer XYplorer (from now on called "XY") and Windows Explorer (from now on called "WE"). Regarding my code, I am just a hobby ahk programmer, so please don't be too critical with my coding style and mess, thank you. RedirectWEwindowsToDO_v4.2.1_210831.zip (1.2 MB) /*Ĝopyright: autocart (user name at the ahk and XYplorer forums) unless otherwise noted in the code ![]() You can use AutoHotkey script to automatically redirect. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |