Wednesday, April 20, 2011

Need to close a windows that does not show in process list via Visual Basic Script

I need to close down a VPN window using visual basic script. My normal port of call would be too look through the process list and close the correspoding process. Unfortunately this does not work in this case as the associated process is explorer.exe!

Is there anyway to achieve this?

From stackoverflow
  • A hackish way to do it is to get it's WindowClass via Spy++ then send it the wm_close message...

0 comments:

Post a Comment