Results 1 to 4 of 4

Thread: Take string from one app and pass to another

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154

    Post

    I am wanting to get a string from one application and open another application and pass it to a label. I know how to find the handle of the new app but am not sure how to reference the other application text box and send the string. Any Ideas?

  2. #2
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    You can use SetWindowText

    Public Declare Function SetWindowText Lib "user32.dll" Alias "SetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String) As Long

    SetWindowText hwnd, strMyText

    ------------------
    Marty
    What did the fish say when it hit the concrete wall?
    > > > > > "Dam!"

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154

    Post

    Thank you. I will try it.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    154

    Post

    I can set the sindow title but I can't seem to set the string in the text box. I have the textbox handle but can't seem to pass the string/ However, the API brings back a value of 1 which should mean it was successful. Any ideas?

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