api_SendMessage fails, why?

BlitzPlus Forums/BlitzPlus Programming/api_SendMessage fails, why?

Andres(Posted 2007) [#1]
when i call function: api_SendMessage(QueryObject(TextArea, 1), $CF, True, 0)

It opens up the "Send/Don't send" error. Debug mode doesn't recognise any errors either. What can be the problem? Gadget TextArea exists, I tried $CF as a string too and user32.decl has the function ( api_SendMessage% (hwnd%, wMsg%, wParam%, lParam*) : "SendMessageA" ).


Kev(Posted 2007) [#2]
lParam in the api_SendMessage() call requires a bank change it to lParam%


Andres(Posted 2007) [#3]
Works now, thanks.