Sign in to follow this  
Followers 0
michcio

WinWaitCLose

7 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

hm but the thing is also that I'm not closing the window...it closes automaticly...doesn't that change everything?

Share this post


Link to post
Share on other sites

ah! my $avs was wrong created :) with good created my first code works perfectly!! sry :) and thanks for all your help!

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