There's no way to define an F-key alias and still have mIRC's default action. What you can do is use the /alias command to remove the /f1 alias when %functionkey is changed to a different key and create it again when it's changed back to f1.

eg.
Code:
on *:EVENT WHERE %FUNCTIONKEY WILL BE CHANGED:{
  ; Remove f-key alias for old %functionkey value
  alias %functionkey
  
  %functionkey = %NEW_FKEY_VALUE_HERE
  ; Create f-key alias for new %functionkey value
  alias %functionkey myCommand
}


The /alias command can only create/remove single-line commands, however seeing as you're most likely only creating a convenience alias that calls the 'proper' command that shouldn't be an issue.

Last edited by starbucks_mafia; 20/01/09 03:29 PM.