Exec.CommandLine
Description
- Shows a tiny command line allowing the user to enter a command that will be run, as with Windows' Start > Run dialog.
Syntax
- Exec.CommandLine(ac_keywords)
Parameters
- ac_keywords
- (string) any combination of the following keywords, as a space-separated string
- Script calls cannot combine "urlhistory" or "urlrecent" with "history" or "=vecname".
- Optional.
Possible Values
- "file"
- autocomplete using file and shell folder names
- "urlhistory"
- autocomplete using history URL
- "urlrecent"
- autocomplete using URL most recently used
- "history"
- autocomplete using the history in the dropdown of the edit box
- =vecname
- where "vecname" is a vector containing strings for autocompletion
Examples
- Exec.CommandLine
- Opens a Tiny Type & Run box.
- Exec.CommandLine("file")
- Opens a Tiny Type & Run box that allows autocompletion with file and shell folder names.
- Exec.CommandLine("file urlhistory urlrecent")
- Opens a Tiny Type & Run box that allows autocompletion with file and shell folder names, recently used URL's, and URL's in the system's URL history.
- global vAutos = Vec.CreateFromWords("folder file document")
Exec.CommandLine("=vAutos")- Opens a Tiny Type & Run box that allows autocompletion with the words "folder", "file", & "document".
Notes
- Only one dialog using autocomplete can be active at a time.
- The Tiny Type & Run box stays open after executing its command. It must be manually shut, possibly via its close button or context menu, or with a Window.Close_("PowerPro run") command, best not called from the same script otherwise the box will open then close again straight away.
See Also
- PowerPro Help CHM > Built-in Commands > *Exec > Tiny Type and Run Box
- PowerPro Help CHM > Miscellaneous Usage Topics > Auto completion