
Try
Percentage!
Calculates how far a progressbar has moved, in percentage .
Press F1, then click at the start, inside and at the end of the progressbar.
Skrommel
;Percentage.ahk
; Calculates how far a progressbar has moved, in percentage
; Press F1, then click at the start, inside and at the end of the progressbar
;Skrommel @ 2009
#SingleInstance,Force
#NoEnv
CoordMode,Mouse,Screen
CoordMode,ToolTip,Screen
Return
F1::
tip=
(
To calculate the percentage, click
1 - at the start
2 - inside
3 - at the end
of the progress bar
)
ToolTip,% tip
Hotkey,~LButton,LBUTTON,On
counter=0
Return
LBUTTON:
counter+=1
MouseGetPos,mx%counter%,my%counter%
ToolTip,%counter%
If counter=3
{
Sleep,1000
ToolTip,% Floor((mx2-mx1)/(mx3-mx1)*100) "%",% mx2,% my2
Hotkey,~LButton,LBUTTON,Off
}
Return