double click, right click and click don't work sometimes in windowsXP

Asked by Sam Liu

Hi Raiman,

I searched the question list, but I can't solve my issue yet. described as following:

I just want open a software which will show in the task list, this is a very simple operation and work well in my another compute. Would you please give some comments? in other questions, you said it's a timing and maybe logic problem.

m=find("1395319788484.png")
anw=doubleClick(m)
print(str(anw))
anw=click(m)
print(str(anw))
sleep(0.5)
anw=doubleClick(m)
print(str(anw))

hover(m)
mouseMove(m)
mouseDown(Button.RIGHT)
mouseUp(Button.RIGHT)

Sikuli message:
[log] DOUBLE CLICK on L(113,277)@S(0)[0,0 1360x768]

1
[log] CLICK on L(113,277)@S(0)[0,0 1360x768]

1

[log] DOUBLE CLICK on L(113,277)@S(0)[0,0 1360x768]

1

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
obiwan-92 (obiwan-92) said :
#1

Hello.

OK.
I'm sorry but everything seems to work correctly.
For the logic, I don't understand why you print your click return, but that's not a problem.
What's the problem exactly ?
Which command doesn't work ?

Regards.

Revision history for this message
Sam Liu (samliu-liu) said :
#2

Hello, Raiman,

the problem is sikuli message show the click,double click done on the software icon, but actually it's a fake done~ the software could not open. but I double click by hand, it can open the software.

Thanks,
Sam

Revision history for this message
Sam Liu (samliu-liu) said :
#3

sorry, Obiwan, I supposed Raiman answered me.

Revision history for this message
obiwan-92 (obiwan-92) said :
#4

Don't worry. It's flattering. ;)

Try to add some sleep, between your action.

Tell me if it's work.

Regards.

Revision history for this message
Sam Liu (samliu-liu) said :
#5

Obiwan, it still does't work

Can you help with this problem?

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

To post a message you must log in.