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

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: C++: AHK source code: where is it located?

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

by jeeswg » 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

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

by nnnik » 29 Nov 2018, 03:46

You can find the lookup at script_object.cpp:FindField

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

by iseahound » 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.

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

by jeeswg » 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]

Top