First: Please make an effort on the presentation: your post is nearly undreadable
Second:
evan1715 wrote:meh, what i ment is for a home-dedicated server, 1 that you host on ur computer and not some paid for 1
Ah! How was I supposed to guess this ? I thought you were talking about a remote server.
You do realize these are two
totally different problems ?
evan1715 wrote: know you can watch it for a particular model change because thats what a kill tracker does (like mau dae's kill tracker 2.0 for JK2 here written in VB)
A kill tracker works in a very different way a program communicating with a remote server does. The first uses system calls to communicate directly with the app, while the latter uses a communication protocol built on TCP or UDP (in the case of q3: udp).
So, basically, what you want is a KT-like app. I have never written one of those, so I can't help you much. The code you linked to will be extremely useful, though:
The meat of the matter is in
jedithing.bas:
Code: Select all
Public Declare Function GetTickCount Lib "kernel32.dll" () As Long
Public Declare Function EnableWindow Lib "user32" (ByVal hwnd As Long, ByVal fEnable As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As etc...
This is the part of the Win32 API you'll need, regardless of the programming language you use.
Note: if you do that in C or another portable language, please don't do it the same way it's done in this code: wrap the API calls in a somewhat more abstract wrapper, so as not to screw portability completely... thanks
And the core program in
jedithing.frm:
Code: Select all
jkmpwinconsole = FindWindow("jk2mp winconsole", vbNullString)
editx = FindWindowEx(jkmpwinconsole, 0&, "edit", vbNullString)
Call SendMessageBystring(editx, WM_SETTEXT, 0&, "say " + sbrmsg)
(of course, you'll need to adapt: it won't be "jk2mp winconsole" in your case... etc...).
Again, I have personally never written any KT-like app, and I don't know the Win32 API. So I won't be of much use if that's what you want to do. You best bet is to find someone who has and get help there.
Although with a good book
(when I programmed in VB6... long ago... I had "Win32 API Programming with Visual Basic", by Steven Roman, O'REILLY. A very good book.), the VB code, and lots of time and efforts, you should be good to go...
evan1715 wrote:yes a mod would be a great idea, but it's JK2 1.02 and we have no source code
This is the part when I really bang my head against the walls.
But you already know that, I don't think I've told you more than 7827737353525353838363531342 times already.