×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Bot finding key words and doing if statements

Bot finding key words and doing if statements

Bot finding key words and doing if statements

(OP)
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!

RE: Bot finding key words and doing if statements

Hi Tyler,

I'm afraid the information you provide is not yet sufficient to help you. Let me clarify:

Quote:

I need help with it finding key words

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

Quote:

then clicking on the image that goes with the keyword

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

Quote:

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.

RE: Bot finding key words and doing if statements

(OP)
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

RE: Bot finding key words and doing if statements

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

webbrowser.navigate("https://www.supremenewyork.com/shop/accessories/tk...")

wscript.sleep(5000)

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

wscript.sleep(1000)

webbrowser.navigate("https://www.supremenewyork.com/checkout")

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close