Jump to content

WinWaitCLose


michcio
 Share

Recommended Posts

hello there! :)

anybody knows what's wrong with this code?

WinWait("VirtualDubMod Job Control")
ControlClick("VirtualDubMod Job Control","","Button6")
WinWait("VirtualDubMod Status - [" & $avs & "]")
WinWaitClose("VirtualDubMod Status - [" & $avs & "]")
WinClose("VirtualDubMod Job Control")

the problem is "VirtualDubMod Job Control" doesn't close when "VirtualDubMod Status - [" & $avs & "]" close :S why?

regards

michcio

Edited by michcio
Link to comment
Share on other sites

try

WinWait("VirtualDubMod Job Control")
ControlClick("VirtualDubMod Job Control","","Button6")
WinWait("VirtualDubMod Status - [" & $avs & "]")
consolewrite("Virtualdub is Active"&@lf)
if WinWaitClose("VirtualDubMod Status - [" & $avs & "]") =1 then WinClose("VirtualDubMod Job Control")
Edited by Aceguy
Link to comment
Share on other sites

does it get as far as writing to the console...?

or try after the consolwrite line.

$wwc=WinWaitClose("VirtualDubMod Status - [" & $avs & "]")  
if $wwc=1 then WinClose("VirtualDubMod Job Control")
Edited by Aceguy
Link to comment
Share on other sites

does it get as far as writing to the console...?

or try after the consolwrite line.

$wwc=WinWaitClose("VirtualDubMod Status - [" & $avs & "]")  
if $wwc=1 then WinClose("VirtualDubMod Job Control")
hm nothing again :/...and when I ad :

MsgBox(0,"lol",$wwc)

after the $wcc ... line I don't get any MsgBox at all :S

I think that the code never register the WinWaitClose function even though the window is closed :S

Link to comment
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
 Share

  • Recently Browsing   0 members

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