← Back to team overview

sikuli-driver team mailing list archive

[Question #268296]: "click" and "mousemove" work incorrectly

 

New question #268296 on Sikuli:
https://answers.launchpad.net/sikuli/+question/268296

my code:
t1 = None
t2 = exists("1434631000840.png")
print t1
print t2
for i in range(3):
    print ('-----------------------t1------------------')
    mouseMove(t1)
    sleep(1)
    click(t1)
    print ('-----------------------t1------------------')
    print ('-----------------------t2------------------')
    mouseMove(t2)
    sleep(1)
    click(t2) 
    print ('-----------------------t2------------------')
    print ('-----------------Move mouse----------------')
    mouseMove(Location(1000,700))
    print ('-----------------Move mouse----------------')

log sikuli:
None
M[1195,284 122x124]@S(S(0)[0,0 1920x1080]) S:1,00 C:1256,346 [324/324 msec]
-----------------------t1------------------

[log] CLICK on L(932,529)@S(0)[0,0 1920x1080]

-----------------------t1------------------
-----------------------t2------------------

[log] CLICK on L(1256,346)@S(0)[0,0 1920x1080]

-----------------------t2------------------
-----------------Move mouse----------------

-----------------Move mouse----------------
-----------------------t1------------------

[log] CLICK on L(1000,700)@S(0)[0,0 1920x1080]

-----------------------t1------------------
-----------------------t2------------------

[log] CLICK on L(1256,346)@S(0)[0,0 1920x1080]

-----------------------t2------------------
-----------------Move mouse----------------

-----------------Move mouse----------------
-----------------------t1------------------

[log] CLICK on L(1000,700)@S(0)[0,0 1920x1080]

-----------------------t1------------------
-----------------------t2------------------

[log] CLICK on L(1256,346)@S(0)[0,0 1920x1080]

-----------------------t2------------------
-----------------Move mouse----------------

-----------------Move mouse----------------
>From where sikuli took location for clicks? :
[log] CLICK on L(932,529)@S(0)[0,0 1920x1080]
[log] CLICK on L(1000,700)@S(0)[0,0 1920x1080]

It seems that somehow sikuli remembers location from mousemove

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