|
-
Nov 22nd, 2008, 04:36 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] [2008] Sending text to another application
Hi everyone, I've got a problem.
I'm trying using 'My.computer.Keyboard.SendKeys("0")' to send the text "0" to set the text of an edit control in another application,
it works for NotePad, but not for the application I'm trying to do it with.
I think I know what's wrong, when using Microsoft Spy++ to view the windows of the process, there is only one visible window, and no other windows like edit/button windows etc.. so I think the 'edit' control I see, is actually manually painted, and they're using WM_NCHITTEST and other stuff to determine where the mouse has clicked and what to do...
And it also doesn't act like a normal edit control, IE holding down a key doesn't repeatedly add that key to the text box, you can only remove the last character in the text box etc...
How would I simulate pressing a key on the keyboard? because pressing a key works fine for the application?
Kind Regards
Icyculyr
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|