Click here to Skip to main content
14,456,326 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have a jukebox program running that does announcements if you press certain buttons on the keyboard. I wanted to do the key presses using my own program, running in the background, based on certain time periods.

I have used sendkeys.send and my.computer.keyboard.sendkeys but it doesn't work.
This is strange because when I have notepad open the key press works.
The jukebox program announcements does work if you press the button yourself.

I was wondering if there was another way to do the key press.
Posted
Comments
MrZedSven 5-Jul-12 4:38am
   
Does anyone know how the windows on screen keyboard do it's key presses, because it works with the jukebox program.

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

User account control in windows Vista and later can block send keys.

If one process has elevated permissions it won't be able to send keys to another.

Read the notes in the follow MSDN article:

SendKeys Class[^]
   
Comments
MrZedSven 18-May-12 6:29am
   
The computer is running Windows XP.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100