Results 1 to 4 of 4

Thread: BM_CLICK freezing app [RESOLVED]

  1. #1

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

    BM_CLICK freezing app [RESOLVED]

    Hi,

    I'm trying to simulate the click of a button on another app. First, I have to do it twice even though I do specify SetActiveWindow just before, but I'm sure I can probably figure that out. The problem is, once it does simulate the click, it freezes my app??? From what I can tell, the form that loads from the click button is modal but I don't understand why it freezes my app (freezes it until I close the new modal form). When launched in F8 debug, cursor just stops after the BM_CLICK message until I close the new form. I need to send more messages to the new modal form, how will I be able to if the code deosn't continue executing?
    Make sense?

    Phailak
    Last edited by Phailak; Jun 8th, 2004 at 12:51 PM.

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Use PostMessage API instead of SendMessage.
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jul 2000
    Location
    Montréal, Québec Canada
    Posts
    202
    Thanks, I'll be in the office tomorrow and will give it a try.

    Phailak

  4. #4

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

    Resolved

    Thanks, it worked!

    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