2017-01-16 54 views
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() 

回答

0

好了,發現我的問題的答案,那是在版本0.5.2

作者已經修正了這一個已知的bug。