defcon.klaxon
Lifetime Supporting Member
Hey guys,
I've got a bit of a conundrum that I'm trying to solve. I'll say what it is basically, and then give the explanation of the greater problem.
Long story short, is there a way for a script in Wonderware to return the name of the Windows user who is currently logged in?
So the client wants a flows summary screen printed every night before the totalizers reset. I found a program called NovaPDF that will do this automatically, with timestamped filenames so I wrote a printscreen script in Wonderware to print every night. Seemed easy enough, but there's a problem. The client has multiple concurrent licenses on a VM server that the application is deployed to. So the main terminal at the WTP is always wateruser1, wateruser2 is always logged in for the standby iPad, wateruser3 is the lead operator's phone. So every time that printscreen script runs, it does it for every user. It's causing issues, so I was hoping there would be a way to grab the current Windows username in a script and then run the printscreen script for only one user.
I've gone through the scripting guides and haven't found anything that will do what I'm looking for. Security is Archestra based, not Windows based.
Any ideas for how I might go about this? Thanks for any help!
I've got a bit of a conundrum that I'm trying to solve. I'll say what it is basically, and then give the explanation of the greater problem.
Long story short, is there a way for a script in Wonderware to return the name of the Windows user who is currently logged in?
So the client wants a flows summary screen printed every night before the totalizers reset. I found a program called NovaPDF that will do this automatically, with timestamped filenames so I wrote a printscreen script in Wonderware to print every night. Seemed easy enough, but there's a problem. The client has multiple concurrent licenses on a VM server that the application is deployed to. So the main terminal at the WTP is always wateruser1, wateruser2 is always logged in for the standby iPad, wateruser3 is the lead operator's phone. So every time that printscreen script runs, it does it for every user. It's causing issues, so I was hoping there would be a way to grab the current Windows username in a script and then run the printscreen script for only one user.
I've gone through the scripting guides and haven't found anything that will do what I'm looking for. Security is Archestra based, not Windows based.
Any ideas for how I might go about this? Thanks for any help!