Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Mouse-position/AutoHotkey/mouse-position-1.ahk
Normal file
5
Task/Mouse-position/AutoHotkey/mouse-position-1.ahk
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#i:: ; (Optional) Assigns a hotkey to display window info, Windows+i
|
||||
MouseGetPos, x, y ; Gets x/y pos relative to active window
|
||||
WinGetActiveTitle, WinTitle ; Gets active window title
|
||||
Traytip, Mouse position, x: %x%`ny: %y%`rWindow: %WinTitle%, 4 ; Displays the info as a Traytip for 4 seconds
|
||||
return
|
||||
14
Task/Mouse-position/AutoHotkey/mouse-position-2.ahk
Normal file
14
Task/Mouse-position/AutoHotkey/mouse-position-2.ahk
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
GetCursorPos()
|
||||
{
|
||||
static POINT, init := VarSetCapacity(POINT, 8, 0) && NumPut(8, POINT, "Int")
|
||||
if (DllCall("User32.dll\GetCursorPos", "Ptr", &POINT))
|
||||
{
|
||||
return, { 0 : NumGet(POINT, 0, "Int"), 1 : NumGet(POINT, 4, "Int") }
|
||||
}
|
||||
}
|
||||
GetCursorPos := GetCursorPos()
|
||||
|
||||
MsgBox, % "GetCursorPos function`n"
|
||||
. "POINT structure`n`n"
|
||||
. "x-coordinate:`t`t" GetCursorPos[0] "`n"
|
||||
. "y-coordinate:`t`t" GetCursorPos[1]
|
||||
14
Task/Mouse-position/AutoHotkey/mouse-position-3.ahk
Normal file
14
Task/Mouse-position/AutoHotkey/mouse-position-3.ahk
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
GetPhysicalCursorPos()
|
||||
{
|
||||
static POINT, init := VarSetCapacity(POINT, 8, 0) && NumPut(8, POINT, "Int")
|
||||
if (DllCall("User32.dll\GetPhysicalCursorPos", "Ptr", &POINT))
|
||||
{
|
||||
return, { 0 : NumGet(POINT, 0, "Int"), 1 : NumGet(POINT, 4, "Int") }
|
||||
}
|
||||
}
|
||||
GetPhysicalCursorPos := GetPhysicalCursorPos()
|
||||
|
||||
MsgBox, % "GetPhysicalCursorPos function`n"
|
||||
. "POINT structure`n`n"
|
||||
. "x-coordinate:`t`t" GetPhysicalCursorPos[0] "`n"
|
||||
. "y-coordinate:`t`t" GetPhysicalCursorPos[1]
|
||||
Loading…
Add table
Add a link
Reference in a new issue