检测到 Intellisense 工具提示未显示
Detect that the Intellisense tooltip didn't show up
我正在使用 AutoHotkey 通过使用 Ctrl+Space 来显示智能提示工具。当无法列出更多成员时,Ctrl+Space 不再显示工具提示,当出现这种情况时,我希望能够检测到它并停止我的脚本。
我考虑过使用插入符号位置的偏移来检测与扳手图标颜色匹配的像素颜色,但不幸的是,AutoHotkey 似乎无法给出来自 visual studio 的插入符号位置。我也尝试过使用图像和像素搜索,但没有成功:
使用这张图片和这段代码
ImageSearch, OutputVarX, OutputVarY, 0, 0, 1920, 1080, C:\Users\slariviere\Pictures\wrench.jpg
我也试过寻找与间谍的区别window。当我的鼠标在 VS 背景上时,第一张图片显示 class。
当我的鼠标悬停在 Intellisense 工具提示上时,我没有 class,我可以利用它吗?
还有其他我可以使用的 AutoHotkey 功能吗?
或者有没有其他方法可以检测 visual studio 中剩余的 class 属性?
MCL 解决方案对我有用:
Try saving the wrench symbol in a lossless format (e.g. BMP/PNG),
this will increase the chances of ImageSearch finding it. Also, try to
crop it as much as possible, so the (white) border is as small as
possible.
我将文件另存为 PNG,我使用的图像是 以区分工具提示和使用该图像的其他地方。
我正在使用 AutoHotkey 通过使用 Ctrl+Space 来显示智能提示工具。当无法列出更多成员时,Ctrl+Space 不再显示工具提示,当出现这种情况时,我希望能够检测到它并停止我的脚本。
我考虑过使用插入符号位置的偏移来检测与扳手图标颜色匹配的像素颜色,但不幸的是,AutoHotkey 似乎无法给出来自 visual studio 的插入符号位置。我也尝试过使用图像和像素搜索,但没有成功:
使用这张图片
ImageSearch, OutputVarX, OutputVarY, 0, 0, 1920, 1080, C:\Users\slariviere\Pictures\wrench.jpg
我也试过寻找与间谍的区别window。当我的鼠标在 VS 背景上时,第一张图片显示 class。
当我的鼠标悬停在 Intellisense 工具提示上时,我没有 class,我可以利用它吗?
还有其他我可以使用的 AutoHotkey 功能吗? 或者有没有其他方法可以检测 visual studio 中剩余的 class 属性?
MCL 解决方案对我有用:
Try saving the wrench symbol in a lossless format (e.g. BMP/PNG), this will increase the chances of ImageSearch finding it. Also, try to crop it as much as possible, so the (white) border is as small as possible.
我将文件另存为 PNG,我使用的图像是