GetTabstate function?

This is where you talk about Macros, show examples of your macro scripting and SHARE handy segments of script code as examples.

GetTabstate function?

Postby CNC22369 » Fri May 29, 2020 1:05 pm

I'm writing a macro that I'd prefer to run only when a particular tab state is true. So I want to start the macro with an IF statement to do a return if a particular tab state is false and to run the rest of the macro code if the tab state is true. But I haven't been able to find a GetTabstate like function. Is there one?
CNC22369
 
Posts: 33
Joined: Mon Sep 19, 2016 4:05 pm

Re: GetTabstate function?

Postby dezsoe » Fri May 29, 2020 2:38 pm

There are LEDs 161 to 211 to check, and also the exec.Getlayerslist function (see Macro_capability_detailed.htm).
dezsoe
 
Posts: 2049
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: GetTabstate function?

Postby CNC22369 » Fri May 29, 2020 3:07 pm

Thank you for your reply. I had forgotten about the LEDs associated with layers 0-50. I'm using a custom screenset that has some layer numbers above 50, so I will just need to change the one of interest to something <= 50 and I will be good-to-go.
Thanks again.
CNC22369
 
Posts: 33
Joined: Mon Sep 19, 2016 4:05 pm


Return to Macros

Who is online

Users browsing this forum: No registered users and 13 guests