[Wishlist] Support hotkeys for various favorites with the same location but different parameters

Request from Michael.

Michael:

An obscure one I guess... when you define a hotkey (say Ctrl+F9) for an application Favorite it gets saved in the settings file against the application's EXE path. This makes sense, however if you have several favorites defined using the same EXE path - except that each have different command-line params - they automatically all get associated with the same hotkey.

For example I have defined several scheduled tasks in Windows, each with different command line params, e.g.:
C:\Windows\system32\schtasks.exe /run /TN "NoUAC\UAC Revo Uninstaller Pro"

As it stands I don't think QAP supports this approach (hotkeys against an EXE that has multiple matches but different params).

Granted, this one's a bit out of the ordinary, and QAP does work fine if you define these as menu popups alone (no shortkey).

Jean:

Obscure but interesting one... Actually, favorite hotkeys are associated to "location", regardless of other settings (Advanced setting, Live Folder settings, etc.). This is a limitation of the current design.

The solution would be to associate hotkeys to a combination (concatenation) of the location and parameters (and maybe of other settings like "Start In" or "Live Folder" settings), for example:

Hotkey1=C:\Windows\system32\schtasks.exe /run /TN "NoUAC\UAC Revo Uninstaller Pro"|+^x
Hotkey2=C:\Windows\system32\schtasks.exe /run /TN "SomethingElse"|+^y

This may not be so hard. But backward compatibility may be an issue...

[Wishlist] Pass current folder as parameter to an application launched with QAP

From mGuest: Launch an application with the path opened or active in the file browser as command line parameter. This is useful when you browse files and want to pass the current path to another application.

JL:
1) I open the QAP menu in an Explorer window open in C:\MyFolder
2) I choose an application favorite in the QAP menu
3) QAP launch this app and pass the active folder as a command-line parameter

How can I enter multiple parameters for an application favorite?

In favorites advanced settings, you can enter command line parameters (also called arguments) that are added to the application path when the application is launched (more info on this). If you have only one parameter, simply type it in the last tab of the Add/Edit Favorite dialog box. Usually, you would not need to enclose the parameter between double-quotes but this is something you could try if this does not work as expected.

You need to know that not all applications parse command-line parameters the same way. This is why some trial-error may be required. This is especially true if you want to enter more than one parameter. These parameters need to be separated but putting a space between them. But this may not be sufficient because spaces could be part of the parameters. The solution I found (based on my personal experience with a limited number of applications) is to enclose each parameter between double-quotes.

For example, if you want to launch Outlook with two parameters:

  • in Location (first tab) of an Application favorite, enter Outlook.exe (you don't need to enter the full path if the application is properly registered in your Windows environment);
  • in the last tab Advanced Settings, in Parameters, enter "/a c:\filename.txt" "/nopollmail" (double quotes around each parameter, one space between the two parameters).

This will launch Outlook without checking mail at startup ("/nopollmail") and will create a new mail item with the specified file attached ("/a c:\filename.txt").

But remember that this technique is not universal and may require adjutments depending on the target application.