Well, I don't know why, but I can't output any info with AddSystemMessageString("...") or the function I posted. When I create this interface 2 years ago I remember using this functions for debug
I'm here pulling my hair out!!
I have some progress here
I can get debug messages with AddSystemMessageString("...") if the windows in use is focussed. For example, I added this function to MenuWnd.uc, and I can see the message in the chat when I press the ESC key ("Escape Pressed!"), but only if I click in the menu (get the window focus), if I lost the focus by clicking in other place when I press the ESC key nothing happens.
What can I do to keep this OnKeyDown function working all the time?
C++:
function OnKeyDown(WindowHandle a_WindowHandle, EInputKey nKey)
{
if ( nKey == IK_Escape )
{
AddSystemMessageString("Escape Pressed!")
}
}