r.hover() doesn't work
Hello.
I am beginer and i have problem with r.hover().
Here i am pasting code when all works fine:
r = selectRegion()
wait(2)
r.hover()
mouseDown(
wait(0.1)
mouseUp(
print("done")
Here is the code which include same code what is above:
Settings.
regionWyzwalani
regionSkanowani
regionZagrozeni
regionZagrozeni
regionVanish=
i=1
while True:
if regionWyzwalani
if regionZagrozeni
mouseDown(
if regionZagrozeni
mouseUp(
if not regionWyzwalani
for i in range(1):
r = selectRegion()
print("step 1")
wait(6)
print("step 2")
r.hover()
mouseDown(
wait(0.1)
print("step 3")
mouseUp(
print("done")
Same code and different effects. I recived only two messages:
step 1
step 2
2 times on 60x times this code works. Very often i got messages from all steps, but ofc without hover and any reaction from mouse. For me it is big mistery. Do You have any advice? I wasted many hours to undestarnd it. Without effect.
I tried change (even delete) Settings.
One more important thing: if i manualy clicked once before command: mouseDown(
Edit:
It is funy when i spend many hours on resolve this and after publication this i got revelation. Loop for in 99% started with mouseDown(
So i added mouseUp(
Thank You.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- groszexxx
- Solved:
- Last query:
- Last reply: