api_SendMessage fails, why?

BlitzPlus Forums/BlitzPlus Programming/api_SendMessage fails, why?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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" ).