Jump to content

Recommended Posts

Posted (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 by lamko

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...