10-01-2007, 02:56 PM
Try this it works for me other than it wont let me log in because the username and password are 0 1.
Maybe the .SetFocus is hanginig you up some how, its not needed to use .SetText .
Function ( Function4 ) Trigger ( $a 142 -4 0 "Edit" 41477 "zangleweb.resa.net/Gibraltar/StudentConnect/" )
function hwnd
int Phwnd;Htm el ell el3
Phwnd=GetAncestor(hwnd 2);; gets parent handle
str s="0"
str b="1"
el=htm("INPUT" "stuident" "" Phwnd 0 0 0x121 60)
err
,out 1
,end
el.SetText(s)
ell=htm("INPUT" "stupassword" "" Phwnd 0 1 0x121)
ell.SetText(b)
el3=htm("INPUT" "submit1" "" Phwnd 0 2 0x121)
el3.Click