hi. I am very interested in your code as i am looking for a way to monitor a button in an external app.
If someone was to press this button, i would want my app to block the button press and to popup a msgbox

I currently have a program that sits in the system tray that displays one of 3 icons.
I use it in our office to show whether a user can close invoices / close certain invoices / or not close invoices.

I know how to use the api to get text,press buttons in an external app, but i am now trying to find a
way to stop a button in an external app being pressed ie Not let a user close an invoice.


Would you know how to take this one step further to see that a button has been pressed and then stop the message
being processed. i can then pop up a msgbox in my app to say closing of call not allowed at this time.

hope you can help