Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: piwax on July 01, 2022, 07:59:17 AM

Title: Command to open a specific Wizzard ?
Post by: piwax on July 01, 2022, 07:59:17 AM
Hello everyone,
I am making my custom screen and i need a button to open a specific wizard. I found the command to load a specific GCode but not a wizard.
I know i can set it to open the last wizard but it dosen't suit my usage.

To explain my setup, i made a custom wizard to generate a GCode file for my machine. I then open it and run it.

Thanks for your help !
Title: Re: Command to open a specific Wizzard ?
Post by: SwiftyJ on July 06, 2022, 02:48:21 PM
Can you just copy the code from the wizard into a button on the screen?

Alternatively you could try the following API. But I am not sure if it is appropriate to use this call for running wizards
Code: [Select]
rc = mc.mcScriptExecute(
number mInst,
string filename,
number async)