英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论