Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

How to know the X Y coordinate of my screen...


  • Please log in to reply
4 replies to this topic
deathlemon
  • Members
  • 8 posts
  • Last active: Jan 06 2012 04:06 PM
  • Joined: 30 Dec 2011
I saw many scripts show this word
"Click 150, 80" look like it mean to click at X150 and Y80

I want to know how to get this value ?

Thanks

tomoe_uehara
  • Members
  • 2166 posts
  • Last active: Jun 11 2015 05:33 PM
  • Joined: 05 Sep 2009
Look into your AutoHotkey installation folder and run AU3_spy.exe.
or..

CoordMode, Mouse, Screen
SetTimer, Check, 20
return

Check:
MouseGetPos, xx, yy
Tooltip %xx%`, %yy%
return

Esc::ExitApp


Leef_me
  • Moderators
  • 8510 posts
  • Last active: Sep 10 2015 05:50 AM
  • Joined: 08 Apr 2009
Our scripts give you the location of the mouse pointer.

I like to set all the things that are related to coordinates to the same 'mode'
Then I can swap them all at once by changing the 1 to 0 in the 'if' command.

Otherwise, my script is the same as that of "tomoe_uehara"
#singleinstance force
#Persistent

if 1	; screen coordinates
  coord=screen
else
  coord=relative
tooltip, %coord%
sleep, 1000

CoordMode, ToolTip, %coord%
CoordMode, Pixel, %coord%
CoordMode, Mouse, %coord%
CoordMode, Caret, %coord%
CoordMode, Menu, %coord%

SetTimer, WatchCursor, 100
return

WatchCursor:
MouseGetPos,xpos , ypos 
ToolTip, xpos: %xpos%`nypos: %ypos%
return

esc::exitapp

f12::reload


deathlemon
  • Members
  • 8 posts
  • Last active: Jan 06 2012 04:06 PM
  • Joined: 30 Dec 2011
Both script above are very useful

Thanks :D

badchicken
  • Members
  • 77 posts
  • Last active: Apr 16 2016 10:58 AM
  • Joined: 22 Nov 2012

Look into your AutoHotkey installation folder and run AU3_spy.exe.
or..

CoordMode, Mouse, Screen
SetTimer, Check, 20
return

Check:
MouseGetPos, xx, yy
Tooltip %xx%`, %yy%
return

Esc::ExitApp

i love u