PDA

Click to See Complete Forum and Search --> : Stop a button's process


Phailak
Jul 19th, 2001, 12:29 PM
Hail,

I need to stop the function from a button on a app that isn't mine because it keeps producing a run time error. I also want to launch an app I made when the button is pressed. How can I achieve this? I do not want to disable it since I'll need it to launch.

Phailak

filburt1
Jul 19th, 2001, 01:01 PM
What?

Cbomb
Jul 19th, 2001, 01:33 PM
Looks like he wants this to happen:

1. User click button in some program (not his).
2. The button's typical event does _not_ take place.
3. His program is lauched and carrys out some action.

Phailak, I don't have a clue how to do that, sorry, but Im sure someone here will. Good luck.

filburt1
Jul 19th, 2001, 01:49 PM
Subclass the button or window, maybe?

Gerco
Jul 20th, 2001, 05:37 PM
Originally posted by filburt1
Subclass the button or window, maybe?
YOu can't subclass anotherprocess. Not safely anyway. If you try, be prepared to crash, OFTEN.

Phailak
Jul 23rd, 2001, 09:12 PM
Hail,

Thanx for the replies guys,

FYI... This is how I did it.
I hid the button I wanted to get rid of, then created my own with the same properties and just launched my app with shellexecute when the window or button I created got focus (checked that with a timer at 100 interval)
That's all folks, works great

Phailak