Im currently trying to develop an applescript to help me with school. The application would open a display dialog box, and then I would input the name of a class, and it would open the class on Firefox. Here is what it looks like currently

set myv to text returned of (display dialog "Enter the name of the class" default answer "")
if myv is equal to "World Studies" then tell application "Microsoft Word" to activate
delay 1
if myv is equal to "World Studies" then tell application "Finder" to open location "http://www.websitenamehere.com"

the problem is it requires a login, and currently the website does not offer a "Remember me" section. Is there anyway around this? I tried with the system event's keystroke command, to try to type in my name and pass, but it didnt work. Anyone have any ideas?