Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bot finding key words and doing if statements 1

Status
Not open for further replies.

Tyler Keyes

Programmer
Apr 26, 2019
4
0
0
US
Hello, does anyone still use this website? If so i’m having difficulty with making a bot. The bot can already do basic commands but I need help with it finding key words then clicking on the image that goes with the keyword and clicking on another picture if the first one is sold out. Yes, this bot is for supreme new york. I am willing to share my code if it means you can help me. Thanks!
 
Hi Tyler,

I'm afraid the information you provide is not yet sufficient to help you. Let me clarify:
I need help with it finding key words

Where? How? What have you tried and where exactly are you stuck?

then clicking on the image that goes with the keyword

"Goes with it" in what fashion? How exactly can it be identified?

and clicking on another picture if the first one is sold out

This is very cryptic here. How can it be determined whether it is "sold out", and what are the criteria which "other" picture to choose in its stead?

Cheers,
MakeItSo

"Knowledge is power. Information is liberating. Education is the premise of progress, in every society, in every family." (Kofi Annan)
Oppose SOPA, PIPA, ACTA; measures to curb freedom of information under whatever name whatsoever.
 
Ok, let me try and explain it better. When i said “I need help with it finding keywords “ I meant I need the bot to find certain words on the shop page and then click the corresponding link. I have not tried anything so far because I am new to this language and have no clue where to start.

“and clicking on another picture if the first one is sold out”
The product can be determined that it is sold out because the purchase button changes into a sold out button with a different id. The other criteria would be different keywords for it to look for.

Sorry if im not doing a good job explaining, like I said I am new to this language and only know basic code.

Thanks!

Tyler
 
set webbrowser = createobject("internetexplorer.application")
webbrowser.statusbar = false
webbrowser.menubar = false
webbrowser.toolbar = false
webbrowser.visible = true

webbrowser.navigate("
wscript.sleep(5000)

webbrowser.document.all.item("commit").click

wscript.sleep(1000)

webbrowser.navigate("
wscript.sleep(1000)

webbrowser.document.all.item("order_billing_name").click
webbrowser.document.all.item("order_billing_name").value = "Test Test"

webbrowser.document.all.item("order_email").click
webbrowser.document.all.item("order_email").value = "test@gmail.com"

webbrowser.document.all.item("order_tel").click
webbrowser.document.all.item("order_tel").value = "111-111-111"

webbrowser.document.all.item("bo").click
webbrowser.document.all.item("bo").value = "1111 NW 111th Way"

webbrowser.document.all.item("order_billing_zip").click
webbrowser.document.all.item("order_billing_zip").value = "1111"

webbrowser.document.all.item("order_billing_city").click
webbrowser.document.all.item("order_billing_city").value = "Test"

webbrowser.document.all.item("order_billing_state").click
webbrowser.document.all.item("order_billing_state").value = "FL"

webbrowser.document.all.item("nnaerb").click

Obviously save this to your computer as All files and (name).vbs

Heres the code so far, the goal is basically not to have to have a direct link to the product. Also feel free to change some of the times, its meant to go fast but I’ve put slower times for right now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top