I just want to say thanks to @kyuuuri for this very helpful guide, and to @HotKeyIt for such a wonderful tool as AHK_H/compiler!
Thanks!!!
PS. I compiled in VS 2019 and it works as expected.
Search found 56 matches
- 10 Feb 2023, 13:23
- Forum: AutoHotkey_H
- Topic: [Guide] Compiling Ahk_h's source step by step Topic is solved
- Replies: 51
- Views: 48819
- 21 Feb 2022, 04:47
- Forum: Tutorials (v1)
- Topic: jeeswg's DllCall and structs tutorial
- Replies: 6
- Views: 15346
Re: jeeswg's DllCall and structs tutorial
Thank you for this helpful and succinct tutorial!
- 04 Dec 2021, 06:20
- Forum: Scripts and Functions (v1)
- Topic: Airplane Mode Toggle
- Replies: 2
- Views: 1690
Re: Airplane Mode Toggle
@TheDewd, thanks for suggestion, though "Run, ms-settings:network-airplanemode" works only on Win10 (not on Win8.1 which I have)
- 02 Dec 2021, 08:53
- Forum: Scripts and Functions (v1)
- Topic: Airplane Mode Toggle
- Replies: 2
- Views: 1690
Airplane Mode Toggle
I couldn't find script here on forum to toggle Airplane Mode, so I came up with this simple solution, maybe someone will find it useful: 1. Create "GodMode" folder: - Right-Click -> New.. -> Folder - Rename it to "GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}" 2. In GodMode folder, find "Connect to...
- 07 Sep 2021, 10:42
- Forum: KeySharp
- Topic: Keysharp - the resurrection of IronAHK
- Replies: 216
- Views: 94339
Re: Keysharp - the resurrection of IronAHK
@mfeemster
Thanks for clarification! Functions that I need better performance for are mostly math calculations.
Keep up the good work mfeemster, I'll be watching your progress from the fence in the meanwhile
Thanks for clarification! Functions that I need better performance for are mostly math calculations.
Keep up the good work mfeemster, I'll be watching your progress from the fence in the meanwhile
- 07 Sep 2021, 06:19
- Forum: KeySharp
- Topic: Keysharp - the resurrection of IronAHK
- Replies: 216
- Views: 94339
Re: Keysharp - the resurrection of IronAHK
@mfeemster Thanks! I would be glad to test speed of Key# (although I'm not much of a coder). Regarding performance, the guy who was developing IronAHK mentioned once that in his tests IronAHK was able to do math operations 30-40 times faster than AHK, as I understand he was talking about compiled sc...
- 05 Sep 2021, 06:26
- Forum: KeySharp
- Topic: Keysharp - the resurrection of IronAHK
- Replies: 216
- Views: 94339
Re: Keysharp - the resurrection of IronAHK
Will KeySharp scripts (at least compiled one) run much faster than current AHK ones? Forgive me my ignorance
- 15 Jul 2021, 14:07
- Forum: Ask for Help (v1)
- Topic: Does FileOpen load whole file into RAM? Topic is solved
- Replies: 7
- Views: 582
Re: Does FileOpen load whole file into RAM? Topic is solved
@boiler , thanks again!
- 15 Jul 2021, 13:00
- Forum: Ask for Help (v1)
- Topic: Does FileOpen load whole file into RAM? Topic is solved
- Replies: 7
- Views: 582
Re: Does FileOpen load whole file into RAM? Topic is solved
You can tell it how much of the file to read Yes, that's what my script does, it reads only specific part of large file, finding needed location by "table of contents" stored in other file. I just was not sure whether File.Open/Read reads the whole file into RAM and then lets user to read any part ...
- 15 Jul 2021, 08:35
- Forum: Ask for Help (v1)
- Topic: Does FileOpen load whole file into RAM? Topic is solved
- Replies: 7
- Views: 582
Re: Does FileOpen load whole file into RAM? Topic is solved
@mikeyww , @boiler Thank you for answers!
@boiler, so, does File.Read read only needed part of the file from disk, not the whole file?
@mikeyww, my concern is more about the toll it takes on disk (reading large amount of data from disk many times over), and less about speed of the process.
@boiler, so, does File.Read read only needed part of the file from disk, not the whole file?
@mikeyww, my concern is more about the toll it takes on disk (reading large amount of data from disk many times over), and less about speed of the process.
- 15 Jul 2021, 06:36
- Forum: Ask for Help (v1)
- Topic: Does FileOpen load whole file into RAM? Topic is solved
- Replies: 7
- Views: 582
Does FileOpen load whole file into RAM? Topic is solved
Hi folks, I have ~100 files of data weighting about 500MB total, I need to access each of them about dozen times during a day. So I'm wondering, is it worth loading them all (0.5GB) into RAM in the morning, so they can be quickly accessible for the rest of the day. If FileOpen loads whole file into ...
- 22 Mar 2021, 06:12
- Forum: Tutorials (v1)
- Topic: How to optimize the speed of a script as much as possible.
- Replies: 122
- Views: 202694
Re: How to optimize the speed of a script as much as possible.
Re Xtra You are right, part of speed improvement came from use of comma. Same test as above but without commas: t := A_TickCount Loop 100000 Loop 30 a%a_index%++ t := A_TickCount - t tt := A_TickCount Loop 100000 { a1++ a2++ a3++ a4++ a5++ a6++ a7++ a8++ a9++ a10++ a11++ a12++ a13++ a14++ a15++ a16+...
- 20 Mar 2021, 07:39
- Forum: Tutorials (v1)
- Topic: How to optimize the speed of a script as much as possible.
- Replies: 122
- Views: 202694
Optimizing Loop
I was wondering how much "Loop" slows things down. So I tested it in comparison with simple math funcs. Maybe somebody will find this useful in optimizing their scripts. First test, 30 additions of 1 var: t := A_TickCount Loop 100000 Loop 30 a%a_index%++ t := A_TickCount - t tt := A_TickCount Loop 1...
- 16 Sep 2019, 05:37
- Forum: Ask for Help (v1)
- Topic: AHK has problem distinguishing hex numbers Topic is solved
- Replies: 2
- Views: 1018
Re: AHK has problem distinguishing hex numbers Topic is solved
@Nextron
Appreciate!
Appreciate!
- 15 Sep 2019, 05:32
- Forum: Ask for Help (v1)
- Topic: AHK has problem distinguishing hex numbers Topic is solved
- Replies: 2
- Views: 1018
AHK has problem distinguishing hex numbers Topic is solved
Hi folks, I ran into some mysterious thing in AHK: when comparing 2 different hex numbers, ahk treats them as equal: q1 := "0xffffffffe90e1fe2" q2 := "0xffffffff8fb50aba" if (q1 = q2) msgbox, Equal I got these numbers from Winexist() after creating 2 GUI's. Any thoughts on what it means and how to d...
- 08 Jun 2019, 08:17
- Forum: Scripts and Functions (v1)
- Topic: MCode4GCC -- C/C++ to MCode Generator
- Replies: 121
- Views: 53000
Re: MCode4GCC -- C/C++ to MCode Generator
@Helgef
Thanks for the answers!
Thanks for the answers!
- 08 Jun 2019, 07:45
- Forum: Scripts and Functions (v1)
- Topic: MCode4GCC -- C/C++ to MCode Generator
- Replies: 121
- Views: 53000
Re: MCode4GCC -- C/C++ to MCode Generator
I got resulting machine code that is very slow compared to regular AHK code For example: q1 := 3 , q2 := 2 a := A_TickCount Loop 1000 q := DllCall(MCode("2,x64:icgPr8LD"),"int",q1,"int",q2,"cdecl") ; "2,x64:icgPr8LD" = q1*q2 a := A_TickCount-a msgbox %a% ms`n`nAnswer: %q% a := A_TickCount Loop 1000 ...
- 08 Jun 2019, 07:12
- Forum: Scripts and Functions (v1)
- Topic: MCode4GCC -- C/C++ to MCode Generator
- Replies: 121
- Views: 53000
Re: MCode4GCC -- C/C++ to MCode Generator
Thanks for reply Joedf, I installed more blocks for MinGW and TDM, MinGW still refuses to work, but TDM finally works! :=) May I ask you few more things (forgive me if questions are stupid, my level of knowledge here is quite low): 1) Is it possible to convert float/double functions to MCode using y...
- 07 Jun 2019, 10:38
- Forum: Scripts and Functions (v1)
- Topic: MCode4GCC -- C/C++ to MCode Generator
- Replies: 121
- Views: 53000
Re: MCode4GCC -- C/C++ to MCode Generator
Okay... weird I just tested with tdm64-gcc-5.1.0-2... and no issues at all... :think: When you select compiler (with tdm64-gcc), what file and in what folder do you select? When I select C:\TDM-GCC-64\bin\g++.exe (or gcc.exe or x86_64-w64-mingw32-g++.exe), error log tells me that g++.exe: error: Cr...
- 07 Jun 2019, 10:28
- Forum: Scripts and Functions (v1)
- Topic: MCode4GCC -- C/C++ to MCode Generator
- Replies: 121
- Views: 53000
Re: MCode4GCC -- C/C++ to MCode Generator
Hi Joedf, could you please tell me what Im doing wrong here: Simple C function like "return 42" compiles with MCode4GCC+MinGW and returns correct result (42) just fine. Also when I use machine code from your examples (like "2,x64:M8A4AXQKSP/B/8CAOQB19vPD" for string length), MCode() func also return...