This can be easily accomplished using onTABCOMP, $editbox, /editbox, etc. Just keep track of recent activity in a database, and use that for your own auto-complete.
Example of using onTABCOMP
on ^*:TABCOMP:#:{
editbox $target $editbox($target) $+ -dawg
haltdef
}
-genius_at_work