Sign in to follow this  
Followers 0
ycomp

Is there some benefit to "If Not WinActive()"?

2 posts in this topic

e.g. code:

If Not WinActive("mywindow", "") Then WinActivate("mywindow", "")

Is there some benefit (speed and/or reliability and/or anything else) to doing this instead of simply?

WinActivate("mywindow")?

all my code is in latter style but if there is some benefit I would probably rewrite it.

thanks.

Share this post


Link to post
Share on other sites



Hummm

I always deploy: "If something neednt be done, why do it" kind of logic


----------------------------------90% of teens today would die if Myspace,Bebo + FaceBook had a system failure and was completely destroyed. If you are one of the 10% that would be laughing, copy and paste this to your signature.----------------------------------Code to win, 'till you die, 'till the compiler dies from your linesCode to win, take it all, just keep coding till you fallDay by day, codin' all the way, I'm not cavin' inLet another App begin, code to win

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