이미지 좌표는 찾는거 같은데 클릭을 못하는데 왜 그럴까요
녹스플레이어에서는 이미지 클릭 잘하는데 엘디플은 안먹히네요...
#Include Gdip.ahk
#Include Gdip_ImageSearch.ahk
#Include Search_img.ahk
gui,show,w100 h100 center,chapter11
gui,Add,Button,x0 y0 w100 h50 gStart,Start
gui,Add,Button,x0 y50 w100 h50 gStop,Stop
PostClick(FoundX,FoundY){
lparam:=FoundX|FoundY<<16
PostMessage,0x200,1,%lparam%,,LDPlayer
PostMessage,0x201,1,%lparam%,,LDPlayer
PostMessage,0x202,0,%lparam%,,LDPlayer
Sleep, 1000
}
Start:
gui,Submit,NoHide
WinGet,NOX,ID,LDPlayer
{Loop
{if(Search_img("1.bmp",NOX,X,Y))
PostClick(X,Y)
sleep, 1000
if(Search_img("2.bmp",NOX,X,Y))
PostClick(X,Y)
sleep, 1000
}
}
}
return
Stop:
ExitApp
return
GuiClose:
ExitApp
return