Search found 4 matches

by Serj-Lewa
18 Oct 2023, 12:07
Forum: Scripts and Functions (v2)
Topic: Easy OCR
Replies: 160
Views: 43173

Re: Easy OCR

If you are running the game in an emulator, why not use OCR.FromWindow (with onlyClientArea:=1) instead? Then you can use Click/ControlClick/MouseMove etc relative to the client and all the coordinates should be correct. I tried, and coords are really correct! I there a way to extract text from min...
by Serj-Lewa
18 Oct 2023, 04:26
Forum: Scripts and Functions (v2)
Topic: Easy OCR
Replies: 160
Views: 43173

Re: Easy OCR

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 w...
by Serj-Lewa
17 Oct 2023, 17:10
Forum: Scripts and Functions (v2)
Topic: Easy OCR
Replies: 160
Views: 43173

Re: Easy OCR

Hello! Have some weird results with OCR.FromFile(). I have a set of files (attached): screen.png - Original image. screen.jpg - Original image converted to JPG. screen_big.jpg - Original image with white margins on the bottom and right and converted to JPG. I have a script that searches for the word...
by Serj-Lewa
07 Oct 2023, 01:17
Forum: Ask for Help (v2)
Topic: "With statement" in AHK? Topic is solved
Replies: 2
Views: 413

"With statement" in AHK? Topic is solved

Is there any way to omit object name if it has to be used several times? Like With Statement in VBA.

Like:

Code: Select all

MyObjectWithLongName:={a:1,b:2}
With MyObjectWithLongName {
  c:=.a+.b
  }

Go to advanced search