adrian-evo / robotframework-sikulixlibrary

The all new, modern, SikuliX Robot Framework library for Python 3.x, based on JPype or Py4J Python modules.
MIT License
22 stars 4 forks source link

When taking screenshots, enlarge the screen #11

Open opsboy opened 3 weeks ago

opsboy commented 3 weeks ago

It is normal to directly use SikulixIDE to take screenshots

image

image

`import arrow from SikuliXLibrary import SikuliXLibrary

sikuli_path = r'D:\sikuli\sikulixide-2.0.5-win.jar'

jc = SikuliXLibrary(sikuli_path)

sc = jc.Screen() res = sc.selectRegion("Select a region on the screen!!!")

if res: image = sc.capture(res) image.save('./',f'{int(arrow.get().timestamp()*1000)}.png')`