getWindowHandle function

get current window handle