2
« on: May 06, 2022, 12:24:55 PM »
A couple different options...
There are some APIs to load G code, either from a file or a string. So you could write your G code to a file and then use mc.mcCntlLoadGcodeFile(), or mc.mcCntlLoadGcodeString() if you wanted to load it directly from a string instead of a file. The API docs in C:\Mach4Hobby\docs will be helpful for how to use those API calls.
or...
Are you familiar with the scr.SetProperty() API? The notebook in the screen editor that has your G code and MDI tabs, there sound be a property like "Current Tab" you can set with the scr.SetProperty() API to flip between tabs. I believe the tab number is a string of the zero-based index. So "0", "1", etc.