michcio Posted November 29, 2008 Share Posted November 29, 2008 (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 November 29, 2008 by michcio Link to comment Share on other sites More sharing options...
Aceguy Posted November 29, 2008 Share Posted November 29, 2008 (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 November 29, 2008 by Aceguy [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
michcio Posted November 29, 2008 Author Share Posted November 29, 2008 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") doesn't work either Link to comment Share on other sites More sharing options...
Aceguy Posted November 29, 2008 Share Posted November 29, 2008 (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 November 29, 2008 by Aceguy [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
michcio Posted November 29, 2008 Author Share Posted November 29, 2008 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 More sharing options...
michcio Posted November 29, 2008 Author Share Posted November 29, 2008 hm but the thing is also that I'm not closing the window...it closes automaticly...doesn't that change everything? Link to comment Share on other sites More sharing options...
michcio Posted November 29, 2008 Author Share Posted November 29, 2008 ah! my $avs was wrong created with good created my first code works perfectly!! sry and thanks for all your help! Link to comment Share on other sites More sharing options...
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