472,146 Members | 1,408 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,146 software developers and data experts.

Virtual KeyPress

Hi, I am trying to write some code that will execute a virtual keypress. I know that the function is keybd_event() under 32. So I imported ctypes and when I call the function I write

ctypes.windll.user32.keybd_event(....).

However, I do not know what parameters to use. I just want to know how to do Left Right Up and Down.

Thanks for your help,
Jordan
Aug 19 '07 #1
2 4591
bartonc
6,596 Expert 4TB
Hi, I am trying to write some code that will execute a virtual keypress. I know that the function is keybd_event() under 32. So I imported ctypes and when I call the function I write

ctypes.windll.user32.keybd_event(....).

However, I do not know what parameters to use. I just want to know how to do Left Right Up and Down.

Thanks for your help,
Jordan
user32.dll Keyboard Input Reference
Aug 19 '07 #2
Ok, I figured it out, thanks
Aug 19 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Kim Petersen | last post: by
1 post views Thread by chella | last post: by
2 posts views Thread by rege | last post: by
3 posts views Thread by Fia | last post: by
8 posts views Thread by sconeek | last post: by
7 posts views Thread by Christopher Pisz | last post: by
reply views Thread by Saiars | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.