Here is my code:
F1::
Send, {Clcik 961, 615} ; Clicks any server error
Send, 100
Send, {Click 793, 238} ; Clicks Server
Sleep, 100
Send, {Click 992, 941} ; Clicks Join
Sleep, 800
Send, {Click 1226, 938} ; Clicks Refresh
Sleep, 2500
PixelSearch, Px, Py, 169, 1034, 204, 1053, 0X2B271C, 1, Slow,
if (ErrorLevel = 0) {
MsgBox, Server Joined Successfully
Sleep, 500
ExitApp,
}
Else, Reload
Esc::ExitApp