maul-esel / ahkbook

a free online book about AutoHotkey!
http://maul-esel.github.com/ahkbook/index.html
Other
39 stars 22 forks source link

Add section #9

Closed Uberi closed 12 years ago

Uberi commented 12 years ago

I couldn't figure out how to reopen it either :/.

Anyways, I added a section about using A_PtrSize to calculate offsets portably, and added a contributor entry.

Uberi commented 12 years ago

Done.

Uberi commented 12 years ago

Link added. Anything else?

maul-esel commented 12 years ago
Uberi commented 12 years ago

Sentence 3 seems to be missing a verb.

It is, nice catch.

not sure whether the struct definition should be highlighted?

Probably not, considering that C++ code highlighting might confuse people who expect the sample to be AHK code. If you think there should be highlighting though, feel free to add it - I'm not sure how to have it highlight C++.

the 1st line under "pointer types" has an unescaped * (escape with backslash)

I've escaped it, as well as the other one under Arrays.

It should be noted that A_PtrSize exists only in AutoHotkey_L, AutoHotkey_H, AutoHotkey v2 and AutoHotkey_H v2 (or simply and newer).

I used "or similarly recent versions" to describe all these different version of AutoHotkey, since "and newer" implies hierarchy.

maul-esel commented 12 years ago

OK. Should I merge now?

Uberi commented 12 years ago

If you don't see any other issues, that'd be great.

maul-esel commented 12 years ago

Done. Thanks again!

maul-esel commented 12 years ago

While writing on the DllCall page it comes to my mind it might possibly be better to split the "type mapping" part and put it either on the DllCall page or in a separate page.

Also, what do you think of adding a more complex example? As I use MessageBox for DllCalls, I thought of MessageBoxIndirect.

Uberi commented 12 years ago

While writing on the DllCall page it comes to my mind it might possibly be better to split the "type mapping" part and put it either on the DllCall page or in a separate page.

How about a page describing types in AHK, generally? Like Object/String/Integer/Float, and how these map to "machine" types?

Also, what do you think of adding a more complex example? As I use MessageBox for DllCalls, I thought of MessageBoxIndirect.

I believe MessageBoxIndirect is a function as well. I think you meant MSGBOXPARAMS. In any case, I'm a bit busy lately but that would be a great thing to have.

maul-esel commented 12 years ago

How about a page describing types in AHK, generally? Like Object/String/Integer/Float, and how these map to "machine" types?

+1. I probably would put this right before DllCalls.

maul-esel commented 12 years ago

How about a page describing types in AHK, generally? Like Object/String/Integer/Float, and how these map to "machine" types?

+1. I probably would put this right before DllCalls.