How about this. If the active window is a channel or query window, and the editbox isn't empty, it does "/me contents" then does the equivalent of pressing the enter key. This also has the advantage of putting that into the history so you can repeat it with up-arrow. If you don't want it in the history, you can change the command to just "/me $v1".

Note that this replaces the normal opening of the helpfile using the F1, so you can make an alias to do that from control+F1 like: cF1 /help

If this alias is in the aliases tab instead of the remote tab, then remove the beginning "alias" keyword.

Code
alias F1 { if (($window($active).type isin channel query) && ($editbox($active) != $null)) editbox -n $active /me $v1 }