Hello,

I would like to have a script that closes a specific window if it
opens. I'm able to easily do this in Winbatch as well as Autoit, but
can't seam to figure it out in VBScript.

Anyone have any ideas on how to do this?

Thanks in advance for your assistance!


-=Paraleptropy=-
http://www.neflyfishing.net
0 Limit,Catch -n- Release

----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----

Re: Conditional Window Close by mr_unreliable

mr_unreliable
Wed Oct 12 11:02:52 CDT 2005

hi Para,

You best bet with vbs in the appactivate function.

When you use appactivate as a function, it will return t/f
depending on whether it could activate the window that you'
requested.

By implication, if the window couldn't be activated, then
is isn't there -- so appactivate can be used to wait for the
appearance of a specific window.

Once the window appears, then you can use sendkeys to close
it. For example, if the window has a file menu and an exit
entry in the file menu, then you could close the window with
alt-f and alt-x. Or, if it has a "close button" with a speed
key, then you could close it with ctrl-something.

cheers, jw
____________________________________________________________

You got questions? WE GOT ANSWERS!!! ..(but,
no guarantee the answers will be applicable to the questions)


Paraleptropy wrote:
> Hello,
>
> I would like to have a script that closes a specific window if it
> opens. I'm able to easily do this in Winbatch as well as Autoit, but
> can't seam to figure it out in VBScript.
>
> Anyone have any ideas on how to do this?
>
> Thanks in advance for your assistance!
>
>
> -=Paraleptropy=-
> http://www.neflyfishing.net
> 0 Limit,Catch -n- Release
>
> ----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
> http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
> ----= East and West-Coast Server Farms - Total Privacy via Encryption =----