I want to program my mIRC bot like everytime someone
writes "F1" in the chat, the bot simulates F1 pressed on the keyboard.

So a bit like this:

Code:
on *:text:f1:#: {
  Button F1 gets pressed
}