i'm trying to building an app that when you type in the app edit1.Text field and click a button it would send that message to Mirc's selected window...
i searched the web,help files on how to sendMessage() to Mirc;
in mirc/help/ "SendMessage" it says
"Applications can now use SendMessage() to communicate with the 32bit mIRC." with this code
SendMessage(mHwnd, WM_MCOMMAND, cMethod, 0L)
mHwnd - the handle of the main mIRC window, or the handle of a Channel, Query, etc. window.
WM_MCOMMAND - which should be defined as WM_USER + 200
cMethod - the way in which you want mIRC to process the message, where:
1 = As if typed in editbox
2 = As if typed in editbox, send as plain text
4 = Use flood protection if turned on, can be or'd with 1 or 2
Returns - 1 if success, 0 if fail
i wish if you could take a little of your time to explan to me that line . and any extra info you could offer me..
i read about "Hwnd" and it said that it selectes a window, but how do i select Mircs window?
thanke you in advance