Moving the mouse pointer to the cursor

 ̄綄美尐妖づ 提交于 2021-02-08 10:34:44

问题


Is there an autohotkey function which brings the mouse pointer to the active cursor?

(assume that the active window has a active cursor, e.g., in notepad, etc.)


回答1:


MouseMove, A_CaretX, A_CaretY, 0

A_CaretX and A_CaretY are the current X and Y coordinates of the caret (text insertion point). The coordinates are relative to the active window unless CoordMode is used to make them relative to the entire screen. If there is no active window or the caret position cannot be determined, these variables are blank.

https://autohotkey.com/docs/Variables.htm#Misc



来源:https://stackoverflow.com/questions/41206243/moving-the-mouse-pointer-to-the-cursor

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!