How do i add extra dimensions to a screenshot?

Asked by cherie on 2017-11-18

I currently have the code below.. and it takes the screenshot just fine.. but it cuts off the left and right side of the screenshot

It also doesn't seem to always take the middle of the focus app as well.

How do i add another 50 pixels all around possible?

print "Taking SS..."
focusWindow = App.focusedWindow()
regionINFO = capture(App.focusedWindow())
shutil.move(regionINFO, os.path.join(r'C:\Screenshots', 'Dummy1.png'))
print "SS Done..."

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
cherie
Solved:
2017-11-18
Last query:
2017-11-18
Last reply:
cherie (cherieann) said : #1

Nevermin

cherie (cherieann) said : #2

Nevermind found my answer, it's .grow(-20) = )