¿ªÔÆÌåÓý

Locked Re: Execute a Windows Batch File from LogixNG or Script #logixng


 

update, I modified the .bat to only take 1 screen shot, not loop every 4 secs.
?
I got rid of the LogixNG and I'm just using a Jython script now.
The script cycles through all of my panels?and for each panel, it calls the .bat to take the screenshot.
This works great!
?
Now with one press of a button I can get a .jpg of each panel that I can copy over to my phone for review when I'm away from the layout.
Also, I plan to use this to compile a single .PDF that shows all of my panels so that I can easily share with others.
Attached script is in its infancy as it only calls 5 of my 58 panels.
?
I know there is a slicker way to loop but I am not that skilled in Jython.
Thanks again!
?

Join [email protected] to automatically receive all group messages.