61줄에 있는 RET :=에서 Error: Call to nonexistent function 라고뜹니다 제가 보기에는 함수를 부를수 없다는거 같은데 어디가 문제인지 좀 알려주세요..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 | #Include Gdip.ahk SkinForm(Apply, A_ScriptDir . "\USkin.dll", A_ScriptDir . "\Milikymac.msstyles") getlog(a) { gui,submit,nohide global 로그넘버 로그넘버 ++ b=%로그넘버% guicontrol,,로그,%A_mon%/%A_MDay% %A_Hour%:%A_Min%:%A_Sec% %a%|| FileAppend,[%A_mon%/%A_MDay% %A_Hour%:%A_Min%:%A_Sec%][%a%]`n, log.txt } ;로그기록 함수 ▲ SkinForm(Param1 = "Apply", DLL = "", SkinName = "") { if(Param1 = Apply) { DllCall("LoadLibrary", str, DLL) DllCall(DLL . "\USkinInit", Int,0, Int,0, AStr, SkinName) } else if(Param1 = 0) { DllCall(DLL . "\USkinExit") } } ;스킨 함수 ▲ Click(x, y) { IParam := x|y<<16 WinGet, ActiveID, ID, BlueStacks App Player PostMessage, 0x201, 1, %IParam%, , ahk_id %ActiveID% PostMessage, 0x202, 0, %IParam%, , ahk_id %ActiveID% } Send(Key) { WinGet, ActiveID, ID, BlueStacks App Player PostMessage, 0x100, 0x1B, 0x10001, , ahk_id %ActiveID% PostMessage, 0x101, 0x1B, 0xC0010001, , ahk_id %ActiveID% sleep,500 } Gdip_ImageSearchWithHwnd(Hwnd,Byref X,Byref Y,Image,Variation=0,Trans="",sX = 0,sY = 0,eX = 0,eY = 0) { SysGet, wFrame, 7 SysGet, wCaption, 4 gdipToken := Gdip_Startup() bmpHaystack := Gdip_BitmapFromHwnd(Hwnd) bmpNeedle := Gdip_CreateBitmapFromFile(Image) if( sX!= 0 || sY!= 0 || eX!= 0 || eY != 0) { sX := sX + wFrame sY := sY + wCaption + wFrame eX := eX + wFrame eY := eY + wCaption + wFrame } RET := Gdip_ImageSearch(bmpHaystack,bmpNeedle,LIST,sX,sY,eX,eY,Variation,Trans,1,1) Gdip_DisposeImage(bmpHaystack) Gdip_DisposeImage(bmpNeedle) Gdip_Shutdown(gdipToken) StringSplit, LISTArray, LIST, `, X := LISTArray1 - wFrame Y := LISTArray2 - wCaption - wFrame ;GuiControl,,로그, %bmpHaystack%||%bmpNeedle%||%RET% msgbox, %bmpHaystack%,%bmpNeedle%,%RET% if(RET = 1) { return true } else { return false } } IsImageCheck(ByRef ClickX, ByRef ClickY, CKImage, errorRange, trans, sX = 0, sY = 0, eX = 0, eY = 0) { WinGet, Title, ID, BlueStacks App Player If(Gdip_ImageSearchWithHwnd(Title, ClickX, ClickY, CKImage, errorRange, trans, sX, sY, eX, eY)) { return true } } ;Gdip 함수 ▲ Button작동: If(IsImageCheck(ClickX, ClickY, "이미지\main.bmp",60,0)) { msgbox, 찾음 } return GuiClose: ExitApp | cs |
아. 뻘짓했네요. ㅎㅎㅎ
gdip_imagesearch.ahk 가 인크루드 안되서 생기는 문제인데
함수 문제인줄 알고 여기저기 살펴보고 테스트했네요