MCode Tutorial (Compiled Code in AHK)

Helpful script writing tricks and HowTo's
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 11:30

Nice
I should share my NASM code too.
Recommends AHK Studio
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 11:36

Image
Recommends AHK Studio
guest3456
Posts: 2399
Joined: 09 Oct 2013, 10:31

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 11:41

its too bad bentschi's online generator is gone

User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 12:00

Well he has stated something in the German forum a while ago.
I will sum it up for you:
"I cannot keep it the way it is because I have a slower connection now."
And also he said something about using GCC in an Web server that uses exec to compile the program..
Recommends AHK Studio
guest3456
Posts: 2399
Joined: 09 Oct 2013, 10:31

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 12:01

joedf's generator will probably be the new solution

kon
Posts: 1760
Joined: 29 Sep 2013, 17:11

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 12:17

Yeah, it looks very nice. I plan on using it. :)
User avatar
joedf
Posts: 6439
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 13:51

Contribute any ideas, commits, etc. It has bugged me a quite while, that all online generators are now gone...
"Let's just make it offline, and open source for everyone." ;)
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 16:34

There was an offline generator already I think.
Recommends AHK Studio
User avatar
joedf
Posts: 6439
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 16:39

Yes, I believe so... But I think it was for ahk 1.0 or something, or maybe visual studio... I don't remember :P
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

16 Sep 2014, 16:42

Yeah Visual Studio.
Recommends AHK Studio
User avatar
joedf
Posts: 6439
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: MCode Tutorial (Compiled Code in AHK)

19 Sep 2014, 12:40

Hi, nnnik
Could you add MCode4GCC and MCodeGen to your tutorial, especially since the one suggested (bentschi's) is now offline?
https://github.com/joedf/MCode4GCC
http://www.autohotkey.com/board/topic/5 ... nto-mcode/
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

20 Sep 2014, 01:52

Oh lol I thought you did that already :D
BTW make a topic about your compiler :P
Recommends AHK Studio
User avatar
joedf
Posts: 6439
Joined: 29 Sep 2013, 17:08
Facebook: J0EDF
Google: +joedf
GitHub: joedf
Location: Canada, Quebec
Contact:

Re: MCode Tutorial (Compiled Code in AHK)

20 Sep 2014, 21:11

Oh you're right! here we go!
viewtopic.php?f=6&t=4642
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

08 Nov 2014, 02:58

I have figured a way of making all of the code work using output from .obj files.
Recommends AHK Studio
GeekDude
Posts: 838
Joined: 02 Oct 2013, 22:13

Re: MCode Tutorial (Compiled Code in AHK)

08 Nov 2014, 09:53

I have the visual studio machine code compiler somewhere. It works very well, but I'm really bad at C/C++ level pointer management
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

28 Nov 2014, 07:22

http://www.symantec.com/connect/article ... s-part-one
That's the best source I have found.
Recommends AHK Studio
tic
Posts: 92
Joined: 03 Nov 2014, 03:10

Re: MCode Tutorial (Compiled Code in AHK)

25 Mar 2015, 12:43

Hey, what needs changing to compile for x64 as well as x86?
For the example given

Code: [Select all] [Download] (Untitled.txt)GeSHi © Codebox Plus

int stringlen(char *str)
{
int i=0;
for (; str[i]!=0; i++);
return i;
}


I get

Code: [Select all] [Download] (Script.ahk)GeSHi © Codebox Plus

2,x86:gDkAdBpIg8EBMcAPH0QAAEiDwQGDwAGAef8AdfPzwzHAw5CQkJCQkJCQkJCQkJCQ


Would save me looking through the source if someone knows. Many thanks
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

25 Mar 2015, 14:03

Which compiler do you use?
Recommends AHK Studio
tic
Posts: 92
Joined: 03 Nov 2014, 03:10

Re: MCode Tutorial (Compiled Code in AHK)

25 Mar 2015, 14:23

I used to use VC++ but am trying now with x86_64-w64-mingw32-gcc-4.9.2.exe
User avatar
nnnik
Posts: 3217
Joined: 30 Sep 2013, 01:01
Location: Germany

Re: MCode Tutorial (Compiled Code in AHK)

25 Mar 2015, 14:37

I was never able to compile x64 with VC++. Gave up on that.
Recommends AHK Studio

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 5 guests