Opt('MustDeclareVars', 1) Opt('MouseCoordMode', 0) HotKeySet('{ESC}', '_Exit') HotKeySet('^p', '_Pause') Dim $szPokerTitle, $hPokerWin, $szInput, $Pause = False $szPokerTitle = InputBox('PokerStars AutoIt', 'Please enter the window title', 'PokerStars') If Not $szPokerTitle Or Not WinExists($szPokerTitle) Then Exit WinActivate($szPokerTitle) WinWaitActive($szPokerTitle) While 1 Local $pCol = PixelGetColor(0x28, 0x40) Select Case $pCol = 0x00FF00FF Func1() EndSelect Sleep(20) WEnd Func Func1() WinWait, Charlois - $3/$6 - Limit Hold'em, IfWinNotActive, Charlois - $3/$6 - Limit Hold'em, , WinActivate, Charlois - $3/$6 - Limit Hold'em, WinWaitActive, Charlois - $3/$6 - Limit Hold'em, MouseClick, left, 743, 13 Sleep, 100 MouseClick, left, 1297, 13 Sleep, 100 WinWait, PokerStars Lobby, IfWinNotActive, PokerStars Lobby, , WinActivate, PokerStars Lobby, WinWaitActive, PokerStars Lobby, MouseClick, left, 765, 6 Sleep, 100 EndFunc Func _Pause() $Pause = Not $Pause While $Pause ToolTip('Press F7 to resume', @DesktopWidth-100, @DesktopHeight-35) Sleep(100) WEnd ToolTip('') EndFunc Func _Exit() ToolTip('') Exit EndFunc am i on the right track? (the name of the table, in this case Charlois, is an example)