If you just want to activate an Fkey, you simply do for example; /F1 - to run the f1 fkey, similiarly /sf1 would run any code linked to shift+f1, and so on.
If you want to mimic all the keys, you can use 'sendkey' by
qwerty avaliable from,
mIRCscripts.orgOr, you can use the wonders of COM Objects.
alias skeys {
if ($com(sendkeys)) { .comclose sendkeys }
.comopen sendkeys WScript.Shell
if (!$comerr) { .comclose sendkeys $com(sendkeys,SendKeys,3,bstr,$1-) }
}
An example would be:
/skeys {F1} - Mimics you pressing 'F1' (helpfile opens by default).
/skeys /echo hello{enter} - Will mimic you typing '/echo hello' and pressing the enter key, 'hello' will appear in your window.
Hope this helps.
Eamonn.