Click here to Skip to main content
15,886,786 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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[^]
 
Share this answer
 
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, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900