Forums | Hello Guest, Login or Register | > > L4Y Files: No longer here! < <
  Red Faction : Lounge : Does any one? [Forum Rules]  


Back to Forum Thread List

crazyjack1994   Posted 15th Oct 2009 7:52pm
L4Y Member
Post 450 / 483

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.

Thanks!
81 | Colt
   Modified Oct 15th, 07:54pm by crazyjack1994
KILLER    Posted 16th Oct 2009 5:36am
Post 1584 / 1723
There's already a vote system out there. Called RFSVA
P.L.U.R.Peace-Love-Unity-Respect    
crazyjack1994   Posted 16th Oct 2009 7:48am
L4Y Member
Post 451 / 483

Quoting crazyjack1994
A while back i started to make a 'Server Voting System' for RedFaction that contained a few extra features rather than 'Ban' or 'Kick'.


And sweeper by 'Debugger' do you mean a packet sniffer?
   Modified Oct 16th, 07:50am by crazyjack1994
crazyjack1994   Posted 16th Oct 2009 5:45pm
L4Y Member
Post 452 / 483

Quoting .Guitar
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?
   Modified Oct 16th, 06:29pm by crazyjack1994
crazyjack1994   Posted 16th Oct 2009 11:59pm
L4Y Member
Post 453 / 483

Thanks Guitar, Big help !
   



Copyright © 2000-2025 Levels-4-You
Your request was handled in 0.06 seconds.