GetActiveWindow isn't returning a valid window
added output for win to console
replaced some dialogs with console output instead
this fix works in every scenario I've tested it although seems very fragile
Merge pull request #2 from Renari/active-window-issue

Active window issue