Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hey I am kind of noob when it comes to programming etc.. So I am wondering how I would go about coding a script that would open a web browser, go to a specified website, log-in with a specified email address and password, and then go to a certain on that website(after logging in), and enter a value for an item, and buy it.
To clarify the last part - after loggin in, the site brings you to a "main" page. I would need it to bring me another page, by clicking a link on the site, and then there is a list of items available to buy. I would need it to enter a value for one of the specified items, and click "enter" to buy it. if The account doesnt have the money, it closes the browser, if it does, then it buys the item.
and help would be appreciated
Edit/Delete Message

I don't know what it is you are trying to do but it sounds a bit fishy to me.
If what account doesn't have enough money? you bank account, credit card account? pay pal account?
In any event, you would need something a little more complex than a simple script.
Stuart

I think that would be very difficult. For example "I would need it to enter a value for one of the specified items". If the web site operator changes the name of the product or moves it into a different position on the page your script would fail - or worse, it might purchase the wrong item. And, speaking of failing. there would be no easy way for a script to identify any errors that occur.
I think a better option would be to contact the vendor and come up with a solution. For example you could come to an agreement that when you send them a notification email that they will process the order for the item if there is money in your account (assuming they can verify the balance of the account). Then you just need to create a default email that you can send instead of writing an over elaborate script that will fail at some point anyway.
Michael J

lol, This is for a game I play on the internet. While I am on vacation, I want it to logon for me, and buy a tank(s), so my money does not build up, and therefore people attacking me..this would still not work?

That puts a different light on it. It would probably be a lot easier to write a script to do what you want - i have done it myself in the past. But it does require an intimate knowledge of the game in question.
But why should you be attacked if you are not logged on. Surly your character doesn't exist or is dormant if you are not logged on?
Bear in mind though that a lot of games do not allow actions to be controlled by scripts. If the commands come to quickly to be initiated by a human hand, the games will detect it and block it.
Stuart

![]() |
Access - Query Question
|
HTA Error
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |