Python键盘模块选择

huangapple go评论57阅读模式
英文:

Python Keyboard Module Select

问题

keyboard.is_pressed()函数能否在我没有选择shell时工作?所以如果我打开记事本然后按下选择的键,它是否仍然会运行我的代码,还是我必须打开并选择shell?Windows 10问题。

英文:

Simply asked, will the keyboard.is_pressed() function work if I don't have the shell selected? So if I open notepad and then press the selected key, will it still run my code or do I have to have the shell open and selected? Windows 10 question.

答案1

得分: 0

当您首次运行脚本后,最小化Shell并打开记事本进行其他工作,然后按下所选键时,keyboard.is_pressed()函数是否有效?是的,它可以在打开的任何应用程序或选中的应用程序中正常工作。

英文:

Are you saying when first running the script after that minimizing shell and opening the notepad for other work then when you press the selected key then keyboard.is_pressed() function works? yes it works no matter which applications are open or selected.

huangapple
  • 本文由 发表于 2023年5月14日 16:14:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/76246486.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定