Skrip Posted December 3, 2006 Posted December 3, 2006 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]
Moderators SmOke_N Posted December 3, 2006 Moderators Posted December 3, 2006 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now