"Built-in Structure types" Topic is solved

Post AHK_H specific scripts & libraries and discuss the usage and development of HotKeyIt's fork/branch
User avatar
Cuadrix
Posts: 236
Joined: 07 May 2017, 08:26

"Built-in Structure types"

26 Sep 2019, 13:46

Can they also be used with DllCalls/WinApi?
https://hotkeyit.github.io/v2/docs/StructTypes.htm
https://hotkeyit.github.io/v2/docs/commands/WinApi.htm
Eg.

Code: Select all

MessageBox(HWND 0, LPCTSTR "Description", LPCTSTR "Title", UINT 0)
The above seems working. Is that a coincidence or a good feature :morebeard:
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: "Built-in Structure types"  Topic is solved

26 Sep 2019, 13:57

ure concatenating empty variables

and this is needed... why? u already dont have to specify types for imported winapi functions

Code: Select all

MessageBox(0, "Description", "Title", 0) ; same thing
u still have to for any other dllcalls
User avatar
Cuadrix
Posts: 236
Joined: 07 May 2017, 08:26

Re: "Built-in Structure types"

26 Sep 2019, 13:59

Thought so. So that means I can still use those empty variables for clarity sake :mrgreen:
swagfag
Posts: 6222
Joined: 11 Jan 2017, 17:59

Re: "Built-in Structure types"

26 Sep 2019, 14:01

maybe, maybe not. i wouldnt personally. who knows what implicit concatenation of empty vars with pure numerics might end up doing
HotKeyIt
Posts: 2364
Joined: 29 Sep 2013, 18:35
Contact:

Re: "Built-in Structure types"

26 Sep 2019, 14:56

These Structure types are for Struct() definition.
I would not use them that way, just make a comment if you need it:

Code: Select all

MessageBox( 0, "Description", "Title", 0) ;HWND, LPCTSTR, LPCTSTR, UINT

Return to “AutoHotkey_H”

Who is online

Users browsing this forum: No registered users and 49 guests