Is there any command can turn on/off MXP?

Posted by Purbam on Thu 04 Mar 2010 08:54 AM — 2 posts, 15,761 views.

#0
I am looking for a funtion/command which turns on/off MXP directly without opening a pop-up window to select by pull-down menu. I wanna use it in a alias/trigger.

The only relevant function I have found is world.DoCommand ("ConfigureMxpPueblo"), but it pops up the window and needs user interactions.

Thanks in advance.
USA #1
Sure. Use SetOption("use_mxp", <level>), where <level> is a number from 0 to 3. You can use SetOption("use_mxp", 2) to set it to "Yes - always" in the GUI, for example - the order is the same as in the GUI's dropdown, but starting from 0.