C++: AHK source code: where is it located?

Talk about things C/C++, some related to AutoHotkey
User avatar
jeeswg
Posts: 6904
Joined: 19 Dec 2016, 01:58
Location: UK

C++: AHK source code: where is it located?

16 Nov 2018, 09:26

I have done a read-through of the AHK source code.

I have identified the locations of key parts of the source code in other threads:
AutoHotkey C++ Powerhouse: Introduction - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 23&t=54394
C++ for AutoHotkey: list of command/function locations etc - AutoHotkey Community
https://autohotkey.com/boards/viewtopic ... 23&t=55399

But I have some queries. Thanks for any help. I am looking for:

point where (general):
- AHK starts [is it: AutoHotkey.cpp] [what is the first line of code executed?]
- AHK ends [is it: script.cpp: Script::TerminateApp]
- script parsed (e.g. commands/functions) [is it: script.cpp: Script::LoadFromFile]
- (what lines of code are running while the script is 'doing nothing')

point where (specific):
- hotkeys identified [is it: script.cpp: Script::LoadFromFile] [but more specifically]
- hex numbers identified (e.g. 0xFFFF)
- variable capacity doubled (e.g. when appending text)
- AHK objects binary lookup [are pre-existing C++ array types used at all?]

point where (I think I found it):
- ahk_XXX parsed [window.cpp: WindowSearch::SetCriteria]
- command-line arguments parsed [AutoHotkey.cpp: A_Args]
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
iseahound
Posts: 478
Joined: 13 Aug 2016, 21:04
GitHub: iseahound

Re: C++: AHK source code: where is it located?

28 Nov 2018, 14:55

+1 I'd like to know this too. It would help when I take a look at the AHK source someday.
User avatar
nnnik
Posts: 4329
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: C++: AHK source code: where is it located?

29 Nov 2018, 03:46

You can find the lookup at script_object.cpp:FindField
Recommends AHK Studio
User avatar
jeeswg
Posts: 6904
Joined: 19 Dec 2016, 01:58
Location: UK

Re: C++: AHK source code: where is it located?

02 Dec 2019, 23:45

Re. where it starts: the 'main' function is called _tWinMain, which corresponds to wWinMain (Unicode) or WinMain (ANSI). See tchar.h.

Link:
Can't Understand Source Code - AutoHotkey Community
https://autohotkey.com/boards/viewtopic.php?f=5&t=65399
homepage | tutorials | wish list | fun threads | donate
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA

Return to “C/C++”

Who is online

Users browsing this forum: No registered users and 2 guests