![]() Gdip_SaveBitmapToFile(pict, "check2.AutoHotkey is a free, open-source utility for Windows. Gdip_SaveBitmapToFile(win, "check.bmp", 100) is this just for your own debugging inspection? why create a new needle with each iteration of loop Pict := Gdip_createBitmapFromFile("pic.png") does this file exist in the same folder as script? if you already have the WinId, what is the purpose of this? Hwnd := WinExist("ahk_id 262974") this is extremely limiting (static hWnd) ![]() Ptok := Gdip_startup() why are you starting and stopping with each loop iteration? #Include where is your Include for Gdip_All.ahk? GOD BLESS to anyone who have any ideas or solutions. Does pic.png have to be the same size as the actual image found in the window?Īny kind soul who knows about AHK and GDIP PLEASE HELP, because I have tried everything for the entire day and the image can never be found. Is the picture (pic.png) I took wrong? I got pic.png by taking a screenshot of the window and cropping it and saving it into a png file. Are my parameters for imagesearch wrong? (am i even searching?)Ģ. However, image search still does not work.ġ. I have checked win and pict images and they are not black screen images. This code is to search an image in a window, and it should return instances>=1 (image found). Please bear with me if im asking something stupid. I just started AHK like 2 days ago so im like a newbie. Instances := Gdip_imageSearch(win, pict, xy, 0, 0, 0, 0) Gdip_SaveBitmapToFile(pict, "check2.bmp", 100) Gdip_SaveBitmapToFile(win, "check.bmp", 100) ![]() Pict := Gdip_createBitmapFromFile("pic.png") Win := Gdip_BitmapFromScreen( "hwnd:" hwnd )
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |