【发布时间】:2019-12-18 07:58:29
【问题描述】:
我正在尝试在屏幕上找到透明图像。但它找不到图片,因为它的边缘是透明的。有什么解决方法吗?它可能喜欢图书馆或win api。可能是我用错了。
CoordMode, Pixel, Screen
ImageSearch, FoundX, FoundY, 0,0, A_ScreenWidth, A_ScreenHeight,*50 *TransBlack C:\Users\PC\Desktop\light_PNG14440.png
if (ErrorLevel = 2)
MsgBox Could not conduct the search.
else if (ErrorLevel = 1)
MsgBox Icon could not be found on the screen.
else
MsgBox The icon was found at %FoundX%x%FoundY%.
我希望输出为The icon was found at 100x100.,但实际输出为Icon could not be found on the screen.。
【问题讨论】:
标签: image-processing png autohotkey transparent