#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.5 Author: JUNO_OKYO Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here HotKeySet("{ESC}", "HotKeyPressed") HotKeySet("{F1}", "HotKeyPressed") HotKeySet("{F2}", "HotKeyPressed") While 1 Sleep(100) WEnd Func HotKeyPressed() Switch @HotKeyPressed Case '{F1}' Send('AA') Case '{F2}' Send('BB') Case '{ESC}' Exit EndSwitch EndFunc ;==>HotKeyPressed