Sign in to follow this  
Followers 0
dromenox

C++ and AutoIt

17 posts in this topic

How can I make communication between a AutoIt program and a C/C++ program that is running? 
Would like a basic example.

Share this post


Link to post
Share on other sites



What C++ program?

I will create it. Will be a console application.

Share this post


Link to post
Share on other sites

So, without seeing what you're doing, we're supposed to guess at how they need to communicate???


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

You can communicate with your own C++ app in any way you see fit. Messages, MailSlots, Memory, File, Database. etc...

So long as you have the necessary coding in both apps. But since you're trying to inject dll into not your app that is not going to work.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites

I know... You say communicate PHP and C++ in the same machine.

May I suggest JSON.
C++ have JSON.

AutoIt too. >See.


m(o.O)m

Share this post


Link to post
Share on other sites

So, without seeing what you're doing, we're supposed to guess at how they need to communicate???

 

It is a DLL that is injected into a process and will hook a function. I want the DLL send some things for the program in AutoIt to display in a GUI. For now just did the DLL, the program in AutoIt will then find a way of communication between them.

Share this post


Link to post
Share on other sites

The problem is that it calls the DLL without it being loaded into a process. This does not work when the DLL is injected into a process.

Share this post


Link to post
Share on other sites

I've definitely read a thread on here which does exactly what you want.

can't find it, it's in the depths of the forum a few years ago.

If this code had no errors that would be perfect, I would not need to use C ++. 
 

Share this post


Link to post
Share on other sites

Maybe, but I don't think that is the thread I read.

Do you remember a word / title of the topic?

Share this post


Link to post
Share on other sites

If there were some way to call a function of the DLL that is loaded and not load it as DllCall do.

Share this post


Link to post
Share on other sites

When you inject your dll you must have a pointer to it right?

For now I'm using a DLL injector. After my own program will inject. I have not studied that part.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0