DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: Text-less progress bar calculator  (Read 13,560 times)

Ethershade

  • Participant
  • Joined in 2009
  • *
  • Posts: 3
IDEA: Text-less progress bar calculator
« on: April 10, 2009, 02:26 AM »
Hello, I was looking for a place to post an idea and came across this website. Now, I for one go crazy over having to watch progress bars that do not have a percentage amount displayed, the worst of which being Adobe Encore. Now then, here's my idea: A small program that you can activate VIA a hotkey, when pressed your cursor becomes the crosshair type. Then the user drags the crosshair from the beginning of the progress bar to the end of the progress bar, after that they click on where the progress bar is currently at and it will calculate the percentage and display it. It seems easy enough to calculate the percentage base on the width of the progress bar and the distance between the start and where it is currently at, so I hope this idea can become more then just that.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: IDEA: Text-less progress bar calculator
« Reply #1 on: April 10, 2009, 03:00 AM »
what you say is feasible.. but.. my gosh is it really something you (or anyone) would use??
seems like an awful lot of trouble to go through to get a more acurate calculation then the rough estimate you could make with your eyes, unless you have cerebellar damage and have difficulty measuring distances..

Ethershade

  • Participant
  • Joined in 2009
  • *
  • Posts: 3
Re: IDEA: Text-less progress bar calculator
« Reply #2 on: April 10, 2009, 03:39 AM »
Can't help it, I go nuts over not being able to see a percentage. Call it my pet peeve.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: IDEA: Text-less progress bar calculator
« Reply #3 on: April 10, 2009, 01:17 PM »
:) 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

Code
;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

Ordstrin

  • Member
  • Joined in 2009
  • **
  • Posts: 32
Re: IDEA: Text-less progress bar calculator
« Reply #4 on: April 10, 2009, 01:47 PM »
I made a GUI app to do this.. but it seems Skrommel beat me to posting...
"Better yet" I can't seem to upload it anywhere. I'll post it here once I manage to find a solution, for those who like GUIs.
Edit:
It seems my problems are fixed... somehow...
Download it from here

Screenshot:
[attachthumb=#]
« Last Edit: April 10, 2009, 02:31 PM by Ordstrin »

cranioscopical

  • Friend of the Site
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 4,776
    • Cody Award
    • Official Forum Clown
    • rotten turkey sandwich - Rotten Turkey Sandwich
Re: IDEA: Text-less progress bar calculator
« Reply #5 on: April 10, 2009, 03:34 PM »
Two solutions, no less!

:up:

Chris

Ethershade

  • Participant
  • Joined in 2009
  • *
  • Posts: 3
Re: IDEA: Text-less progress bar calculator
« Reply #6 on: April 13, 2009, 03:58 AM »
Thank you very much, you both saved me a lot of grief. My Saviors!

Original address: https://www.donationcoder.com/forum/index.php?topic=17846.0