This script will print a string of text in an edit field if you are currently focused in one or it will return an error message. The example given uses an email address but any string of text will work just the same. The author is unknown.

********
Script PrintEmailAddress()
;First, make sure we're in an edit field before trying to enter address!
;We do this by checking the current window's "TypeCode", and if it is
;an edit field, then type the address, but if it isn't, warn the user!
If(GetWindowTypeCode(GetCurrentWindow()) == WT_EDIT) Then
SayString("Printing address")
TypeString("username@domain.ext")
Else
SayString("You are not in an edit field!")
EndIf
EndScript

********
First copy everything between the two lines of stars, then open the default.jss script file and go to the bottom.

Then paste this script in and arrow up into the body of the script. At that point hit Control D to bring up a box. Make sure that use a hot key is checked and assign a hot key. Compile the script with Control S then you can try it.

Close Window