Jump to content
Sign in to follow this  
LOULOU

WM_GETTEXT and Pointer to a Buffer

Recommended Posts

LOULOU

$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

Share this post


Link to post
Share on other sites
Jon

$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)

Share this post


Link to post
Share on other sites
this-is-me

@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?

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  

×