Built-in Commands
Overview
- Powerpro's built-in commands allow manipulation of running programs & windows, plus control of the Windows interface.
General Syntax
- Command.Action(arg(1), arg(2), ..., arg(n))
Commands
-
Bar
- Bars are groups of buttons, created either as a command list in the PPConfig dialog or with scripts. Bars can be manipulated, altered or repositioned using the Bar actions.
-
Clip
- The Clip command is used to work with the clipboard, with actions for manipulating, tracking & editing of the system clipboard.
-
Configure
- Allows import & export of PowerPro configuration files.
-
Desktop
- The Desktop command is used to control various aspects of the Windows desktop layout.
-
Exec
- The Exec command includes various functions for file, window, system, multimedia, & PowerPro manipulations.
-
File
- The File command accesses PowerPro's internal file manipulation commands for manipulating files.
-
Format
- Format commands are used for formatting bars & menus.
- Many of these will only work in particular situations, as specified.
-
Keys
- The old format *Keys command becomes Win.SendKeys() with PowerPro's new expression syntax, & there is also the equivalent command Win.Keys(), which uses a different behind-the-scenes method to send the keys.
- This Keys section of PPSR provides a reference for the target window & keyboard key codes used with both Keys functions.
-
Macro
- Keyboard macros let you create predefined text shortcuts that, when typed, are replace by the full text.
-
Menu
- The Menu command is used to display a menu.
-
Message
- The old format *Message command is replaced by the built-in function messagebox() in the new expression syntax.
-
Mouse
- The old format *Mouse command becomes Win.Mouse() with PowerPro's new expression syntax.
-
Note
- The Note command lets you work with PowerPro notes.
-
ScreenSaver
- The ScreenSaver command is used to work with the Windows screen saver.
-
Script
- The old format Script command encompassed a range of functions relating to control & manipulation of PowerPro scripts.
- Most of these commands are now deprecated for scripting use, and the rest are all mentioned in other places of this reference.
-
Shutdown
- The Shutdown command has functions to shutdown/exit both PowerPro and Windows.
-
Timer
- Powerpro has 26 customisable timers, identified by the single-letter labels a, b, c, ..., z.
-
TrayIcon
- The *TrayIcon command is used to simulate mouse clicks on tray icons from any program.
-
Vdesk
- The Vdesk command works with PowerPro's virtual desktops feature.
-
Wait
- The Wait command is used to wait for some condition before continuing. The condition can be an amount of time, an expression, or both, depending on the command & action used.
- Waits should always be used after commands which act on other windows, as after PowerPro sends the window a message asking it to do something, the window itself must have time to respond.
-
Wallpaper
- The Wallpaper command is used to change the desktop wallpaper.
-
Window
- The Window commands allow manipulation of the windows of running programs.
Notes
- Script & Format commands do not use the new Expression Syntax given in the General Syntax section above.