How to create Input box in Sikuli

Asked by Aakash Dev

Hi All,

I want to a input box like vb input box in my script when it is in the running mode.I want to enter some details in this input box and again want to use the enter details in my script.

Is it possible in sikuli?

Please help,

Thanks and Regards,
Aakash

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

ret = input("tell me something")
print ret, "this is a string"

details -> docs

Revision history for this message
Aakash Dev (woodrowhp1983) said :
#2

Hi Raimund,

Thanks for the reply.

I used this in a sikuli script "Mytest" as :

from sikuli import *
import time
import os
import sys
import datetime
import shutil
import Framework

def aa(value1):
 sErrrorMessage = input(value1)

and trying to call it in an another script as given below :

import Mytest

Mytest.aa("Test")

But iam getting the below given error:

Mytest.aa("Test")
  File ".\Mytest.sikuli\Mytest.py", line 11, in aa
    sErrrorMessage = input("Test")
IOError: The handle is invalid

Please help,

Thanks and Regards,
Aakash

Revision history for this message
RaiMan (raimund-hocke) said :
#3

it might be, that the module "Framework" (what is it?) contains a method input() that overwrites Sikuli's input() method, since the error (IOError: The handle is invalid) does not make any sense with Sikuli's input().

Can you help with this problem?

Provide an answer of your own, or ask Aakash Dev for more information if necessary.

To post a message you must log in.