Hi, as told, it was just a quick hack. I've updated it a bit.
I guess that's most of your requests. :-)
Following requests...
> the graphic would blend after the specified time.
are waaaaaaaaaay too difficult for me. Perhaps Skrommel or someone else adapts MouseLocator and implements all your requests.
Thanks for the offer, but I'm not really interested in learning a new keyboard layout. (Old dog, new tricks...)
.
Spoiler
;#NoTrayIcon
#persistent
#SingleInstance ignore
; in seconds
idle_seconds = 120
show_sonar = 5
mouse_offset = 300
; no more changes
; ----
SetTimer, Idle , 1000
Return
#+S::
settimer,active,off
settimer,idle,off
process,exist,sonar5.exe
if errorlevel <> 0
{
process,close,sonar5.exe
settimer, idle
}
else
run,sonar5.exe
Return
#+1::
settimer,active,off
settimer,idle,off
process,close,sonar5.exe
msgbox,disabled
return
#+2::
process,close,sonar5.exe
settimer,active,off
settimer,idle
msgbox,enabled
return
idle:
IfGreater, A_TimeIdle, %idle_seconds%000
{
;ToolTip,Idle ; For testing
SetTimer, Idle, Off
MouseGetPos, MouseX, MouseY
SchlafendeMaus := mousex + mousey
SetTimer, Active, 250
}
return
active:
If A_TimeIdle < 250
{
MouseGetPos, MouseX, MouseY
AufgewachteMaus := mousex + mousey
If schlafendemaus > %aufgewachtemaus%
diff := schlafendemaus - aufgewachtemaus
else
diff := aufgewachtemaus - schlafendemaus
if diff > %mouse_offset%
{
;Tooltip ; For testing
settimer,active,off
Run,sonar5.exe,,hide
sleep,%show_sonar%000
process,close,sonar5.exe
settimer,idle
}
}
Return