How can I close the authentication window after fail the password n times?


How can I write scripts to close the authentication login window after login failed, and also close the e-sign popup which calls the authentication login window, and show alarm info for the login fail.
thanks!