BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

intercepting an program's dialog box

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia
View previous topic :: View next topic  
Author Message
John Owen
Guest





PostPosted: Tue Apr 19, 2005 9:49 am    Post subject: intercepting an program's dialog box Reply with quote



Hi,

I've just changed ISP and no longer enjoy a static IP address. I've written
a small Delphi app which monitors my IP address and which can launch
Microsoft Media Encoder and close it, if required.

I get the Handle to the Encoder with something like:

var ProgShell: THandle;

ProgShell:= ExecutedFileHandle(Handle, ProgName, cmdLine, '',
SW_SHOWNORMAL);

where ExecutedFilehandle returns the Windows handle to 'ProgName' (ie Media
Encoder in this case).

The theory was that, if my IP address changed, the app would close the
Encoder and relaunch it so that it, too, could detect the new IP address and
start broadcasting on it.

Although my app can launch and auto-start the encoder via its command line
and shut it down again, I can't find a way to prevent the Encoder
dialogue "Are you sure you want to stop encoding?" popping up when my app
tries to close it. Naturally, that stops my app "re-booting" the Encoder
without 'human' intervention.

Any thoughts or suggestions would be appreciated,

Thanks,
John.








Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.