简体   繁体   中英

I have to make mouse move until cursor change, but, how?

I want to make a little script that make the mouse moves until the icon changes, but I'm not having success with it...

Here it's what I'm trying

def enterLink():
    mouseMove(*position[4])
    for win32gui.GetCursorInfo()[1] == 65567:
        mouseMove(*position[5])
        mouseMove(*position[4])

How I have to do this? The commands are correct =/

thank you

edit:

I want the mouse cursor moving to one location to another until the area becomes a link... For example, the page could take 5 minutes to load, so, the mouse cursor will be moving around until the page loads completely and the area become a link.

The commands are correct =/

If they were correct, it would work...

for win32gui.GetCursorInfo()[1] == 65567:

I suggest if .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM