Trouble with Window Watcher
Posted: Fri Feb 21, 2014 5:50 pm
Hi, I'm new to RoboTask and am just getting a feel for the functionality to see if it can solve a problem in my office prior to purchasing a license but in my initial demo I'm having some difficulties and was hoping you could help. At the moment I am simply trying to get RoboTask to watch for the presence of a window and then either close it or show me a message or something, eventually I'd like it to do more but I'm simply troubleshooting now.
Using your samples, "Close alert window.tsk" & "Show alert message.tsk" I was able to create a Window Watcher Event for Firefox with a Window Command Action of Close and RoboTask is successful in closing the application when it opens so I know I've got the basics of the function correct. My problem is that I cannot get it to detect the specific window for which I'm evaluating RoboTask. To give you a little background on the problem window... Our office has a shared copier and everytime a user prints to it the printer driver pops up and asks them for their ID & password. What I'd like to do is when the user logs on to present a dialog asking them their ID & password and store those variables, then whenever this pop up window presents itself I'd like to enter that information into the window automatically until that user logs off. I'm currently just struggling with the window recognition though.
Here is the window I am trying to capture, this window is presented any time a user tries to print. I can never get RoboTask to perform any actions when this window appears. It's as if RoboTask doesn't recognize it.
Here is the Event settings,I have to select the "Child windows" box to even see this dialog window.:
and here are the action settings:
Thanks for any assistance you can provide.
Using your samples, "Close alert window.tsk" & "Show alert message.tsk" I was able to create a Window Watcher Event for Firefox with a Window Command Action of Close and RoboTask is successful in closing the application when it opens so I know I've got the basics of the function correct. My problem is that I cannot get it to detect the specific window for which I'm evaluating RoboTask. To give you a little background on the problem window... Our office has a shared copier and everytime a user prints to it the printer driver pops up and asks them for their ID & password. What I'd like to do is when the user logs on to present a dialog asking them their ID & password and store those variables, then whenever this pop up window presents itself I'd like to enter that information into the window automatically until that user logs off. I'm currently just struggling with the window recognition though.
Here is the window I am trying to capture, this window is presented any time a user tries to print. I can never get RoboTask to perform any actions when this window appears. It's as if RoboTask doesn't recognize it.
Here is the Event settings,I have to select the "Child windows" box to even see this dialog window.:
and here are the action settings:
Thanks for any assistance you can provide.