![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
Topic Title: task hangs if window opened by automate is not the active window. Topic Summary: Created On: 08/31/2012 03:31 PM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
||||||||||
Hello,
I have noticed that when an automated taskbegins, if the opened window is not the active window, then the task will hang indefinitely in one of the steps (mostly the second step, right after opening the window). Only when I click the window opened by automate, and make it the active window, the task completes. Is this a setting I need to change somewhere in automate?
Thank you greatly.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Alex,
Without seeing your task, I would recommend that you add a Wait for Window and Focus Window action to make sure your window is the active window to interact with.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
it is a very basic task. i must say. it opens logs on to the erp system, opens a window, checks a fes check boxes, and closes the window. that in a nutshell. the task is ran from a computer to which i rdp using the same user that i specify to also set up the task, and run it. once i finish setting up the task, i log off of the rdp connection. i am including a screnn shot of the steps, would it be possible ask for help in identifying the stepes where i might need to add wait to open and focus window?
thank you kindly.
regards,
alex.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Alex,
on step 2 you "wait for window to be focused" and it seems to do so, waiting for ever until the window is focused. You should just replace that with a simple "wait for window", and since you specified "focus the window after the wait", it should then proceed nicely.
------------------------- Jean Delfosse - Automate Beta Tester Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4 ![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
Jean,
I changed the step to be only "Wait for window to open" leaving the focus after the wait box, checked.
I then ran the task from the task builder screen, and it ran fine. I saved the task and tried to run it again from the task administrator screen, and this time it failed.
It says "window can not be focused" and then the task just hangs. Is there any recommendations you may have to get around this issue?
I am including a screen shot of the error, and the step# 2
Thank you.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Alex,
Are you able to provide the screenshots of the windows you are trying to interact with? And post the task in its entirety using the Attach Code button?
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
Alex,
I have no certainty, but on task 1, I would suspect that the task is not running under the same user in task administrator as it does from task builder. (check task properties) And regarding task 2, I see the wait for window is still "wait for window to be focused"
------------------------- Jean Delfosse - Automate Beta Tester Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4 ![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Jean,
I amde sure that the two tasks are using the same user. I did not change the window to be focus in the script I uploaded but in the script I am running it matched the script #1
Thank you much
|
||||||||||
|
||||||||||
![]() |
||||||||||
When you run the task from task administrator, do you mean you are sitting in front of the computer, seeing the task administrator window, and you hit the "Run" button ?
As a test you might place a message box at the very beginning of the task, and see if it displays correctly when you run the task from TA.
------------------------- Jean Delfosse - Automate Beta Tester Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4 ![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
Hi,
I did provide all the screen shots and scripts last weekend.
Do you think it would be possible to get a bit more insight? My tasks keep hanging. And I have verified that I am using the same user, that I am waiting to open the window, and then set focus in it. But I can not get pass step #2 Thank you
|
||||||||||
|
||||||||||
![]() |
||||||||||
I do not understand why when I run the steps the task runs, but when I try to run the same task as a schedulked job, it does not run.
This si the strangest thing. does not make sense to me.
|
||||||||||
|
||||||||||
![]() |
||||||||||
When the task is scheduled, does it properly unlock the workstation and logon as the appropriate user ? Can you see it happening ?
------------------------- Jean Delfosse - Automate Beta Tester Win7 Pro 64 bits -Win XP Pro SP3 32 bits - AM8, AM7, BPA10, BPA9, BPA8, BPA7, AM6 Enterprise, AM4 ![]() |
||||||||||
|
||||||||||
![]() |
||||||||||
I am setting this task on a VM to which I connect via RDP. This VM has Automate installed, and the software it needs to interact with. When I schedule the task, the only thing I see happening is "Running Task" message, but I never seen it completin, or erroring out.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Why would the task run from the task builder window, but not from the TA window if it's the same task, same steps and everything?
|
||||||||||
|
||||||||||
![]() |
||||||||||
Alex,
Task Builder runs the task under the context of the currently logged on user whereas running it from Task Administrator may vary based on log on settings for that task. What are the logon settings for the task?
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
This screen shot shows the logon details for the task.
I tried to select from System > Options > Enable software SAS, but I select the check box and then if I go back to the same System > Options > Enable software SAS the box shows unchecked, it does not remember the setting.
I am on windows 7, 32 bit OS.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Alex,
Please change 'when workstation is logged on' to 'run as logged on user'. Microsoft no longer supports running an interactive session as a specified user when there is a currently logged on session. Also, are you running the latest version of AM7? The latest version is 7.1.3.0.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
||||||||||
![]() |
||||||||||
I am running version 7.1.1.0 I changed that setting as you instructed, I sitll see the red note though.
|
||||||||||
|
||||||||||
![]() |
||||||||||
hello again,
it seems as the program is running, now from the TA window, and also as a scheduled task on windows.
Now, for the last part, when scheduled as a windows task, it seems it only runs when I am logged on the VM viw RDP. If I exit out of the session, and let it run at the scheduled time, then the tasks hangs indefinitely. What is the correct way to set up the task and program it to run at an specific time without having to be logged on to the machine where the task resides?
I hope this makes sens and it's clear, if not, please let me know. Thank you very much for your help.
|
||||||||||
|
||||||||||
![]() |
||||||||||
Hi Alex,
Is there anyway for you to test the logon sequence outside of Remote Desktop? Are you able to sit in front of the machine or use a third party tool like VMWare, LogMeIn or RealVNC? By doing this we can make sure that AutoMate is sending control alt delete and getting past any security screens you may have.
------------------------- ![]() Ricardo Castaneda | Principal Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 |
||||||||||
|
||||||||||
![]() |
||||||||||
I'm having exactly the same problem in Automate 9. The same script works fine in Automate 8 AND in the task builder in Automate 9. But as soon as it's run directly from the task administrator, it's failing.
I unfortunately can't provide you with my full code since it's a password protected page.
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) |
||||||||||
|
||||||||||
![]() |
||||||||||
Igor,
Please open a thread in the appropriate forum. You are running AM9 and not AM7.
------------------------- ![]() Leonard Amabile | Director, Cross Platform Support AutoMate | InterMapper | Skybot | Divisions of HelpSystems T: +1.213.738.1700 | F: +1.213.738.7665 |
||||||||||
|
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.