Jump to content
Sign in to follow this  

Why does this not work?

Recommended Posts

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)

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[

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.

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...