0
我想要使用走狗庫GUI自動化任務Python的自動化與拉基庫
import lackey
import time
# pattern for lackey
pattern = lackey.Pattern(r'C:\Users\rainman\Desktop\myfolder\myPicture.png')
# define main screen
screen = lackey.Screen()
# find element on a screen
screen.find(pattern) # error
,但我發現了一些問題:
Traceback (most recent call last):
hdc = self._gdi32.CreateDCA(ctypes.c_char_p(device_name), 0, 0, 0)
TypeError: bytes or integer address expected instead of str instance
這是錯誤還當我試圖發生調用
screen.click(pattern)
或
screen.capture()