there are something wrong hanppend when i use “type”function

Asked by kiyo

 when i use “type”function,i found that the text can not input,i wanna to input “18817582867” to picture "1435134879904.png",but the result is there are nothing input to there。

following are my code:
click("1435132517980.png")
wait(5)
click("1435132555492.png")
wait(5)
click("1435132580445.png")
wait(5)
type("1435134879904.png","18817582867")
wait(2)

following are my log:
[debug] 1435134879904.png has appeared.
[log] CLICK on L(232,310)@S(0)[0,0 1920x1080]

[log] TYPE "18817582867"
[debug] Robot: doType: 1 ( 49 )

[debug] Robot: doType: 8 ( 56 )
[debug] Robot: doType: 8 ( 56 )

[debug] Robot: doType: 1 ( 49 )
[debug] Robot: doType: 7 ( 55 )
[debug] Robot: doType: 5 ( 53 )

[debug] Robot: doType: 8 ( 56 )
[debug] Robot: doType: 2 ( 50 )

[debug] Robot: doType: 8 ( 56 )
[debug] Robot: doType: 6 ( 54 )
[debug] Robot: doType: 7 ( 55 )

[debug] SikuliXFinal: cleanUp: 0

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
Eugene S (shragovich) said :
#1

Are you certain that your cursor is really where you want it?
If you would type manually, would it type as you expect?

Revision history for this message
kiyo (532433917-6) said :
#2

yes,i am pretty sure my cursor has focus on that place.
actually,that pciture which my cursor focus on is a textbox,when i put text manually,it will be work.
thank you very much.

------------------ 原始邮件 ------------------
发件人: "Eugene S";<email address hidden>;
发送时间: 2015年6月24日(星期三) 下午5:01
收件人: "yin"<email address hidden>;

主题: Re: [Question #268496]: there are something wrong hanppend when i use “type”function

Your question #268496 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268496

    Status: Open => Needs information

Eugene S requested more information:
Are you certain that your cursor is really where you want it?
If you would type manually, would it type as you expect?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/sikuli/+question/268496

You received this question notification because you asked the question.

Revision history for this message
Eugene S (shragovich) said :
#3

after you click the the textbox, try to do just:

type("18817582867")

Revision history for this message
kiyo (532433917-6) said :
#4

i have try,but it does not work.

following are my code:
click("1435132517980.png")
wait(5)
click("1435132555492.png")
wait(5)
click("1435132580445.png")
wait(5)
click("1435134879904.png")
type("18817582867")

following are log:
[debug] 1435134879904.png has appeared.
[log] CLICK on L(232,310)@S(0)[0,0 1920x1080]

[log] TYPE "18817582867"
[debug] Robot: doType: 1 ( 49 )
[debug] Robot: doType: 8 ( 56 )
[debug] Robot: doType: 8 ( 56 )

[debug] Robot: doType: 1 ( 49 )
[debug] Robot: doType: 7 ( 55 )

[debug] Robot: doType: 5 ( 53 )
[debug] Robot: doType: 8 ( 56 )
[debug] Robot: doType: 2 ( 50 )

[debug] Robot: doType: 8 ( 56 )
[debug] Robot: doType: 6 ( 54 )

[debug] Robot: doType: 7 ( 55 )
[debug] SikuliXFinal: cleanUp: 0

------------------ 原始邮件 ------------------
发件人: "question268496";<email address hidden>;
发送时间: 2015年6月24日(星期三) 下午5:12
收件人: "yin"<email address hidden>;

主题: Re: [Question #268496]: there are something wrong hanppend when i use “type”function

Your question #268496 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268496

    Status: Needs information => Open

You gave more information on the question:
yes,i am pretty sure my cursor has focus on that place.
actually,that pciture which my cursor focus on is a textbox,when i put text manually,it will be work.
thank you very much.

------------------ 原始邮件 ------------------
发件人: "Eugene S";<email address hidden>;
发送时间: 2015年6月24日(星期三) 下午5:01
收件人: "yin"<email address hidden>;

主题: Re: [Question #268496]: there are something wrong hanppend when i
use “type”function

Your question #268496 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/268496

    Status: Open => Needs information

Eugene S requested more information:
Are you certain that your cursor is really where you want it?
If you would type manually, would it type as you expect?

--
To answer this request for more information, you can either reply to
this email or enter your reply at the following page:
https://answers.launchpad.net/sikuli/+question/268496

You received this question notification because you asked the question.

You received this question notification because you asked the question.

Revision history for this message
Eugene S (shragovich) said :
#5

According to your log, there is definitely a click and some typing done, that means that Sikuli is working properly.
The only problem that I can guess is that it is not typing where you intend it to.

You must make sure that the cursor is in the right place when it starts typing. Try to insert some wait between the click and the typing.

Can you help with this problem?

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

To post a message you must log in.