Something like this will work.
alias F5 'status; setwindow form.status; FORM status display; settoggle filled_pads YES NO; FORM status display_enhance $filled_pads; FORM status done'
Change the alias to what ever you want.
I just recorded myself doing this task and then massaged things around to get this.
In reply to Joewi:
In addition to creating scripts and manipulating them, you can also type "scriptmode +echo" in the command window to make the Status Bar report user commands. This can often quickly find the command you want.
The env file can contain any command, as far as I can tell. Just separate commands by semicolons and enclose the series of commands in quotes and it should work.
In reply to EvanShultz:
If you have 16.2 and your product has Skill then the following skill code will add a new togglepad command. You can then alias the command with: alias F2 togglepad
(defun togglePad () axlDBDisplayControl('filledPadsEnable !axlDBDisplayControl('filledPadsEnable)) axlVisibleUpdate(t))axlCmdRegister("togglepad" 'togglePad)
In reply to fxffxf: