Original Post
Hey all,
I''ve got a handle to a window and I''m trying to send messages to it. It works, for the most part.
I''m trying to send messages to a Magic Online window, so I don''t have to keep tabbing out to update my post. You type in your posting (usually what you''re selling or buying) into a text box. Then when you press enter, it sends your message. If you press the up arrow key, it''ll use your last sent message instead.
It accepts keyboard input like ''A'', and ''B'' but when I send VK_RETURN or VK_UP it doesn''t do anything. Infact, when I send VK_UP instead of getting my last message, an ampersand (&) is shown in the textbox.
Any ideas?
SendMessage(hMagicWindow, WM_CHAR, ''A'', 7); Sleep(250); SendMessage(hMagicWindow, WM_CHAR, ''B'', 7); Sleep(250); SendMessage(hMagicWindow, WM_CHAR, VK_RETURN, 7); Sleep(250);The handle is valid, as I see A and B in the textbox, but it fails to send the message when it comes time for VK_RETURN. Any ideas?