4.5 FAQ-363 How do I change the target window to output error message?

Last Update: 2/3/2015

There are several types of messages starting with Origin 8:


'W' for warning message, default = OUTMSG_MESSAGE_LOG_OPEN
'I' for info message, default = OUTMSG_MESSAGE_LOG_OPEN
'E' for error message, default = OUTMSG_MESSAGE_LOG_FORCE_OPEN
'R' for result message, default = OUTMSG_MESSAGE_LOG_OPEN
'D' for debug message, default = OUTMSG_CB_CMD_OUT


They are controlled by @NOW, @NOI, @NOE, @NOR and @NOD system variables respectively.


The target window is defined by:

enum {
	OUTMSG_NONE = 0, 

	// Current command prompt output, can be Command Window or Script Window 
	OUTMSG_CMD_OUT,

	// If no current command prompt output, will open Script Window
	OUTMSG_CMD_OUT_OPEN_SCRIPT_WIN,

	// Code Builder command output
	OUTMSG_CB_CMD_OUT,
	OUTMSG_CB_COMPILER_OUT, 

	// Classic Script Window regardless of current command prompt
	OUTMSG_SCRIPT_WIN,
	OUTMSG_SCRIPT_WIN_FORCE_OPEN,

	// MessagesLog Window regardless of current command prompt, since v8.6
	OUTMSG_MESSAGE_LOG,
        OUTMSG_MESSAGE_LOG_OPEN
	OUTMSG_MESSAGE_LOG_FORCE_OPEN, 
}

Therefore, if you want to change the target window of message types, set the corresponding system variable with the enumerated value.

For example, force error messages to Code Builder command output, type

@NOE = 3



Keywords:error message, script window, command window, @NOE