Sign in to follow this  
Followers 0
Skrip

Why does this not work?

2 posts in this topic

AutoItSetOption("WinTitleMatchMode", 2)

$win = "AIM"


While 1
    If WinExists($win) Then
        $win_pos = WinGetPos($win)
        $mouse_pos = MouseGetPos()
        If $mouse_pos = $win_pos[0] Or $win_pos[1] Then
            WinMove("AIM", "", $win_pos[0] + 1, $win_pos[1] + 1)
        EndIf
    EndIf
WEnd

AIM should move away from the mouse then the mouse moves too it.


[left][sub]We're trapped in the belly of this horrible machine.[/sub][sup]And the machine is bleeding to death...[/sup][sup][/sup][/left]

Share this post


Link to post
Share on other sites



If $mouse_pos = $win_pos[0] Or $win_pos[1] ThenoÝ÷ ÚûºÚ"µÍY ÌÍÛ[ÝÙWÜÜÈH ÌÍÝÚ[ÜÜÖÌHÜ    ÌÍÛ[ÝÙWÜÜÈH ÌÍÝÚ[ÜÜÖÌWH[


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0