Hi there i'm just wondering if anyone in the l4y community besides DigitalRuler can program in Visual Basic 6.
A while back i started to make a 'Server Voting System' for RedFaction that contained a few extra features rather than 'Ban' or 'Kick', but i stopped developing it due to the fact i hit a brick wall. i do not know how to force visual basic to 'Sendkeys' to the Red Faction Dedicated Server window, thats why i am wondering if anyone in the l4y community has managed to use (VB6) to sendkeys to the RF's dedi window, for example 'ENTER' or 'RETURN' and if they could help/teach me how to do it.
however I have looked up this problem myself but many people have said to use an API called 'SendMessage' but i cannot find any appropriate code for what exactly I need.
p.s if any one is curious as to how I'm making this 'Voting System', i am using RedFaction's memory to detect the appropriate information needed to cast votes etc.
You can just monitor packets using raw sockets or some other method (like a C++ WinPCap DLL). Although, having your own DLL inside RF getting packets is better.
To send text to the dedicated server window, use FindWindow, and SendMessage (as saber said).
It's a lot easier to just copy the command to the clipboard using Clipboard.SetText, and then doing SendMessage(RFWindow, WM_PASTE, 0, 0), then restoring clipboard contents. This pastes the command into the dedicated server window.
Then you can do another SendMessage() for the enter key.
That was my lazy way of doing it when I worked on RFST.
hmm could you perhaps give me all the other code required to actually enable me to use the code SendMessage(RFWindow, WM_PASTE, 0, 0) , because i am still struggling to find useful code, do you have xfire or msn so i can speak to you?