Capture a system messgae

  • Thread starter Thread starter Adam Maltby
  • Start date Start date
A

Adam Maltby

Hi,

Is it possible to capture a system message and answer it for the user?

e.g, The system brings up a msg box asking if the window is ok to be closed, and we want to select yes for the user so they don;t have the chance to say no?

Cheers
Adam
 
* "Adam Maltby said:
Is it possible to capture a system message and answer it for the user?

e.g, The system brings up a msg box asking if the window is ok to be closed, and we want to select yes for the user so they
don;t have the chance to say no?

I doubt that there is a general way. You may want to use 'SendKeys' to
close the message box, but this won't be a very robust solution.
 
I dont know for sure but I'd say no. If you could do this with the
dotnet framework then it wouldn't be very secure, every hacker and his
dog and his dogs dog would be doing it.

I dont know if you override the system in that way for sure but if you
can i will be very unhappy.

hth
Richard
 
I was not talking about generally across diff pc apps, i was talking about just implementing it in one app with a certain set of circumstances involved - i.e. it could only be done by the application generating the message....

I know that sounds a bit dumb..... why not just have it not generate the message i hear you ask???!!

Basically i am calling a website into a browser window..... since this settinng to ask on close is applied by policy across the system and i don;t want to change the overall policy, i just need it to be caught by it's own app.....

Now, what I've said my not make a diff, in which csae, I'll have to fudge it somehow, if it does make a diff, any other sugegstion would be welcome...


Cheers
Adam
 
Back
Top