[英]how to trigger a python script when a particular software or game is triggered?
Am playing a game named "Apex Legends".so basically I want to automate my controls for the game using a IMU sensor and pyautogui, pyserial library which would make normal keyboard control into gesture controlled control using IMU sensor and python libraries mentioned.So is there a way that a particular python script should start executing when I start apex legends and stop execution when I terminate apex legends.我正在玩一个名为“Apex Legends”的游戏。所以基本上我想使用 IMU 传感器和 pyautogui、pyserial 库来自动化我的游戏控制,它可以使用 IMU 传感器和提到的 python 库将普通键盘控制变成手势控制控制。所以是有一种方法可以让特定的 python 脚本在我启动顶点图例时开始执行,并在我终止顶点图例时停止执行。 Hope am clear about my question.
希望我的问题很清楚。
I don't have the exact steps but if you're on Windows, you can create a new Task on Windows Task Scheduler that triggers on an Event.我没有确切的步骤,但如果您使用的是 Windows,您可以在 Windows 任务计划程序上创建一个新任务,该任务在事件上触发。 To view Windows Events, you can make use of the Windows Event Viewer to find the Event ID that you are looking for.
要查看 Windows 事件,您可以使用 Windows 事件查看器来查找您要查找的事件 ID。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.