Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Commandmode Status

Status
Not open for further replies.

ToddWW

Programmer
Mar 25, 2001
1,073
US
Is there any way to determine the status of commandmode ? Whether it is on or off ?

ToddWW
 
Yep, you can use the menustate command to check the status of a menu item, which requires finding the menu ID from the pw5menu.inc file in the ASPECT directory. Here is a script that shows how to do it:

proc main
integer iState

menustate PWMENU 276 iState
if iState == 4
usermsg "Command mode on"
else
usermsg "Command mode off"
endif
endproc

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top