将鼠标指针移动到光标 [英] Moving the mouse pointer to the cursor

查看:69
本文介绍了将鼠标指针移动到光标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一个自动热键功能可以将鼠标指针移到活动光标上?

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.)

推荐答案

MouseMove, A_CaretX, A_CaretY, 0

A_CaretX A_CaretY 插入符(文本插入点)的当前X和Y坐标.坐标是相对于活动窗口的,除非使用CoordMode使其相对于整个屏幕.如果没有活动窗口或无法确定插入符号的位置,则这些变量为空白.

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

这篇关于将鼠标指针移动到光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆