Sign in to follow this  
Followers 0
v1rtu0s1ty

wait window to close then send string

3 posts in this topic

Hey guys,

I got autoit to login to a gui app without issues. However, after I click OK button on the username/password msgbox, and after I have been authenticated, the application shows another msgbox which shows updating local cache(no user intervention required). The time before this msgbox goes away is dynamic. I don't want to send ALT+F, X at once. I want to send it after this message box disappears. What can be a nice code that can verify if this message box is already close? Can you show code please assuming the text on titlebar of the msgbox is "Creating cache..." I've noticed that the text is always the same.

Thanks,

Neil

Share this post


Link to post
Share on other sites



While WinExists("Creating cache...")
   Sleep(10)
Wend

Send("!f")
Or...
While 1
   If Not WinExists("Creating cache...") Then Send("!f")
Wend


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

While WinExists("Creating cache...")
   Sleep(10)
Wend

Send("!f")
Or...
While 1
   If Not WinExists("Creating cache...") Then Send("!f")
Wend

<{POST_SNAPBACK}>

I think, the last code is better since with that, i can put many WinExists. Also, I just noticed now that another error dialogbox came up since I'm not connected to the office. I can include that WinExists("ODBC error") Then 'do whatever i want

Thanks,

Neil

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0