|
-
Jul 5th, 2007, 05:47 PM
#1
Thread Starter
Addicted Member
Hotkey + Sendkeys = Failure
I am trying to send some text to another window using a hotkey,
Example I am using Hotkey. CTRL + Numpad1 to send "Hello World!" however the problem with this is that when you use sendkey it actually sends Ctrl + Everysingle letter at a time. This opens all sorts of dialog prompts and what not.
So I tried blocking input but when you block input it freezes the CTRL key into the On position so that doesnt work.
So then I thought well I can just backup the clipboard, and then settext and then use the key command CTRL + V and then restore the clipboard before anyone is the wiser.
That works awesome, except for when you are trying to Remote Assist someone through Windows Remote Assistance. Since you are using their clipboard you can't set their clipboard and all you are doing is backing up your clipboard, setting it to something and then using their clipboard so the previous two actions are devoid of any point.
I can wait until the CTRL key is no longer being pressed but that is annoying because it makes the program appear choppy.
Any clues?
- Joe
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
|