Search found 26 matches
- 12 Aug 2023, 12:06
- Forum: Ask for Help (v2)
- Topic: GDI+ Library in V2 Topic is solved
- Replies: 22
- Views: 3541
Re: GDI+ Library in V2 Topic is solved
Why do you think so?
- 02 Aug 2023, 13:13
- Forum: Ask for Help (v2)
- Topic: GDI+ Library in V2 Topic is solved
- Replies: 22
- Views: 3541
Re: GDI+ Library in V2 Topic is solved
I guess x, y, w or h is not a float number. You can check by adding temporary code before NumPut like this: if (!IsFloat(x) || !IsFloat(y) || !IsFloat(w) || !IsFloat(h) { MsgBox("Received not a float value: x=" x " y=" y " w=" w " h=" h) } EDIT: Actually AHK documentation says that NumPut number val...
- 05 Jul 2023, 07:09
- Forum: Ask for Help (v2)
- Topic: GDI+ Library in V2 Topic is solved
- Replies: 22
- Views: 3541
Re: GDI+ Library in V2 Topic is solved
Added, thanks
- 01 Jul 2023, 18:01
- Forum: Ask for Help (v2)
- Topic: GDI+ Library in V2 Topic is solved
- Replies: 22
- Views: 3541
Re: GDI+ Library in V2 Topic is solved
This one is to free resource loaded in Gdip_Startup() by LoadLibrary . You can read more about all of LoadLibrary , FreeLibrary and GetModuleHandle here . I have just pushed some fix. The LoadLibrary was conditional, so if it it was not executed then FreeLibrary should not be called either in case m...
- 01 Jul 2023, 13:51
- Forum: Ask for Help (v2)
- Topic: GDI+ Library in V2 Topic is solved
- Replies: 22
- Views: 3541
Re: GDI+ Library in V2 Topic is solved
Hi Spitzi , for the 0xc0000005 exception I'm guessing it happens sporadically when some resource in your memory gets freed before you use it. It may be memory released by AHK or by Windows or maybe GDI+ even. You can try checking if your code may prevent it or catch the exception and retry if that's...
- 14 Jun 2023, 07:22
- Forum: Ask for Help (v2)
- Topic: GDI+ Library in V2 Topic is solved
- Replies: 22
- Views: 3541
- 16 May 2023, 07:31
- Forum: Ask for Help (v2)
- Topic: GDI+ Library in V2 Topic is solved
- Replies: 22
- Views: 3541
Re: GDI+ Library in V2 Topic is solved
Thank you for pointing this out. I've just merged fixed version. The String(coords) would throw an Error when executed.
- 19 Apr 2023, 20:01
- Forum: Scripts and Functions (v2)
- Topic: Snipper - Window Snipping Tool
- Replies: 125
- Views: 28285
Re: Snipper - Window Snipping Tool
I really wish I could find a good GDIp library for v2, especially a class or object based one. ... @buliasz v2 is years old. I have just pushed changes that I made since last version in case you'd like to use it. It is compatible with AHK v2.0.2 but be aware that I didn't verify all the functions t...
- 19 Dec 2021, 20:16
- Forum: Ask for Help (v1)
- Topic: OCR Challenge
- Replies: 5
- Views: 926
Re: OCR Challenge
To improve Tesseract OCR results for your task, you can use my Tesstrain GUI to train Tesseract languages so that it will return proper values. Here's the code (AHK v2) and a compiled executable: https://github.com/buliasz/tesstrain-windows-gui
- 19 Dec 2021, 20:10
- Forum: Scripts and Functions (v1)
- Topic: Vis2 - Image to Text OCR()
- Replies: 329
- Views: 161283
Re: Vis2 - Image to Text OCR()
Actually there is AHKv2 version of the `Gdip_All.ahk`, you can grab it from my GitHub: https://github.com/buliasz/AHKv2-Gdip BTW for Tesseract I've also created GUI to train languages. You can use it to train your language to improve it's results. Here's the code (AHK v2) and a compiled executable: ...
- 19 Oct 2021, 07:27
- Forum: Scripts and Functions (v2)
- Topic: JSON Serializer - 2022/09/07 - beta.8
- Replies: 43
- Views: 19083
Re: JSON Serializer - 2021/06/21 - beta.1
First of all thank you for your work TheArkive ! I have created a fork that is able to serialize/deserialize non-Map/non-Array Objects as well. The limitation is for Classes to have constructor that is able to be executed without parameters, which is used in deserializer to create it's objects. You ...
- 18 Oct 2021, 11:00
- Forum: Announcements
- Topic: AutoHotkey v2.0-beta.1
- Replies: 47
- Views: 26307
Re: AutoHotkey v2.0-beta.1
Thank you, I haven't been here for a while and didn't even know such forum was created. Sorry for posting in a wrong topic.safetycar wrote: ↑18 Oct 2021, 08:49And some people is already discussing a bug related to loop until the bugs section: viewtopic.php?f=14&t=95703
- 17 Oct 2021, 19:51
- Forum: Announcements
- Topic: AutoHotkey v2.0-beta.1
- Replies: 47
- Views: 26307
Re: AutoHotkey v2.0-beta.1
I'm not sure if the beta.2 is official, but it is available at the download page: https://www.autohotkey.com/download/2.0/?C=M;O=D Anyway there's a bug in loop - until routines for example this loop will never finish: loop { testFlag := true MsgBox(testFlag " " (testFlag ? "true" : "false")) } until...
- 26 Jul 2021, 19:25
- Forum: Scripts and Functions (v1)
- Topic: Taskbar "Automatically hide the taskbar in desktop mode"
- Replies: 2
- Views: 2873
Re: Taskbar "Automatically hide the taskbar in desktop mode"
I've just created simple toggle autohide function based on the above (always on top is ignored anyway in new OSes). Bound to Win+T in my case. It is AHK v2 code: #t:: ToggleTaskbar() ToggleTaskbar() { ABM_GETSTATE := 4 ABM_SETSTATE := 10 is32bit := (A_PtrSize == 4) buff := BufferAlloc(is32bit ? 36 :...
- 21 Jul 2020, 19:49
- Forum: Gaming Help (v1)
- Topic: Slow script; long if else statements and PixelGetColor. Can anyone help?
- Replies: 19
- Views: 3600
Re: Slow script; long if else statements and PixelGetColor. Can anyone help?
If you want really fast PixelGetColor function you can use my Gdip_Toolbox.ahk with Gdip adapted to AHKv2. Here is my GitHub fork Gdip sources: https://github.com/buliasz/AHKv2-Gdip Just download those two files: Gdip_All.ahk and Gdip_Toolbox.ahk , include Gdip_Toolbox.ahk and use the GetPixelColorB...
- 27 Jun 2020, 20:05
- Forum: Ask for Help (v2)
- Topic: GuiObject __Item documentation needs update Topic is solved
- Replies: 2
- Views: 2432
Re: GuiObject __Item documentation needs update Topic is solved
Oh... you are right!
I've misunderstood the new logic of Gui
Sorry for false alarm.
I've misunderstood the new logic of Gui
Sorry for false alarm.
- 23 Jun 2020, 23:10
- Forum: Ask for Help (v2)
- Topic: GuiObject __Item documentation needs update Topic is solved
- Replies: 2
- Views: 2432
GuiObject __Item documentation needs update Topic is solved
In the documentation (build a112) for the GuiObject there is this part: __Item Retrieves the GuiControl object associated with the specified name, text, ClassNN or HWND. GuiCtrlObj := Gui[Name] But it actually doesn't work. One of Gui.Add options parameters is this: V: Sets the control's Name. Speci...
- 31 Oct 2019, 19:29
- Forum: AutoHotkey Development
- Topic: Map shorthand
- Replies: 71
- Views: 32840
Re: Map shorthand
In my opinion "key": "value" syntax is most readable one for maps (with colon in the middle), so I would use something like this:
Or this:
Code: Select all
map := [
"key1" : "value1",
"key2" : "value2",
...
]
Code: Select all
map := Map() {
"key1": "value1",
"key2": "value2",
...
}
- 05 Aug 2018, 14:02
- Forum: Gaming Help (v1)
- Topic: Volume Control on PC Windows 10
- Replies: 62
- Views: 70347
Re: Volume Control on PC Windows 10
Just in case someone looks for AHK v.2 version of a volume control code. This one uses system maintenance of Volume keys, but you can simply adjust it to increase/decrease volume in your selected granularity, just by using for example SoundSet("+1") or SoundSet("-1") (for granularity 1) instead of t...
- 29 Jan 2018, 04:15
- Forum: AutoHotkey Development
- Topic: Object declaration syntax Topic is solved
- Replies: 20
- Views: 7820
Re: Object declaration syntax Topic is solved
That was quick! Thanks.