← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #194589]: How to capture context menus --- use capture hotkey

 

Question #194589 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194589

RaiMan posted a new comment:
@ j-the-k
very good suggestion.

this can be refined:
import shutil
import os
dir = "absolute path of folder where you want your images to be stored"
wait(5)
image = capture()
name = input("name the image (no suffix)")
newimg = os.path.join(dir, name+".png")
shutil.move(image, newimg)

Then use the "load image" button to get the image directly into the
script.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.