I can not get 2 While Statment to run at the same time. How can I achieve this? #include <GuiConstants.au3> Dim $MID, $Color HotKeySet("{F8}","Get_coord") HotKeySet("{F9}","Get_Color") Opt("MouseCoordMode", 1) Opt("PixelCoordMode", 1) Func Get_coord() $MID = NOT $MID While $MID $pos = MouseGetPos() ToolTip('Mouse coordinates ' & @CRLF & " X = " & $pos[0] & @CRLF & " Y = " & $pos[1],0,0) Sleep(20) WEnd ToolTip("") EndFunc Func Get_Color() $Color = NOT $Color While $Color $pos = MouseGetPos() $var = PixelGetColor( $pos[0],$pos[1] ) ToolTip('The hex color is ' & Hex($var, 6),0,55) Sleep(20) WEnd EndFunc