I wanted something very similar and posted a request in this thread, "Will someone code an Always-on-Top Macro-Typing Applet like TypeItIn?" In Diablo, I use the suggestion offered in that thread by Benson: combine xautomation's xte function with Personal Menu. I detailed the solution in this thread, "How To: Making your own Form Filler or Macro Typer".