Jump to content



Photo

_ProcessSendCloseMessage


  • Please log in to reply
2 replies to this topic

#1 Ascend4nt

Ascend4nt

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,073 posts

Posted 25 February 2009 - 02:40 PM

..

Edited by Ascend4nt, 06 August 2009 - 02:49 AM.








#2 Jango

Jango

    Polymath

  • Active Members
  • PipPipPipPip
  • 202 posts

Posted 25 February 2009 - 02:47 PM

Hello,

It's intresting, does it work with _IECreate ? in other words does IE started with _IECreate a child process ?

#3 Ascend4nt

Ascend4nt

    Universalist

  • Active Members
  • PipPipPipPipPipPip
  • 1,073 posts

Posted 25 February 2009 - 02:59 PM

Hello,

It's intresting, does it work with _IECreate ? in other words does IE started with _IECreate a child process ?


I just tested it, with default parameters, and yes - it does work. The thing is - its a matter of timing. You need to make sure the Window activates and is ready to receive 'close' messages. That's why I put the MessageBox() there, to pause the script and let you visually acknowledge the open windows. You can use WinWaitActive() and the like though.

-a

*EDIT: When I *don't* use default parameters for _IECreate(), it in fact does *not* show up as a child process. I verified this a few ways - the parent process appears to be 'svchost.exe' for anything but a default parameter list. Odd. Well, you could always open Internet Explorer by using Run() if you need it to be shown in the child processes list..

Edited by ascendant, 02 March 2009 - 04:47 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users