7.5 Predefined PWB Macros

PWB predefines a number of macros, most of which correspond to a command in the PWB menus. You can define a shortcut key for a menu command by assigning the key to the corresponding macro. Note that some menu commands such as the Open command from the File menu do not correspond to a macro, and some macros do not correspond to a menu command.

Table R.12 PWB Macros

Macro Description Key

Curfile Current file's full path Unassigned
Curfileext Current file's extension Unassigned
Curfilenam Current file's name Unassigned
_pwbarrange Arrange command, Window menu ALT+F5
_pwbboxmode Box Mode command, Edit menu Unassigned
_pwbbuild Build command, Project menu Unassigned
_pwbcancelbuild Cancel Build command, Project menu Unassigned
_pwbcancelprint Cancel Print command, File menu Unassigned
_pwbcancelsearch Cancel Search command, Search menu Unassigned
_pwbcascade Cascade command, Window menu F5
_pwbclear Delete command, Edit menu DEL
_pwbclose Close command, Windowmenu CTRL+F4
_pwbcloseall Close All command, Window menu Unassigned
_pwbclosefile Close command, File menu Unassigned
_pwbcloseproject Close command, Project menu Unassigned
_pwbcompile Compile command, Project menu Unassigned
_pwbfilen n file, File menu Unassigned
_pwbgotomatch Goto Match command, Search menu Unassigned
_pwbhelp_again Next command, Help menu Unassigned
_pwbhelp_back Previous Help topic ALT+F1
_pwbhelp_contents Contents command, Help menu SHIFT+F1
_pwbhelp_context Topic command, Help menu F1
_pwbhelp_general Help on Help command, Help menu Unassigned
_pwbhelp_index Index command, Help menu Unassigned
_pwbhelpnl Display the message: Online Help Not Loaded F1 when Help extension not loaded
_pwbhelp_searchres Search Results command, Help menu Unassigned
_pwblinemode Line Mode command, Edit menu Unassigned
_pwblogsearch Log command, Search menu Unassigned
_pwbmaximize Maximize command, Window menu CTRL+F10
_pwbminimize Minimize command, Window menu CTRL+F9
_pwbmove Move command, Window menu CTRL+F7
_pwbnewfile New command, File menu Unassigned
_pwbnewwindow New command, Window menu Unassigned
_pwbnextfile Next command, File menu Unassigned
_pwbnextlogmatch Next Match command, Search menu SHIFT+CTRL+F3
_pwbnextmatch Next Match command, Search menu Unassigned
_pwbnextmsg Next Error command, Project menu SHIFT+F3
_pwbpreviouslogmatch Previous Match command, Search menu SHIFT+CTRL+F4
_pwbpreviousmatch Previous Match command, Search menu Unassigned
_pwbprevmsg Previous Error command, Project menu SHIFT+F4
_pwbprevwindow Move to previous window SHIFT+F6
_pwbquit Exit command, File menu ALT+F4
_pwbrebuild Rebuild All command, Project menu Unassigned
_pwbrecord Record command, Edit menu Unassigned
_pwbredo Redo command, Edit menu Unassigned
_pwbrepeat Repeat command, Edit menu Unassigned
_pwbresize Resize command, Window menu CTRL+F8
_pwbrestore Restore command, Window menu CTRL+F5
_pwbsaveall Save All command, File menu Unassigned
_pwbsavefile Save command, File menu SHIFT+F2
_pwbsetmsg Goto Error command, Project menu Unassigned
_pwbshell DOS Shell command, File menu Unassigned
_pwbstreammode Stream Mode command, Edit menu Unassigned
_pwbtile Tile command, Window menu SHIFT+F5
_pwbundo Undo command, Edit menu Unassigned
_pwbusern command n, Run menu ALT+Fn
_pwbviewbuildresults View build results button Unassigned
_pwbviewsearchresults View search results button Unassigned
_pwbwindown n file, Window menu ALT+n

PWB continually redefines the following macros to reflect the current file's name:

Macro Description,  

Curfile Full path,  
Curfileext File extension,  
Curfilenam File base name,  

PWB uses the following special-purpose macros:

Macro Description

Autostart Executed on startup while reading TOOLS.INI
Mgreplist List of files for logged searches, multifile replace, Mgrep, and Mreplace
Playback Default name of recorded macros
Restart (Obsolete)

By default, these macros are undefined.