Virtual KeyPress

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psychofish25
    New Member
    • Jul 2007
    • 60

    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.u ser32.keybd_eve nt(....).

    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
  • bartonc
    Recognized Expert Expert
    • Sep 2006
    • 6478

    #2
    Originally posted by psychofish25
    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.u ser32.keybd_eve nt(....).

    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

    Comment

    • psychofish25
      New Member
      • Jul 2007
      • 60

      #3
      Ok, I figured it out, thanks

      Comment

      Working...