By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,442 Members | 1,052 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,442 IT Pros & Developers. It's quick & easy.

Virtual KeyPress

P: 60
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
Share this Question
Share on Google+
2 Replies

bartonc
Expert 5K+
P: 6,596
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

P: 60
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.