Hi, This is Huyen
I’m creating a workflow for Attended Robot which prints documents by sending powershell command. Documents have to be sent one after another to avoid mixing order.
All my print commands are working well. My problem is that I couldn’t find a proper way to check if the previous file was sent COMPLETELY to the printers so that the robot can send next file.
These are some ways that I have tried but didn’t work well
Detect the print job popup (shown after print job done) by using UI Element Exist Activity -> This didn’t work because the selector is valid and highlighted even when there is no popup, returns True all the time.
I also tried Find Image Match -> it couldn’t detect the popup as a picture.
I captured the popup by Snipping Tool and tried Find Image Match ->the Select has to contain Snipping Tool windows which is not used in my workflow
Open the print queue window by command, check every print job was shown on this window by using UIElementExist Activity and wait until it vanishes by WaitUIElementVanish Activity
-> This didn’t work because the print job was shown and disappear very fast, before the UIElementExist Activity starts detecting, it caused time out error while the file was sent to the printer successfully.