ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Post New Requests Here

IDEA: the most basic screen ruler imaginable

<< < (2/3) > >>

app103:
Renegade's ruler requires the .NET framework installed. Make sure you have that first, if you plan on running .NET applications.

Personally, I happen to like his quite a bit and I wish he would finish it. :-*

lanux128:
Renegade's ruler requires the .NET framework installed. Make sure you have that first, if you plan on running .NET applications.-app103 (August 31, 2008, 01:17 PM)
--- End quote ---

.NET runtimes can downloaded from here.

garbanzo:
thanks for the tip, but i have .NET installed. i got the big pack - 2.0, 3.0 and 3.5 - and still get an error saying .NET isn't installed. one would assume 3.5 would be recursive and contain all previous versions, but it appears that isn't the case?

anyway maybe i have to go get 1.0 as well. i chopped up my XP with nlite and i must have removed the basic version...

EDIT

i installed .NET 1.0 SP3 redist, and i still get an error, so i had to get .NET 1.1

how many of these idiotic things are there?

anyway i got it working in the end. and it seems to be about the same as the rest. it lets me measure rectangles. horizontal and vertical. nothing more.

i just want to draw a line on the screen and see how long it is. that would be most useful. surely there is something out there?

skrommel:
 :) Try SmallMeasure!

It's a simple screen ruler. Just move the two "corners" to measure the distance.
When the mousebutton is down, you can use the arrow keys for fine grain movement.

Skrommel



--- ---;SmallMeasure.ahk
; A simple screen ruler
; Move the corners to measure the distance
; When the mousebutton is down, use the arrow keys for fine grain moving
;Skrommel @ 2008

#SingleInstance,Force
SetWindelay,0
CoordMode,ToolTip,Screen

size=15

Gui,1:+LastFound +Border -Caption +ToolWindow +AlwaysOnTop
gui1:=WinExist()
Gui,1:Color,0000FF
Gui,1:Margin,0,0
Gui,1:Font,S100
Gui,1:Add,Text,GMOVE Vvfrom,% Chr(255)
Gui,1:Show,W%size% H%size%
WinSet,Region,0-0 %size%-0 0-%size%,ahk_id %gui1%

Gui,2:+LastFound +Border -Caption +ToolWindow +AlwaysOnTop
gui2:=WinExist()
Gui,2:Color,FF0000
Gui,2:Margin,0,0
Gui,2:Font,S100
Gui,2:Add,Text,GMOVE Vvto,% Chr(255)
Gui,2:Show,W%size% H%size%
WinSet,Region,%size%-0 %size%-%size% 0-%size% ,ahk_id %gui2%
Return


~LButton::
MouseGetPos,mx,my,mwin,mctrl
If mwin In %gui1%,%gui2%
{
  moving=1
  SetTimer,MEASURE,100
  Gosub,MEASURE
}
Return

~LButton Up::
If moving=1
{
  moving=0
  SetTimer,MEASURE,Off
  ToolTip
}

~*Right::
If moving=1
  MouseMove,1,0,0,R
Return

~*Left::
If moving=1
  MouseMove,-1,0,0,R
Return

~*Up::
If moving=1
  MouseMove,0,-1,0,R
Return

~*Down::
If moving=1
  MouseMove,0,1,0,R
Return

MOVE:
 PostMessage,0xA1,2,,,A
Return

MEASURE:
  MouseGetPos,mx,my,mwin,mctrl
  WinGetPos,wx2,wy2,,,ahk_id %gui2%
  WinGetPos,wx1,wy1,,,ahk_id %gui1%
  ToolTip,% "(" wx1 "," wy1 ") - (" wx2 "," wy2 ") = (" wx2+size-wx1 "," wy2+size-wy1 ") and " Round(Sqrt((wx2+size-wx1)**2+(wy2+size-wy1)**2)) " pixels long"
Return

lanux128:
Try SmallMeasure!

It's a simple screen ruler. Just move the two "corners" to measure the distance.-skrommel (September 03, 2008, 03:12 AM)
--- End quote ---

if one waits patient enough, Skrommel will appear bearing coding snacks. :)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version