Skip to content

Instantly share code, notes, and snippets.

@CoolOppo
Created April 16, 2014 22:30
Show Gist options
  • Save CoolOppo/10939174 to your computer and use it in GitHub Desktop.
Save CoolOppo/10939174 to your computer and use it in GitHub Desktop.
CoordMode, Pixel, Screen
CoordMode, Mouse, Screen
CoordMode, Caret, Screen
Run, C:\Program Files\TeamSpeak 3 Client\ts3client_win64.exe
Sleep 1000
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, lobbyUnselected.png
if ErrorLevel = 2
MsgBox Could not conduct the search.
else if ErrorLevel = 1
MsgBox Icon could not be found on the screen.
else
Click %FoundX%, %FoundY%, 1
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment