Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Send Key press for a game?
#3
The game is EverQuest.
pynput for example. Again, the code works fine everywhere except on top of this game. Even when it's called to the forefront. The pynput mouse movement and clicks work great, not the keys though. I'm not sure if there is a 'lower level' key send option I need to use or what is available.
from pynput.keyboard import Key, Controller

keyboard = Controller()

# Type a lower case A; this will work even if no key on the
# physical keyboard is labelled 'A'
keyboard.press('a')
keyboard.release('a')
Reply


Messages In This Thread
Send Key press for a game? - by jmair - Mar-18-2019, 10:22 PM
RE: Send Key press for a game? - by metulburr - Mar-18-2019, 11:47 PM
RE: Send Key press for a game? - by jmair - Mar-20-2019, 02:29 PM
RE: Send Key press for a game? - by nilamo - Mar-21-2019, 04:07 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020