Mouse position: Difference between revisions

Content deleted Content added
Line 126: Line 126:
Traytip, Mouse position, x: %x%`ny: %y%`rWindow: %WinTitle%, 4 ; Displays the info as a Traytip for 4 seconds
Traytip, Mouse position, x: %x%`ny: %y%`rWindow: %WinTitle%, 4 ; Displays the info as a Traytip for 4 seconds
return</lang>
return</lang>
===with DllCall===
with User32.dll\GetCursorPos
Source: [https://github.com/jNizM/AHK_DllCall_WinAPI/ GetCursorPos @github] by jNizM
<lang AutoHotkey>GetCursorPos()
<lang AutoHotkey>GetCursorPos()
{
{
Line 141: Line 142:
. "x-coordinate:`t`t" GetCursorPos[0] "`n"
. "x-coordinate:`t`t" GetCursorPos[0] "`n"
. "y-coordinate:`t`t" GetCursorPos[1]</lang>
. "y-coordinate:`t`t" GetCursorPos[1]</lang>
with User32.dll\GetPhysicalCursorPos
Source: [https://github.com/jNizM/AHK_DllCall_WinAPI/ GetPhysicalCursorPos @github] by jNizM
<lang AutoHotkey>GetPhysicalCursorPos()
<lang AutoHotkey>GetPhysicalCursorPos()
{
{