01-28-2011, 11:21 AM
Try as below.
Code:
dialog("Login").WinEdit("Agent Name:").set Parameter("Agname")
dialog("Login").WinEdit("Password:").set Parameter("pswd")
dialog("Login").WinButton("OK").click