![](/img/trans.png)
[英]I am using pyautogui to detect the mouse position. I have a tkinter window, but the pyautogui only works when i close the tkinter window
[英]In Python Tkinter, I have successfully made a keybind but it only works when I am clicked into the tkinter window.
在Python Tkinter中,我已经成功创建了一个绑定,但是只有当我单击tkinter窗口时,它才能起作用。
我希望即使在与其他程序进行全屏交互时也可以使用按键绑定。 (我正在制作自动答题器,在游戏进行中时无法打开tkinter窗口,然后单击键。)
您无法使用tkinter做您想做的事情。 Tkinter绑定仅在tkinter创建的Windows中有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.