![]() ![]() Result := OCR.FromRect(Area.X, Area.Y, Area.W, Area.H) ![]() ^#LButton:: Control+Win+Left Mouse to Select Have you encountered such a problem before? I tried OCR(ImagePutRandomAccessStream(fileName)) which didn't seem to solve the problem, nor did converting it to HBITMAP as an intermediate step. Pinging as well, since I don't have much experience with problems related to images. Have you tried whether it matters how you take the screenshot? That is, do you use some kind of in-game method, normal Print Screen + paste, or screen snipper tool? Are you playing it in window-mode (not in fullscreen) and is the offset related to the window position? Do you have multiple screens with differing DPIs? ![]() This width 1750 pixels seems to also work for resizing screen_big.jpg (1750x900 works). For screen.png I had to resize the width to exactly 1750 pixels to make the problem disappear. However if I change the width back to 1600, then the problem reappears. For example, if I open screen.jpg in Paint and manually resize the width to 1597 pixels or 1603 pixels, and then save, the problem is fixed. The problem seems to be in the size 1600x900. I think this might be a bug on Microsofts part, perhaps in how the image is converted into IRandomAccessStream, or how certain IRandomAccessStream sizes are handled on the OcrEngine part? This is bizarre behavior for which I can't find any explanation from the OCR.ahk library. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |