If you forget about the API calls fo a moment, what you must do is find the handle of the text box to send your message to. To ensure that you post to the right text box (a big consideration if you have more then one paltalk window open), you find the handel for the main chat window that you are working with (room box or pm box). Then you enum through the children untill you find the text box. Once you have that handle, you are able to sendmessage to it.
That being said, you have to have a way to find the handles to the different forms and controls on the forms. If you are not used to using api's, this program is a nice helper to give you the code example with relitive values. So if you open the api spy tool, and click on the Code Generator tab, then drag the yellow dot onto the frame or title bar of the chat room window (not the body of the form), it will generate the code that has the class name already filled in.
Pal 8.x
- Code: Select all
Dim mywindowclass As Long
mywindowclass = FindWindow("my window class", vbNullString)
- Code: Select all
Dim dlggroupchatwindowclass As Long
dlggroupchatwindowclass = FindWindow("dlggroupchat window class", vbNullString)
The reason for the difference is that in paltalk 9 they changed the class name of the chat windows. This is why the programs that worked with pal8 dont work with pal9.
autopilot
By the way, any one else here using VS2005? I am in need of help inserting into paltalk memory space to read the syslistview32 control. But that is another post i guess.





