Search found 12 matches
- 28 Jan 2023, 03:56
- Forum: Ask for Help (v2)
- Topic: ahk2_lib RapidOCR with bitmap buffer
- Replies: 2
- Views: 595
Re: ahk2_lib RapidOCR with bitmap buffer
Works, thanks!
- 27 Jan 2023, 21:40
- Forum: Ask for Help (v2)
- Topic: ahk2_lib RapidOCR with bitmap buffer
- Replies: 2
- Views: 595
ahk2_lib RapidOCR with bitmap buffer
So i have been using wincapture->RapidOcr like this: bm_buf:=wgcp.capture(rect) bm_buf.save("temp.bmp") ocr_str:= ocr.ocr_from_file('temp.bmp', param) I would like to OCR the BitmapBuffer directly, rather than through a file. ocr_str:= ocr.ocr_from_bitmapdata(..) I'm not sure how to convert bm_buf i...
- 22 Jan 2023, 20:06
- Forum: About This Community
- Topic: AutoHotkey v2 Official Release Announcement - Q&A
- Replies: 41
- Views: 23234
Re: AutoHotkey v2 Official Release Announcement
I'm relatively new to this as well, I've arrived at VS Code with the extensions:
AutoHotkey V2 Language Support,
vscode-autohotkey-debug
It seems to work very well and has boosted my productivity. The syntax highlighting, class awareness and debugging are all excellent.
AutoHotkey V2 Language Support,
vscode-autohotkey-debug
It seems to work very well and has boosted my productivity. The syntax highlighting, class awareness and debugging are all excellent.
- 22 Jan 2023, 18:06
- Forum: Ask for Help (v2)
- Topic: Is it possible for a class property to be a reference to a global variable?
- Replies: 3
- Views: 405
Re: Is it possible for a class property to be a reference to a global variable?
Thanks for the concise solution! I had a long thread with ChatGPT over this yesterday. It kept wanting to use a Dllcall to do the dereferencing. I told it I wanted to use the language features only. Today when I provided it with this solution (in the context of the test code above), it agreed and th...
- 22 Jan 2023, 06:53
- Forum: Ask for Help (v2)
- Topic: Is it possible for a class property to be a reference to a global variable?
- Replies: 3
- Views: 405
Is it possible for a class property to be a reference to a global variable?
I have an array of objects (name value pairs) but I'm hoping that the value can be a reference to a global variable, so that modifying the table value changes the global that is used elsewhere in the script. class A{ __New(n,&x){ this.name:=n this.data:=&x } Update(newValue){ this.data := newValue }...
- 15 Jan 2023, 20:12
- Forum: Ask for Help (v2)
- Topic: Does anyone have a good OCR solution with V2?
- Replies: 9
- Views: 2278
Re: Does anyone have a good OCR solution with V2?
Great, the jpg file ocr test works for me! I want to ocr parse the app window to determine the gui layout state before I blindly send mouse clicks to it. This will involve capturing smaller rectangles to test their contents. Does RapidOcr have screen grab capabilities or would ank2_lib/wincapture be...
- 15 Jan 2023, 02:14
- Forum: Ask for Help (v2)
- Topic: Does anyone have a good OCR solution with V2?
- Replies: 9
- Views: 2278
Re: Does anyone have a good OCR solution with V2?
Thanks, looks very promising. Is there a simple usage example(s) anywhere?thqby wrote: ↑14 Jan 2023, 22:23https://github.com/thqby/ahk2_lib/tree/master/RapidOcr
This is a local ocr, which uses CPU for reasoning.
- 14 Jan 2023, 21:44
- Forum: Ask for Help (v2)
- Topic: Does anyone have a good OCR solution with V2?
- Replies: 9
- Views: 2278
Re: Does anyone have a good OCR solution with V2?
I've just tested Vis2 which seems to work. Problem is it's written in V1. I'm new to AHK and it seems only reasonable to do all my coding in V2 which is a more conventional and orthogonal language wise, than V1. V1 seems very idiosyncratic and ad hoc. I'd really rather not deal with it, if possible....
- 14 Jan 2023, 02:47
- Forum: Ask for Help (v2)
- Topic: Does anyone have a good OCR solution with V2?
- Replies: 9
- Views: 2278
Does anyone have a good OCR solution with V2?
My use case is very straight forward. I want to locate very clear and specific text labels in the GUI of an app. They are quite limited in number and where they can appear, size and font is fixed. I'm really hoping for something that works with V2 test scripts out of the box. I'm working with a 3rd ...
- 14 Jan 2023, 02:32
- Forum: Ask for Help (v2)
- Topic: Set and Get mouse cursor (multi monitor)
- Replies: 4
- Views: 1063
Re: Set and Get mouse cursor (multi monitor)
Thanks for the link. They mention the same workaround which is o.k for me.
The "Loop 2" makes it easier on the eyes and to edit the code!
The "Loop 2" makes it easier on the eyes and to edit the code!
- 12 Jan 2023, 02:35
- Forum: Ask for Help (v2)
- Topic: Set and Get mouse cursor (multi monitor)
- Replies: 4
- Views: 1063
Re: Set and Get mouse cursor (multi monitor)
Thanks so much. I still have to workaround the partial move glitch, but its simpler now. It turns out a second move results in the correct position (see code comments...) #Requires AutoHotkey v2.0 #SingleInstance force ;variables for readability WINDOW_TITLE_POS:=[7000,-1550] MULIMODE_MIXER_POS := [...
- 11 Jan 2023, 22:56
- Forum: Ask for Help (v2)
- Topic: Set and Get mouse cursor (multi monitor)
- Replies: 4
- Views: 1063
Set and Get mouse cursor (multi monitor)
I have 3 monitors: 4k LCD to the left, 4k LCD to the right, 3rd HD monitor above the right 4k one. My use case here is to activate gui tabs on an app in the (dedicated) 3rd monitor that is maximized. I found that the only reliable way of moving the mouse was with DllCall("SetCursorPos"... I notice t...