Jump to content

WM_GETTEXT and Pointer to a Buffer


LOULOU
 Share

Recommended Posts

$hwnd = GetControlHandle("","","ListBox1")

DLLCAL("user32.dll","int","hwnd",$hwnd,"SendMessage",int,$VM_GETTEXT,"int", 32,"ptr", Pointer to the buffer that is to receive the text )

How can i Do in the DLLCALL to acess to the pointer with autoit ?

Thanks

Edited by LOULOU
Link to comment
Share on other sites

  • Administrators

$hwnd = GetControlHandle("","","ListBox1")

DLLCAL("user32.dll","int","hwnd",$hwnd,"SendMessage",int,$VM_GETTEXT,"int", 32,"ptr", Pointer to the buffer that is to receive the text  )

How can i Do in the DLLCALL  to acess to the pointer with autoit ?

Thanks

Try just a "str" (which is actually a pointer to characters which is what the call wants)
Link to comment
Share on other sites

@Jon, let me take this opportunity to say that we need a str_ptr as well. There are some functions that require a pointer to a string that will not accept plain strings. Is there a possibility that something like this could be whipped up?

Who else would I be?
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...