Results 1 to 6 of 6

Thread: Stop a button's process

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Montréal, Québec Canada
    Posts
    202

    Stop a button's process

    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

  2. #2

  3. #3
    Addicted Member Cbomb's Avatar
    Join Date
    Jul 1999
    Posts
    153

    Hmm.

    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.
    Cbomb
    Techie

  4. #4
    Subclass the button or window, maybe?

  5. #5
    Gerco
    Guest
    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.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Montréal, Québec Canada
    Posts
    202
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width