Print a screen when you select a tag

Hello,

I wonder if you can send to print a screen when you select a tag.
and from a button too.

how to do this?

Greetings

this is how I have my script to send to print from a button
but an error flag.

as I can do it without leaving me the error.








The function calls are case-sensitive.window = system.gui.getparentwindow(event) should be window = system.gui.getParentWindow(event)You can see more about that function here.

Thanks, Robert.

know how I can send print when an alarm is activated.

The best way to do that is to set up a Client Event Script based on a Tag Change to call that function. For that to work, you need to have a client open when the tag changes. In addition to that, each client will run this script and print out a copy of the screen. The best way to get around that is to use the System Tags (IPaddress or HostName) to determine who prints the screen.