Mouse position: Difference between revisions

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