Sign in to follow this  
Followers 0
Megadime

Sending strings via PostMessage

5 posts in this topic

I'm trying to send strings via PostMessage from AutoIt to C++. The way I understand it this is possible by using string pointers and handing them to the wparam and lparam parameters of PostMessage. Is that correct?

If it is, how am I supposed to do that in AutoIt?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

For strings you must allocate memory inside called application's memory (address) space.

Look at sources of  _GUICtrlListView_GetItemText() or _GUICtrlListView_SetItemText() in "C:\Program Files\AutoIt3\Include\guilistview.au3" 

Also search forum for WM_COPYDATA to see the right way of interprocess communication.

Edited by Zedna

Share this post


Link to post
Share on other sites

Anyway, Megadime likely understood wrong.


♡♡♡

.

eMyvnE

Share this post


Link to post
Share on other sites

What do you mean?

Share this post


Link to post
Share on other sites

What do you mean?

PostMessage is asynchronous function. That means it returns without waiting for receiver to process it, i.e. string buffer will be destroyed before processed.

♡♡♡

.

eMyvnE

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