[AHK-] 抓取滑鼠相對視窗座標
請問該如何 取得 目前視窗 的相對座標
也就是 Windows Spy 的 In Active Window
#C::
;ControlClick, x1214 y128 , %active_title% , , , , NA
;MouseGetPos, xpos, ypos
WinGetPos, X, Y, Width, Height, Calculator
MsgBox, Calculator is at %X%`,%Y%
ArrayCount += 1 ; Keep track of how many items are in the array.
ArrayX%ArrayCount% = %X% ; Store this line in the next array element.
ArrayY%ArrayCount% = %Y%
Return
不知道為什麼這樣取出來的數值都怪怪的
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 112.104.133.246
→
05/28 09:04, , 1F
05/28 09:04, 1F
EzHotKey 近期熱門文章
PTT數位生活區 即時熱門文章