Just as the title states, im looking for some help to press and hold keys down in any focused window. I have seen similar things using tkinter, but i have only seen code to send commands to a tkinter created window.
thanks

Recommended Answers

All 2 Replies

i have looked at that, however it doesn't have the ability to simulate a key pressed down and held, instead it just sends a keystroke.

im looking for something that i can basicly call the key pressed down and for how long, then keyup.

i found something called WM_KEYDOWN and WM_KEYUP in the win32con module, but i have no sweet clue how to implement it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.