class giScript_stdout: def write(self, s): giScript.debug_stdout(s) output = file("debug.txt", "a") output.write(str(s)) class giScript_stderr: def __init__(self): self.count = 0 def write(self, s): self.count += 1 output = file("debug.txt", "a") output.write(str(s)) giScript.debug_stderr(s) def flush(self): pass
ALERT- Another WS coming up...
I'm fine with hugging reier
Well, I tried pyHook, which hooks the keyboard input, but that only works in the GUI parts and not in the game part. It seems like the game uses DirectInput for the actual game part with all 3D stuff. Which cannot be hooked using pyHook. Only by hooking DirectInput, or doing some other esoteric stuff will it be possible to get raw input in-game