lamko Posted February 19, 2019 Posted February 19, 2019 (edited) Hello guys, I can't figure out why the following script is hanging on script is paused icon on the taskbar. Oke1 msgbox is displayed and the script isn't further executing. I've checked with the window info tool if the TITLE, CLASS and INSTANCE were right. So the script is waiting for WinWaitActive but why ?? The window Vervangen is nicely displaying it's content. Opt ("WinTitleMatchMode", 3) ; Script Start - Add your code below here run("notepad") Sleep(2000) Send("{LALT}") Send("w") Send("r") Sleep(2000) ;MsgBox(0,"hello", "oke1") If WinWaitActive("[TITLE:Vervangen; CLASS:Edit; INSTANCE:1]", "") Then Send("{ASC 065}") EndIf MsgBox(0,"hello", "oke2") If ControlSend("Vervangen", "", "[CLASS:Edit; INSTANCE:2]", "This is some text") Then Send("{ASC 065}") EndIf ControlSend has combined sollution for me. Thx fixed Edited February 19, 2019 by lamko
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