我想通过 ssh 命令将我的光标从我的 Linux 机器上移到我的 Windows 机器上。我尝试使用 nircmd 和 pyautogui,当我直接在 Windows 机器上测试它们时,它们都可以正常工作。但是,当我远程输入命令提示符、Cygwin 或 PowerShell 并尝试使用它们时,它会失败。
蟒蛇错误:
File "<stdin>", line 1, in <module>
File "C:\Users\User\Anaconda3\lib\site-packages\pyautogui\__init__.py", line 6
13, in moveTo
_failSafeCheck()
File "C:\Users\User\Anaconda3\lib\site-packages\pyautogui\__init__.py", line 1
010, in _failSafeCheck
raise FailSafeException('PyAutoGUI fail-safe triggered from mouse moving to
upper-left corner. To disable this fail-safe, set pyautogui.FAILSAFE to False.')
pyautogui.FailSafeException: PyAutoGUI fail-safe triggered from mouse moving to
upper-left corner. To disable this fail-safe, set pyautogui.FAILSAFE to False.
nircmd 不会失败,但也不会移动光标。我尝试使用 PsExec,启动 nircmd 进程但什么也不做。
PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
Starting C:/Users/User/nircmd-x64/nircmd.exe on DESKTOP-IASAQR4...
C:/Users/User/nircmd-x64/nircmd.exe exited on DESKTOP-IASAQR4 with error code 0.
你能帮我吗 ?