Hi, as told, it was just a quick hack. I've updated it a bit.
- If you press SHIFT+WINDOWS+S it'll always show the mouse sonar until you press SHIFT+WINDOWS+S again.
- If you press SHIFT+WINDOWS+1 you'll disable it.
- If you press SHIFT+WINDOWS+2 you'll enable it.
- After the idle time, it'll only show the mouse sonar if you moved the mouse 300 pixels (line 10). Pressing a key or using the scroll wheel won't activate it.
I guess that's most of your requests. :-)
Following requests...
> the graphic would blend after the specified time.
> to have a yellow dot to show clicks
are waaaaaaaaaay too difficult for me. Perhaps Skrommel or someone else adapts MouseLocator and implements all your requests.
I came up with a script for german keyboard users
Thanks for the offer, but I'm not really interested in learning a new keyboard layout. (Old dog, new tricks...)
I'm sure you can find some beta testers here:
http://www.essential-freebies.de.
New source code:
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