Skip to content

SendMessageW function

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #186665
    pharaon
    Member

    is it possible that this function is different in windows 7 home with swedish language..because i can’t send text to paltalk room with this code on windows 7 home with swedish language

    Dim iResult As Integer
    iResult = SendMessageByString(iHnd, WM_SETTEXT, 0, "text")
    iResult = SendMessageByString(iHnd, WM_KEYDOWN, VK_Return, 0)
    iResult = SendMessageByString(iHnd, WM_KEYUP, VK_Return, 0)

    any explanation ?

    #186667
    Chike
    Member

    And how exactly the code relates to the title of your post?

    #186666
    autopilot
    Member

    @pharaon wrote:

    is it possible that this function is different in windows 7 home with swedish language..because i can’t send text to paltalk room with this code on windows 7 home with swedish language

    Use the debugger to see what the value you are getting for iHnd. My guess is that due to the swedish language setting, you may need to provide different window captions and/or classes to your function that gets the window handle.

    Using the debugger should help you find the problems, and then you can figure out a solution from there.

    Also, make sure that your SendMessageByString is aliased as SendMessageW and not SendMessageA

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.