Capture command not work within a function
Hi, I've experienced some odd error that I don't know where to begin to look for a fix. The function capture_
So, if I run error_no_reset() or capture_
Any help is greatly appreciated. Thank you for your time.
def error_no_reset():
capture_
if exists(icon): reset_script()
else: pass
def capture_
reg_capture = Region(
screen_title = "screen capture " + time.strftime(
screenshotsDir = "D:\\temp"
img = capture(
shutil.
[error] script [ test script ] stopped with error in line 1572
[error] AttributeError ( 'Region' object has no attribute 'cmdCapture' )
[error] --- Traceback --- error source first line: module ( function ) statement 55: Sikuli ( capture ) AttributeError: 'Region' object has no attribute 'cmdCapture'
31: main ( capture_screen_old ) img = capture(
422: main ( error_no_reset ) capture_
[error] --- Traceback --- end --------------
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: