DonationCoder.com Software > Post New Requests Here
IDEA: MouseLocater - automatic highlight cursor when mouse is moved again
wr975:
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
--- End quote ---
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
skrommel:
:) Try MovingMouse!
Helps locate the mouse when it's moved after being inactive for a while.
Just edit the waitfor, hideafter and tag to configure the settings.
Skrommel
--- ---;MovingMouse.ahk
; Helps locate the mouse when it's moved after being inactive for a while
;Skrommel @ 2009
waitfor=10 ;How many seconds to wait before tagging the mouse
hideafter=5 ;How many seconds to tag the mouse
tag=>> OVER HERE << ;Text to display next to the mouse
#SingleInstance,Force
#Persistent,On
#NoEnv
SetWorkingDir,%A_ScriptDir%
CoordMode,Mouse,Screen
SetTimer,MOVED,1000
inactive=0
Return
MOVED:
oldmx:=mx
oldmy:=my
MouseGetPos,mx,my
If (mx=oldmx And my=oldmy)
inactive+=1
Else
{
If (inactive>waitfor)
{
SetTimer,HIDE,% hideafter*1000
SetTimer,SHOW,100
}
inactive=0
}
Return
SHOW:
ToolTip,%tag%
Return
HIDE:
SetTimer,HIDE,Off
SetTimer,SHOW,Off
ToolTip,
Return
rpnfan:
Hi wr975 and Skrommel,
thank you both for your great little programs. I was (still am a bit) ill -- so the longer delay in answering. I test both programs. I think wr975's solution is still sometimes generating wrong "sonars". I tried to hack both solutions, but none of my hacks was better in the end. Currently I'm using Skrommels solution, but will come back later to try to improve upon one of your solutions.
Thanks alot for your help!
Peter
Catherine Sea:
Thank you.
Catherine Sea
http://www.scmsoftwareconfigurationmanagement.com/
Navigation
[0] Message Index
[*] Previous page
Go to full version