Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recognizing Website?
#29

You know what, I see the problem now you are waiting 60 seconds for "stuident" in a macro you should change this macro to a function so it doesnt keep your arrows red all the time you are surffing that website. Or change that wait time to something smaller.


Code:
Copy      Help
el=htm("INPUT" "stuident" "" Phwnd 0 0 0x121 60)


Or something like this.

Function ( Function4 ) Trigger ( $a 142 -4 0 "Edit" 41477 "zangleweb.resa.net/Gibraltar/StudentConnect/" )
Code:
Copy      Help
function hwnd
int Phwnd;Htm el ell el3
Phwnd=GetAncestor(hwnd 2);; gets parent handle
;wait until fully loads

wait 0 I

str s="0"
str b="1"
el=htm("INPUT" "stuident" "" Phwnd 0 0 0x121);; NO need for the wait time now.
err
,out "NOT LOGIN PAGE."
,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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)