Guest awmax Posted March 1, 2004 Share Posted March 1, 2004 (edited) I was a AutoIt 2 user and now want to generate a new script. I was wondering if this utility is available: An AutoIt 3 script that runs in the backgound, that when the mouse stops for x number of seconds, it some how displays the mouse pointer location and pixel color without taking focus from the window. Optionally, writes the pointer location and color to a text file. Thanks in advance! Update: just found AU3Spy.. checking to see if this will work. Update2: AU3Spy only works in window mode. I need something just like it that works in Full Screen mode. Thanks! Edited March 1, 2004 by awmax Link to comment Share on other sites More sharing options...
jpm Posted March 1, 2004 Share Posted March 1, 2004 I was a AutoIt 2 user and now want to generate a new script. I was wondering if this utility is available: An AutoIt 3 script that runs in the backgound, that when the mouse stops for x number of seconds, it some how displays the mouse pointer location and pixel color without taking focus from the window. Optionally, writes the pointer location and color to a text file. Thanks in advance! Update: just found AU3Spy.. checking to see if this will work. Update2: AU3Spy only works in window mode. I need something just like it that works in Full Screen mode. Thanks!; ---------------------------------------------------------------------------- ; Script Start ; ---------------------------------------------------------------------------- global $time=timerstart(),$x=0, $y=0, $nomove= 3000, $color, $move=0 AdlibEnable("function" ,250 ) sleep(100000) ; wait for ever Func function() $a=MouseGetPos() if $a[0]=$x AND $a[1]=$y then $diff=timerstop($time) if $diff > $nomove AND $move=0 then $move=1 SplashTextOn("mouse stop", stringformat("x=%d y=%d \ncolor=%d",$x, $y, $color ), 200,50) endif else $move=0 $x=$a[0] $y=$a[1] $time=timerstart() $color=PixelGetColor($a[0], $a[1]) endif endfunc I hope that help to start Read the help for more Link to comment Share on other sites More sharing options...
Nutster Posted March 1, 2004 Share Posted March 1, 2004 In full screen mode, you need to do something to get it to record the location of mouse, such as with a HotKey. Let's see where did I put that? Oh yeah! Look here for the code. Keep in mind, this is not tested, at least by me. David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
Guest awmax Posted March 1, 2004 Share Posted March 1, 2004 Thanks! It looks like a combination of the two will work good. More testing todo... Link to comment Share on other sites More sharing options...
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