So ive got some script, and i dont know how to execute it can someone help me out?

Script is for Miner work on 4life server, work is about to clicking 2 keys (E,Q) that are randomly showed on the corner of the screen.

Code:
Sleep(6000) PixelGetColor(46, 982) PixelGetColor(106, 982) PixelGetColor(46, 982) $kolor1 = PixelGetColor(46, 982) $kolor2 = PixelGetColor(106, 982) $kolor3 = PixelGetColor(161, 982) If $kolor1 = 0xACAFAE Then Send("{E}") Else Send("{Q}") EndIf If $kolor2 = 0xACAFAE Then Send("{E}") Else Send("{Q}") EndIf If $kolor3 = 0xACAFAE Then Send("{E}") Else Send("{Q}") EndIf