Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webpage responder
#5
I created a function and a macro for Firefox. Function is clicking on new offer each second and macro waits for object and once object is visible it does default action. Below are codes for both. BUT the problem is I need function to stop when object (w "CHECKBUTTON" "" "a:id=chkOffer" 0x3014 3600) is found on webpage I tried puting hotkey by another function but it is not working. Can you please edit code below and let me know solution.

FUNCTION newoffer
int w=wait(3600 WV win("Welcome To REALTrans - Mozilla Firefox" "Mozilla*WindowClass" "" 0x804))
Acc a.Find(w "LINK" "New Offers " "" 0x3011 3)
rep
a.DoDefaultAction
1

MACRO acceptoffer
int w=wait(3600 WV win("Welcome To REALTrans - Mozilla Firefox" "Mozilla*WindowClass" "" 0x804))
Acc a.Find(w "CHECKBUTTON" "" "a:id=chkOffer" 0x3014 3600)
a.DoDefaultAction
int w1=wait(3600 WV win("Welcome To REALTrans - Mozilla Firefox" "Mozilla*WindowClass" "" 0x804))
Acc a1.Find(w1 "LINK" "Respond" "" 0x3011 3600)
a1.DoDefaultAction
int w2=wait(3600 WV win("Welcome To REALTrans - Mozilla Firefox" "Mozilla*WindowClass" "" 0x804))
Acc a2.Find(w2 "GRAPHIC" "Submit" "" 0x3011 3600)
a2.DoDefaultAction


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)