@Lambchops, i'll try your dll, but i almost sure that will not help as you open sockets the same way as a python script.
I'd say we have to inject sending packets into war2 process somehow.
Slightly different. You will notice that you can start my dll after wc2 is already started, but you must open the python script before wc2 so it takes precedence. This is not desirable.
I am using the windows API networking primatives. All networking ends up using these functions regardless of the source.
Just because python methods have the same name like "sendto" does not mean that they are the same - the paramaters are different so python is simplifying things behing the scenes before passing them to the API functions. I don't know how close to a 1:1 translation the python methods are, and I don't really need to know as I wouldn't bother using them.
And yes this is a bad way to be doing this, as I have said. It's unlikely to work without causing problems/glitches, but you are trying it out, so I am trying to help.
I have documented the correct way to do this many times, it is only the script-kiddie making noise that is confusing the issue.
Have sent a PM with more specific information.