AutoHotkey Community

It is currently May 27th, 2012, 10:20 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: January 30th, 2005, 1:30 pm 
Based on that famous "Ruler" script (kindly shared by Tekl ---> [here]) what about this:

A mouse position detector wich uses a combined vertical/horizontal based ruler (a full screen crosshair/precision select).

More advanced:
If used on a full screen (world) map translate the mouse position to GPS coordinates and show them as tooltip.

:lol:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2005, 1:44 pm 
Sample map (click to enlarge):

Image


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2005, 1:47 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Other than the map, what uses do you have in mind for it? It might motivate volunteers if they better understand the benefit.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 30th, 2005, 2:43 pm 
Good point. :wink:
You enter the name of your city or its GPS coords (via an AHK GUI) and it will show you your (rough ?) position on the map or the other way around - move the mouse to the postion on the map and get the GPS coords. Using the info "mouse coord<>gps info" it would be easy to "pin" the location of a user on a(n AHK-world) map.

Target: to create an "AHK conquers the world"-map (at the forum), which points out where AHK's users are coming from. Seem to remember that an Korean AHK user asked for native language support. Thought that it would be nice for him to see another little red dot on the map beside its own (at the korean region), to indicate "you're not alone". :lol: Weird, I know ...

In German its said: "Ein Bild sagt mehr als tausend Worte" ~ "a picture is worth a thousand words"


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2005, 1:35 am 
Image
Used MS-Paint to set the red dots/MS PhotoEditor to save it as a PNG. [Source]
Chris=FL\USA; BoBo=Germany; ...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2005, 2:46 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Nice. For your next trick, please extend your prototype to support Martian and Lunar coordinates for projected colonies there. Also, please provide an option to adjust for bidirectional (past/future) continental drift. 8)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2005, 3:45 pm 
Well, it's macabre that the "relevant area" aka continental (d)rift on the map below is quite close to the desaster area in Asia :shock:.

So it needs some extra clarification:

That image is based on the German word "Arschkarte"

Arsch = arse/butt
Karte = map

It's said that that word takes its meaning from Football (real Football - the one which isn't played with the hand! Yeah, correct - the real one), were the main referee keeps two cards (a yellow and a red one) in his hip pocket, and in case of a foul takes one of it to show the player (and the furious crowd) which kind of penalty he'll get for that.

Image


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2005, 3:54 pm 
Quote:
Martian and Lunar coordinates for projected colonies
Another good point! Yes there's definitely a need for that - as George W. acts like an environmental braindead. Nearly every day we see the news from the States and it looks more and more like "The Day after Tomorrow" :shock:.

AHK on Mars ! :lol:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 31st, 2005, 3:54 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
Quote:
(real Football - the one which isn't played with the hand! Yeah, correct - the real one)


I'm probably in a very tiny majority of Minnesotans (Americans?) who agree that European/South American/Every-friggin-where else football is the "real" one.

Quote:
"The Day after Tomorrow"


Apparently you've never been to Minnesota in February. :lol: I had the pleasure of hearing a Siberian complain about the weather here last week.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2005, 1:21 am 
Using this code and a slightly differnt map then the first posted here I was able to have the coords of the location I was pointing at, its slightly off, but I think it should do, maybe it would be more accurate on a better map. I looked for about 2 hours and couldnt find a good one, but ah well. Some directions are placed as comments in the script for centering the 0,0 coord on different images. I hope this solved half the issue

Code:

; Displays ToolTip With GPS choords on map

SetTimer, FindCoords, 50
Gui, +Resize
Gui, Add, Picture, vMap x0 y0 w1180 h600, C:\Documents and Settings\Owner\My Documents\My Pictures\m-tzone.jpg
Gui, Show, x53 y191 h608 w1167, GPS Coords
;Return


FindCoords:
WinGetActiveStats, ActiveTitle, Width, Height, X, Y
;ToolTip,
If ActiveTitle = GPS Coords
{
   MouseGetPos, MouseX, MouseY
   Width /= 2
   Height /= 2
   
   
   
   
   Width -= %MouseX%
   Height -= %MouseY%
   Height += 11 ;offset for the mouse due to the Title height
   Height += 83 ;place 0,0 at proper coord on map
   Width += -33  ;Comment the next two line to find what to place in this line and line above
   


   Width /= 3.141592
   Height /= 3.141592
   
   Xcoord = %Width%
   Ycoord = %Height%
;-----------Tell north south east and west value based on coord result
   If Xcoord < 0
   {
      EastWest = East
;      StringTrimRight, Xcoord, %Xcoord%, 1
      
   }
   If Xcoord > 0
   {
      EastWest = West
   }
   If Xcoord = 0
   {
      EastWest =
   }
;----------------------------
   If Ycoord < 0
   {
      NorthSouth = South
;      StringTrimRight, Ycoord, %Ycoord%, 1
   }   
   If Ycoord > 0
   {
      NorthSouth = North
   }
   If Ycoord = 0
   {
      NorthSouth =
   }

   
   
;--------------------------
   ToolTip, GPS COORDS `nLatitude= %EastWest% %Xcoord%`, Longitude= %NorthSouth% %Ycoord%
   Return
}
If ActiveTitle <> GPS Coords
{
   ToolTip,
   Return
}
Else
   Return

;--------RESIZE MAP TO WINDOW SIZE--------

GuiSize:
SetEnv, W, *w%A_GuiWidth%
SetEnv, H, *h%A_GuiHeight%
GuiControl,,Map, %W% %H% C:\Documents and Settings\Owner\My Documents\My Pictures\m-tzone.jpg
Return

;----------RESETS DEFAULT WINDOW SIZE------

!#R:: ;Win+Ctrl+R to resize map to default Size
WinMove, GPS Coords,,,, 1167, 608
Return


GuiClose:
ExitApp



Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2005, 2:57 am 
Offline

Joined: December 28th, 2004, 12:33 am
Posts: 60
The amazing part of this (to me) is that someone actually did it! Hey, loved the ass map, all of them were cool but that was a first for me.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2005, 5:51 am 
yeah I got bored looking for help and decided I might help someone else for a change


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2005, 5:54 am 
Offline

Joined: July 12th, 2004, 3:51 am
Posts: 51
Location: Fife,Wa
jonny wrote:
Apparently you've never been to Minnesota in February. :lol: I had the pleasure of hearing a Siberian complain about the weather here last week.

That's why I got out of Wisconsin, Washington State is much better.
Don


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2005, 6:08 am 
Invalid User wrote:
yeah I got bored looking for help and decided I might help someone else for a change


I'm stuck looking for help as well, I don't see your question, what topic is it?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 13th, 2005, 6:41 am 
There is no topic, I was merly stating I ask for alot of help, and I got bored of asking, and decided to answer


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 27 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey and 68 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group