Search found 14 matches

by quantum
07 Dec 2018, 16:34
Forum: Scripts and Functions (v1)
Topic: MCode4GCC -- C/C++ to MCode Generator
Replies: 121
Views: 56616

Re: MCode4GCC -- C/C++ to MCode Generator

This is interesting but not sure if this is the same way AutoIt does it. Why define global functions at all? It seems weird. Here is an example that works with BinaryCall UDF. #include <windows.h> #include <iphlpapi.h> #pragma comment(lib, "iphlpapi.lib") BOOL IsConnectedToServer(DWORD dwProcessId) ...
by quantum
07 Dec 2018, 16:26
Forum: Old Topics
Topic: AHK_H v2
Replies: 3
Views: 9254

AHK_H v2

Right now we cannot choose other versions of AHK.
Also if it's compiled it opens a folder instead of run.

Other than that it's pretty much perfect.
by quantum
07 Dec 2018, 05:37
Forum: Ask for Help (v1)
Topic: printf()
Replies: 22
Views: 7348

Re: printf()

Okay this is some advance stuff here. In C/C++ for printf I just do this and it works. Wonder why it won't in AHK. if (!AllocConsole()) MessageBox(NULL, L"The console window was not created", NULL, MB_ICONEXCLAMATION); FILE* fp; freopen_s(&fp, "CONOUT$", "w", stdout); printf("Hello console on\n");
by quantum
07 Dec 2018, 00:48
Forum: Scripts and Functions (v1)
Topic: MCode4GCC -- C/C++ to MCode Generator
Replies: 121
Views: 56616

Re: MCode4GCC -- C/C++ to MCode Generator

Did anybody try compiling something that has external calls? Such as this.

Code: Select all

#include <windows.h>
void main()
{
MessageBox(0, "Hello", "Welcome Message", 1);
}
by quantum
06 Dec 2018, 07:20
Forum: AutoHotkey_H
Topic: Implement missing functions
Replies: 9
Views: 3880

Re: Implement missing functions

Like I said will this work?

#include <windows.h>
void main()
{
MessageBox(0, "Hello", "Welcome Message", 1);
}
by quantum
06 Dec 2018, 06:59
Forum: AutoHotkey_H
Topic: Implement missing functions
Replies: 9
Views: 3880

Re: Implement missing functions

What if the C++ machine code has external calls? Such as WINAPI?
by quantum
06 Dec 2018, 06:57
Forum: Ask for Help (v1)
Topic: printf()
Replies: 22
Views: 7348

Re: printf()

So we can't use printf? Shame.
by quantum
06 Dec 2018, 06:01
Forum: Ask for Help (v1)
Topic: Named Pipes
Replies: 0
Views: 641

Named Pipes

How to use nonblocking namedpipes in the same process for writting and reading.
A simple example is welcome. Thanks.
by quantum
05 Dec 2018, 18:00
Forum: AutoHotkey_H
Topic: Implement missing functions
Replies: 9
Views: 3880

Re: Implement missing functions

Right. So how do we get this kind of functionality in AHK v2? https://www.autoitscript.com/forum/topic/162366-binarycall-udf-write-subroutines-in-c-call-in-autoit/ And of course this. Now this is not the same as embedding it as a resource. https://www.autoitscript.com/forum/topic/77463-embed-dlls-in...
by quantum
05 Dec 2018, 16:33
Forum: Ask for Help (v1)
Topic: printf()
Replies: 22
Views: 7348

Re: printf()

Wait but that's sprintf! Not printf :)))
by quantum
05 Dec 2018, 16:16
Forum: Ask for Help (v1)
Topic: printf()
Replies: 22
Views: 7348

Re: printf()

Printing to console is no problem. However printf is also format.

Can someone post a complete example for printf? Thanks.
by quantum
05 Dec 2018, 07:49
Forum: Ask for Help (v1)
Topic: printf()
Replies: 22
Views: 7348

Re: printf()

Are you sure this works?

DllCall("AllocConsole")
stdin := FileOpen(DllCall("GetStdHandle", "int", -10, "ptr"), "h `n")
stdout := FileOpen(DllCall("GetStdHandle", "int", -11, "ptr"), "h `n")

dllcall("msvcrt.dll\printf", "astr", "%x", "int", 12648430, "cdecl int")
by quantum
05 Dec 2018, 07:46
Forum: AutoHotkey_H
Topic: Implement missing functions
Replies: 9
Views: 3880

Implement missing functions

Many missing functions compared to AutoIt for working with binary, memory stuff. DllCallAddress, no such currently function right now in AHK. https://www.autoitscript.com/autoit3/docs/functions/DllCallAddress.htm As well as.. https://www.autoitscript.com/autoit3/docs/functions/Binary.htm https://www...
by quantum
04 Dec 2018, 05:45
Forum: Ask for Help (v1)
Topic: printf()
Replies: 22
Views: 7348

printf()

How to use printf() from msvcrt.dll in AHK?

Go to advanced search