imagesearch,x,y,0,0,0,0, *60 이미지.png
if(errorlevel=0)
{
msgbox, 이미지 찾음
}
else
{
msgbox, 이미지 못찾음
return
}
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
#Include Gdip.ahk
#include Gdip_ImageSearch.ahk
F2::

pToken:=Gdip_Startup()
pBitmapHayStack:=Gdip_BitmapFromhwnd(calc)
pBitmapNeedle:=Gdip_CreateBitmapFromFile(이미지.png) 

if Gdip_ImageSearch(calc,이미지.png,list,0,0,0,0,60,,1,1) 
{
StringSplit, AArray, A, `, 
vx:=AArray1
vy:=AArray2
msgbox, 이미지 찾음
Gdip_DisposeImage(pBitmapHayStack), Gdip_DisposeImage(pBitmapNeedle)
Gdip_Shutdown(pToken)
return
}
else 
{
msgbox, 못찾음
Gdip_DisposeImage(pBitmapHayStack), Gdip_DisposeImage(pBitmapNeedle)
Gdip_Shutdown(pToken)
return
}
ㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡㅡ
위에있는 활성서치를 비활성서치를 변경하면 밑에처럼 되는건가요???
그런데 왜 밑에꺼는 실행시키면 계속 "이미지 찾음"이라는 메세지박스만 뜨는걸까요??

답글