Results 1 to 2 of 2

Thread: SendMessage

  1. #1
    Guest

    SendMessage

    Hello,Master
    I'm want to send message to other Application.
    My Application must be control Close & Save work of other App.
    Now, I use PostMessage() and I try until step "Save" .
    I have problem, if other app is not save in first time.
    such as MS Word .... when PostMessage(hWnd,WM_KEYDOWN,VK_RETURN,0) to MessageDlg to accept Button "OK" . next step is have SaveAsDlg show.
    I try ..try.. but, can't send charecter to EditBox of SaveAsDlg , How I can do ?
    please,
    i-Zak ICQ-11818840 [email protected]

  2. #2
    Guest
    You would have to use FindWindowEx but an easier method is using SendKeys.
    Code:
    AppActivate "MyAppTitle"
    SendKeys "%", True
    SendKeys "{ENTER}", True
    SendKeys "S", True
    SendKeys "MyFile.txt", True

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