Managed to get correct process id, but can't get correct window handle for some reason