I am using an app which has a window where if you type "@my.hcl <cr>", it goes off and executes that file. Using FindWindow and FindWindowEx, I am able to find the window's handle and using SendMessageBy String, I am able to write the "@my.vcl" into the window. I am not able to get it to execute the command as if I typed it into the window directly though. This is the command line I use to send the message:
slength = SendMessageByString(lhwnd6, WM_SETTEXT, -1, "VCL>@my.vcl" & Chr(13) & Chr(10))
The text "@my.vcl" and a cariiage return appear in the window but it doesn't do anything. What am I missing? Also, I'd like be able to append text to the window, not replace it.