Hello! I am trying to set a screen to pop up and give the option to save as a pdf, I have the script that works but I am just not sure how to make this script run at a certain time of day, any help is much appreciated thank you!
It is printing a pdf from a screen in vision, I have just found that you can use something like the following code inside of a timer client event to force the screen to popup and give the user the option to save, do you know if it is possible to save the pdf without having someone come and type in the name of the pdf and save it manually?
curDate = system.date.format(system.date.now(),"MM:dd:yyyy")
system.nav.openWindow("Analog Report1")
obj = system.gui.getWindow("Analog Report1")
path="C:\\Users\\chunter\\Desktop\\Norcross Scripts\\Test\\Test.png"
# If the path is not None...
if path != None:
#Save the file
system.print.printToImage(obj, path)
system.nav.closeWindow(obj)
Also, I tried to do something like this, but it did not allow the print to happen just stating "IIOException: Can't create an ImageOutputStream!" Is my formatting incorrect?