its very easy from AutoIT thats for sure. and since it will support autoit.
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
Opt('SendKeyDownDelay',100)
send("ssssssssssssssssss")
sending an attack skill after this if u got automove to target enabled will focus on ur target.