[?] Can someone give me a rundown on how to include machine code in my script?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
SandyClams
Posts: 63
Joined: 02 Jul 2020, 11:55

[?] Can someone give me a rundown on how to include machine code in my script?

31 Jan 2022, 20:53

I've read about it in various places across these boards and the old archived ones, but different people over time have seemed to be using different hacky ways of doing the thing, and I'd like to get to the bottom of it. I would appreciate as much clarification as possible!

I'm trying to get from written C code to a written AHK script. Currently the loose picture I have is telling me.... export my C functions like a DLL, compile to object code, slap my object code directly into a DllCall, maybe convert to hex before I do it? Do I have the general idea? If someone could walk me through this like a baby, that would be very handy for me :D
SOTE
Posts: 1426
Joined: 15 Jun 2015, 06:21

Re: [?] Can someone give me a rundown on how to include machine code in my script?

01 Feb 2022, 09:12

An easier way is to #Include the DLL or add it as a resource. Then use DllCall in the script.

Another alternative is this newer method (MCL)- viewtopic.php?style=17&f=6&t=95133

So, between these various methods, one of them should work for you.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 277 guests