Thanks to the both of you.
I found a more simple way. Sorry for starting this post without looking first. I simply went to Option < Mouse and then in the nicklist text box, I added an alias I created to perform that command...
querystart {
.echo -a 9[11 $+ $timestamp $+ 9] [11Query Session with $active started $+ 9]
}
so now in the editbox it say /query $$1 | querystart

I figured I would post this incase anyone is trying to do something similar.
Thanks,
arkt1k