Sign in to follow this  
Followers 0
Guest awmax

Is This Available?

4 posts in this topic

#1 ·  Posted (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 by awmax

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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 Nuttall
Nuttall 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...

Share this post


Link to post
Share on other sites

Thanks! It looks like a combination of the two will work good.

More testing todo...

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