Buldog
14 years agoOccasional Contributor
Sys.refresh problem
Hello
In the script i am using sys.refresh (). When the script is run, Sys.refresh () sometimes works, sometimes not (Object tree is not updated.) I can not understand why this is happening. I tried it in TC7 and TC8, the problem is the same
Delay 3 seconds added before Sys.refresh () and after - that not help
Example:
Code line
.........
Sys.refresh ()
Set p = Sys.Process ("iexplore")
Set a = p.Window ("Internet Explorer_TridentDlgFrame", "Web Page", 1)
Call a.Close ()
Vehicle log
"Unexpected window"
Cannot obtain the window with the window class "Internet Explore_TridentDlgFrame"
At the time when there is a window if you stop the script manually and posmatret Object tree this window does not appear there. After pressing the Refresh all window becomes available in the object tree
Sys.Process ("iexplore"). Window ("Internet Explorer_TridentDlgFrame", "Web Page", 1)
May have an idea?
Thanks in advance
In the script i am using sys.refresh (). When the script is run, Sys.refresh () sometimes works, sometimes not (Object tree is not updated.) I can not understand why this is happening. I tried it in TC7 and TC8, the problem is the same
Delay 3 seconds added before Sys.refresh () and after - that not help
Example:
Code line
.........
Sys.refresh ()
Set p = Sys.Process ("iexplore")
Set a = p.Window ("Internet Explorer_TridentDlgFrame", "Web Page", 1)
Call a.Close ()
Vehicle log
"Unexpected window"
Cannot obtain the window with the window class "Internet Explore_TridentDlgFrame"
At the time when there is a window if you stop the script manually and posmatret Object tree this window does not appear there. After pressing the Refresh all window becomes available in the object tree
Sys.Process ("iexplore"). Window ("Internet Explorer_TridentDlgFrame", "Web Page", 1)
May have an idea?
Thanks in advance