Open opsboy opened 3 weeks ago
It is normal to directly use SikulixIDE to take screenshots
`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')`
It is normal to directly use SikulixIDE to take screenshots
`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')`