What is in the Clipboard menu?

The Clipboard menu in the My QAP Essentials menu reflects the content of you current Windows clipboard. If the clipboard contains documents, applications or folders file path, QAP shows this list in the menu, allowing you to open a document, launch an application or navigate to a folder found in the clipboard.

For example, if you select and copy a group of files in Windows Explorer, the list of file paths resides in the Windows clipboard. Quick Access Popup scans this content and adds the files that exists in your system to the Clipboard menu. You can also copy a list of files from a text editor (or any other source) and QAP will display these files in the menu (each line of text must contain a file name/path alone). Relative paths and environment variables are supported.

QAP also scans the Windows clipboard for URLs and displays them as Link entries in the Clipboard menu. In the case of URLs, an address can stands anywhere on a line of text copied to the Clipboard. However, if one line contains more than one URL, only the last one will included in the menu.

If you open the Clipboard menu when the Windows clipboard contains no file or URL, it keeps its previous content until you open the Clipboard menu again or exit QAP.

 

Can I insert values in favorites location, parameters or snippets using placeholders?

The features described in this page require Quick Access Popup v9.2 or more recent.

You can insert values from placeholders (like {Clipboard}) in Snippets content and in favorite's Location, Parameters and Start In fields (for all types of favorites supporting these options). Placeholders contents are  based on:

  • the current content of your Windows Clipboard;
  • the favorite's own location;
  • the current folder in Windows Explorer.
  • the selected item in Windows Explorer folders and files list.

Clipboard

You can use the Windows Clipboard to insert variable pieces of text in your snippets or in various paths in favorites dialog box. When you launch your favorite, QAP automatically replaces the placeholder "{Clipboard}" (without the quotes) with the current content of the Windows Clipboard.

For example, in the following Snippet example, the Clipboard's content will be inserted in the second line between the arrows. If the Clipboard contains an image or binary data, nothing is inserted.

In this second example, the content of the clipboard is sent as parameter. The content of the Parameters zone is expanded in the preview zone named Current parameters with expanded placeholders at the bottom of the dialog box. It shows what would be the parameter sent to the application with the current Clipboard's content.

The example above is a working example for browsers applications Chrome, Firefox and Internet Explorer. This parameter will automatically launch your browser to search for the text contained in your Windows Clipboard. Make sure you include the quotes correctly to include all word in the search. If you want to search for an exact expression, add surrounding quotes like this: "? \"{Clipboard}\"" (the backslash "\" acts as an escape character for quotes inside the parameter.

If you use the browser Microsoft Edge, simply enter in the Parameters zone {Clipboard} (no quotes) for a normal search or "{Clipboard}" (with quotes) to search for an expression.

Favorite's location

In an Application favorite, you can re-use the favorite's location (or part of it) in the Start In or the Parameters fields. For example "{DIR}" in the the Start In field will be replaced with the favorite's location folder. The following examples are based on the favorite's location "C:\MyFolder\MyFile.exe":

  • {LOC} for full location ("C:\MyFolder\MyFile.exe")
  • {NAME} for file name ("MyFile.exe")
  • {DIR} for directory ("C:\MyFolder")
  • {EXT} for extension ("exe")
  • {NOEXT} for file name without extension ("MyFile")
  • and {DRIVE} for drive letter. ("C")

In the following example, an Application favorite named My App with data file will be open with a parameter based on the application's folder.

The Parameters field below includes the "{DIR}" placeholder with a file name "Client.DAT". The second red box shows that the "{DIR}" placeholder will be expanded taking into account the applications' location from the above screen capture.

Multiple parameters can be inserted in this field. Each parameter must be enclosed between quotes. Also, do not forget that, even if there is only one parameter, a parameter must be enclosed between quotes if it contains spaces.

Current folder in Explorer

You can also use the placeholders "{CUR_LOC}", "{CUR_DIR}", etc. that will be replaced with the current location of your Explorer window (window under the mouse pointer or active Explorer window when you open the menu). Let's say you have various folders with the same subfolders structure, for example:

C:\Client-1
C:\Client-1\Contract
C:\Client-1\Contract\Draft
C:\Client-1\Contract\Signed
C:\Client-2
C:\Client-2\Contract
C:\Client-2\Contract\Draft
C:\Client-2\Contract\Signed
etc.

You can create favorites of type Folder or Document that will be opened in a given subfolder under the current (or active) folder in Windows Explorer. For example, a favorite Folder named Current Client's Signed Contract would open the Signed subfolder for Client-1 if you are in the C:\Client-1 folder, or for the second client if you are in C:\Client-2, etc.

Create a favorite folder with the Folder (path) {CUR_LOC}\Contract\Signed in the Basic Settings tab:

When you will launch this favorite, QAP will get the current folder (in Windows Explorer, Directory Opus or Total Commander) and will replace the placeholder {CUR_LOC} with the detected current location. To avoid "folder not found" errors, make sure you have a strictly constant subfolders structure and that you always use this favorite in the appropriate folder (a "root" client folder in our example).

Current location placeholder can be inserted in location for favorites of types Folder, Document and Application.

You call also use these placeholder variations:

  • {CUR_LOC} for full location
  • {CUR_NAME} for file name
  • {CUR_DIR} for directory
  • {CUR_EXT} for extension
  • {CUR_NOEXT} for file name without extension
  • and {CUR_DRIVE} for drive letter

Note: Remember that, in QAP, the relative path conventions .\ for current folder or ..\ for parent folder are processed relatively to QAP's working directory, not to the current directory in your Explorer window.

See also this page for more info about the Start In and Parameters settings: Can I pass the current folder as parameter to an application launched with QAP?.

Selected file or folder in Explorer

Similar to using the context menu with Right-Click but with much more flexibility, you can use QAP to pass the location of the selected file (or part of it) to a given favorite application or script.

In the following example, when launching the application favorite MyApp, QAP will replace  the "{SEL_NAME}" placeholder in the Parameters zone with the file name of the item under the mouse pointer when you open the QAP menu with the Middle Mouse Button or the selected file in the current file manager window if you open the menu with the keyboard shortcut (Windows + W).

Open the QAP menu by pressing the Middle Mouse Button while the mouse pointer is over the desired file and launch the favorite. In the following example, the favorite application is showing a dialog box with, as parameter, the name of the selected file "quickaccesspopup-9_1_2.zip".

These placeholders work in Windows Explorer and Directory Opus. They are not available in Total Commander at this time.

Available placeholders for the selected file are:

  • {SEL_LOC} for full location
  • {SEL_NAME} for file name
  • {SEL_DIR} for directory
  • {SEL_EXT} for extension
  • {SEL_NOEXT} for file name without extension
  • and {SEL_DRIVE} for drive letter
Placeholders in Snippets

Since v9.2, placeholders can be inserted in Snippets content. Also, if you use the Prompt before pasting option, placeholders in the Snippet prompt will also be expanded with the content of the Clipboard or of one of the locations placeholders.

[Tips] Launch your browser to search for the text in your clipboard

In this tip, you will make two favorites work together inside a group. When a group of favorites is selected in the menu, its favorites are launched sequentially. In this example, the first favorite will launch you preferred browser and the second one will paste the content of your clipboard to launch a Google search.  This tip will also show you how to assign a keyboard shortcut to a group.

Note: In a (near) future version, QAP will allow to put the content of the Clipboard as a parameter for Application favorites. This will make this tip irrelevant. But, until then, it will be useful and shows you how a group and a little macro snippet can increase the possibilities of QAP.

Read more