就會崩潰,但是隨後我會打電話給pyautogui然後崩潰程序。這裏是程序:pyautogui每當我點擊它時點擊
import pyautogui
import time
pyautogui.click(650, 200, 10)
print("started")
while 2 == 2:
x+1
waittime = random.randrange(35, 40, 1)
pyautogui.click(600, 680, waittime)
pyautogui.click(1270, 0, 5)
if (x % 4) == 0:
pyautogui.click(600, 550, 4)
,當我從命令提示符我得到這個錯誤運行
Traceback (most recent call last):
File "C:\Users\dogja\Desktop\crap\region2\scriptybob\test.py", line 3, in <module>
pyautogui.click(650, 200, 10)
File "C:\Users\dogja\AppData\Local\Programs\Python\Python35\lib\site- packages\pyautogui\__init__.py", line 362, in click
platformModule._click(x, y, 'left')
File "C:\Users\dogja\AppData\Local\Programs\Python\Python35\lib\site- packages\pyautogui\_pyautogui_win.py", line 437, in _click
_sendMouseEvent(MOUSEEVENTF_LEFTCLICK, x, y)
File "C:\Users\dogja\AppData\Local\Programs\Python\Python35\lib\site- packages\pyautogui\_pyautogui_win.py", line 480, in _sendMouseEvent
raise ctypes.WinError()
OSError: [WinError 127] The specified procedure could not be found.
你說得對。同樣的事情發生在這裏我想我也使用py 3.4!除了我沒有得到任何漂亮的錯誤消息。該應用程序只顯示死亡的崩潰對話框。 – 2016-06-26 16:52:21