← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #236481]: Script: can you prefill input() --- yes: input("message text", "prefill")

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
-- 1. RC3
in the latest version r930 the input() function with prefill exists.
If you still have the r905, you might try with the update to r930:
start here: http://www.sikuli.org/downloadrc3.html

-- 2. 1.0.1 setup problem
- you should use as setup folder something like c:\SikuliX (avoid paths containing blanks)
- take care: purge the path entry to the RC3 libs folder from system path settings
- if the setup crashes give it one more try after emptying the folder
- if it does not work, try the offline setup (see faq 2363)

-- 3. selfmade input() with prefill
import javax.swing.JOptionPane as JO
answer = JO.showInputDialog("text", "preset")
print answer

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