Jump to content

Sending strings via PostMessage


Recommended Posts

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?

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...