how do I get the window handle of an Agent character???

TIA