I've been looking at Worms excellent example of using user32.dll to send text between open windows in AMS as i want to make a program in another laguage that communicates with AMS but im not to sure how to use the 'SendMessageA" function.
From Worms Code :
The syntax for the function call is;Code:function SendTo(nHandle, sMessage) -- set the text DLL.CallFunction(_SystemFolder.."\\User32.dll", "SendMessageA", nHandle..",12,0,\"~||~"..sMessage.."\"", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL) -- send keypress to fire event DLL.CallFunction(_SystemFolder.."\\User32.dll", "SendMessageA", nHandle..",256,0,13", DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL) end
How can i construct the linehwnd As Long,wMsg As Long,wParam As Long, lParam As Any
in another language like visual basic or VC++?Code:nHandle..",12,0,\"~||~"..sMessage.."\""
Also would the DLL_RETURN_TYPE_LONG, DLL_CALL_STDCALL stay the same?


