![]() |
| |||||||
Automation Anywhere Post messages and questions related to Automation Software here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Hello I am using Automation Anywhere to test the software we write. I been working on a script for some time which calls other tasks. I'm finding that after one task has completed it seems to press either the delete or esc key. I'm not sure which I just know the software I'm testing responds as if one of those keys has been pressed (both do the same thing in the software). Is it possible that ending one task would send something like an esc sequence that would indicate the script completed? I'm a little stuck, so have added the scripts I've written, though without the database I'm connecting to they won't work on their own. The main script I'm running is called 'transactionsByDateRange' that then calls 'TransactionLinesLoop' it's immediately after the 'TransactionLinesLoop' script is called that the key press occurs. I've tried putting a pause in immediately after the script call but the key is still pressed. Any susggestions would be greatly appreciated |
| |||
| Hello, I don't think the logging to a file is causing the Esc or Del key to be inserted. It could be on of the keystrokes in Transactionlinesloop.atmn. If you run the task in Debug mode you will be able to identify the exact location of the problem. |
| |||
| When I run in debug mode, it just steps through my script within automation anywhere, doesn't actually click in the software that the script is for. So running in debug mode doesn't help me because AA doesn't show in any way what keys are being pressed. I think (by putting delays in) that I have narrowed it down to when it changes from one script to another. I have one main script that calls a secondary script, when the secondary script passes control back to the main script I get a flash of a window that says 'loading' the screen flickers and when it's finished the problem occurs (esc/del pressed) the main script then resumes, but can't continue because the program is no longer in the state it expects. I can't move the contents of the second script into the main script because both of them need to run sql loops and I can't nest loops. If anyone can help I'd appreciate it. |