469,575 Members | 1,662 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,575 developers. It's quick & easy.

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 4496
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 suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.