I'm not sure how you write multiple arguement with the if statements: If windows exist then sleep for 1second, click at coordinates, then go to next function.
Here's what I have so first, but doesn't work:
Func CloseHim() If WinExists("[CLASS:#32770]","") Then { WinActivate("[CLASS:#32770]","") ;select and close alarm sleep(1000) MouseClick("LEFT", 869, 362, 1) SMC() } Else SMC() EndFunc