CS-Lab Support Forum for CNC Community

Help to run this brand-new forum and stay with us.
Ask your questions, we are here to help! 

 

Forum Navigation
You need to log in to create posts and topics.

running a script after simCNC has loaded

hello,

is there a way to run a script once after simCNC has been started completly?

 

 

Yes, with a pyaction, there you have the option of starting the script after the csmio has connected or after you have enabled control.

i have tryed with pyactions

csmio has connected: is to early because screenset is not loaded completly

enable control: required a operator action by pushing a button

ok, it works with csmio has connected and a 3 second sleep in the script, not very nice but working.

You can create python action (Configuration/PyActions) to trigger on 'CSMIO connected' event and hook custom macro. When simCNC is started and connection with CSMIO established, your macro will be called.
 

i have done it this, only thing is Csmio connected event ist coming before the screenset is loaded completly.

in my script i am "filling" values to user editlines based on the program witch run last (before shutdown).

it is working now with a short delay in the script.

in general would be great to get a possibility to identify that user is changing tab's in screenset.

PARTNERS:

 

USA

Germany

Slovenia / Bosnia

Spain

South Africa

UNI-CAM

The Netherlands

Portugal

Greece

  Distrib milionis logo

Hungary

Distrib logot

Bulgaria

Master

Kenya

Proteq Automation

Egypt

Germanelectronix

China

Jun Ma

Serbia

ALCO

Italy

LVL tech r

Denmark

Varntoft Dania

Finland