![]() ![]() As such, simulating the z keypress scrolls the list right to the item. Note that this is the only menu item I have that starts with a "z". I named my text separator "z-bottom-of-folders". The code below is kludgy because it uses simulated key presses to navigate to the droplist where the hidden text separator is chosen. Even though the text separator is hidden, you can still use it as a marker for placing new favoriates before. Now notice that Jean has an option to insert a new Fave Folder before a particular item (Edit Favorite: Folder > Menu Options tab > Insert the favorite before this item). After adding the separator, Edit it, and hide it. So right before that separator, I put a uniquely-named Text Separator (see screenshot at bottom). At the bottom of the folders, I have a separator (-). When I add a new folder, I want it to get inserted at the end of this group. Scenario: In my main QAP menu, I mostly like to group my folders. This one has a cool improvement, but the improvement also makes it somewhat kludgy. In case there are any XYplorer users here: Here is a newer version of this AHK script for adding Favorite Folders. Run, "%QAPpath%\QAPmessenger.exe" %Switch% "%selected%" QAPpath := "C:\Program Files\Quick Access Popup" If (!QAPpath) If no path is entered, use this default. Switch := "AddFileXpress" Skips dialogs and works tranparently. Switch := "AddFile" If it's a folder, QAP will use Folder settings. Selected := getSelected() calls function that is at the bottom ShowDialogs := 1 1 shows QAP dialogs, 0 skips them. QAPpath := "C:\PortableApps\quickaccesspopup" no slash at end of path # Next two lines are options for script # SetTitleMatchMode, 2 This line goes in the autoexecute header of the script. Other users should have the "Run, "C:\." part pointing to the correct location for their installation. Also, note that I have a portable version of Quick Access Popup in a custom location. They are only used by the Autohotkey script to "direct traffic" in the script. I also want to point out that the regexes in the above script aren't used by QAPmessenger. Run, "C:\PortableApps\quickaccesspopup\QAPmessenger.exe" %vAdd% "%Clipboard%"ĮDIT: Just now added quotes around %clipboard%. Run, "C:\PortableApps\quickaccesspopup\QAPmessenger.exe" %vAdd%Xpress "%Clipboard%" Xpress skips all dialogs. MsgBox % "vPath is:`t`t" vPath "`nvExt is:`t`t" vExt "`nvAdd is:`t`t" vAdd "`n`nClipboard is:`t" clipboard If (!vExt) This means that the above check passed, but there is not file at end of path. If (!vPath) This means the regex didn't find the pattern. ![]() ![]() Send, ^c ctrl+c (copy selected to clipboard) #SingleInstance force It it gets restarted, kill and usurp the old process in RAM. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |