timmyc Posted September 13, 2015 Share Posted September 13, 2015 Hi All,Thanks in advance for your help.I have a script that goes through 'views' in an application and changes the dates on these views for accurate reporting, the issue is that when selecting the view and when accepting the changes for the view the program frequently goes into a Not Responding mode while it thinks and applies changes.My work around: I am currently sending the commands to open up the about window, once the about window opens (which means app is responding) it will close the about window and continue with script, however i think this is sloppy as i am just spamming the app with commands.Using the window info tool i know the name and class of the app both when it is not responding and when responding.Using this information i tried doing the following hoping that it would check for the Not responding window and if it's there it would sleep until the window goes back to "hp OpenView service desk", but it doesn't work.If WinExists("hp OpenView service desk (Not Responding)") then Do Sleep(1000) tooltip('SCRIPT IS WAITING FOR HPOV TO LOAD', 800, 0) Until WinExists("hp OpenView service desk") tooltip("") EndIfI have also tried using the Class instead of the name.If WinExists("[CLASS:Ghost]") then Do Sleep(1000) tooltip('SCRIPT IS WAITING FOR HPOV TO LOAD', 800, 0) Until WinExists("[CLASS:WFC.Window.8]") tooltip("") EndIfSometimes the tooltip message does come up but then it just continues with the script, it doesn't loop until the window is responding again.Hope this makes sense and have given enough info.ThanksTim Link to comment Share on other sites More sharing options...
jguinch Posted September 13, 2015 Share Posted September 13, 2015 other possibility :Do Sleep(100) Until Not _WinAPI_IsHungAppWindow( WinGetHandle("hp OpenView service desk") ) Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF Link to comment Share on other sites More sharing options...
timmyc Posted September 14, 2015 Author Share Posted September 14, 2015 Thank you so much jguinch, i think this helped! Will keep playing wit it but i think this will definitely help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now