Taking the MouseMeasure.ahk Script to the Next Level, We Add Multiple Calculations for Going Around Corners
The original MouseMeasure.ahk script captures a single-length in a straight line—as a crow flies. While this works great for many applications, roads and highways generally wind over travel distances. Depending upon where you’re going, this can cause a significant variation in the total calculation. To return a more accurate overall estimate, we must break the measurement line into shorter segments.
The original form of the MouseMeasure.ahk script only allows for a sole straight line. To add more legs to our journey (at different angles), we must implement AutoHotkey techniques for:
- Terminating one segment and starting a new one.
- Tracking the position of each segment, its length, and the total distance traveled.
- Refreshing the screen to include all past legs as well as the new leg.
- Sending multiple saved data items for each leg to documents and forms.