How to execute a wx GUI program by pressing a key on the keyboard?

Hi, all

How to execute a wx GUI program by pressing a key on the keyboard?
Is there any examples ?

wx.Window.RegisterHotKey might be what you are looking for.

*But i want to create a hotkey that does not conflict with the hotkeys of system or any other application.

Okay, then perhaps a better explanation of what you are wanting to do will help find a solution. What’s the use case and desired behavior?

I want to make an automatic keyboard program where you press a certain key(does not conflict with the hotkeys of system or other application) to start, no matter where the focus is, and when you press the key to start the program, the background program can monitor keyboard events, and then press a certain key to stop monitoring, and that’s it. It`s a game aid.
Thanks for your kind and patient.