New to PureBasic
New to PureBasic
Good day,
I just recently stumbled upon PureBasic, so got a question. Is it possible to perform browser automation using PB like in AutoIt?(e.g., click links, fill in web forms, extract data from web pages).
I just recently stumbled upon PureBasic, so got a question. Is it possible to perform browser automation using PB like in AutoIt?(e.g., click links, fill in web forms, extract data from web pages).
Last edited by ostapas on Tue Feb 19, 2013 1:11 am, edited 4 times in total.
- Spaceman Spiff
- User
- Posts: 11
- Joined: Mon Feb 15, 2010 9:13 pm
Re: New to PureBasic
A friend of mine has been trying to build a bot to harvest gold in an onine game in it... he has had little success!
He keeps saying... "They keep CHANGING the rules!!!"
I am also new... welcome!
He keeps saying... "They keep CHANGING the rules!!!"

I am also new... welcome!
- Arctic Fox
- Enthusiast
- Posts: 609
- Joined: Sun Dec 21, 2008 5:02 pm
- Location: Aarhus, Denmark
Re: New to PureBasic
I think most of this can be accomplished using srod's COMate (perhaps a bit advanced for you) - I have not tried it however.
Re: New to PureBasic
You should look at autoit or autohotkey for windows/browser automation.
I like PB alot but in this case the above tools are better for the job that need to be done.
I like PB alot but in this case the above tools are better for the job that need to be done.
Re: New to PureBasic
Yes it is possible. Look into these functions:
[edit] whoops, I read a post below the original. The one about gold and changing rules and stuff 
Code: Select all
Mouse_event_()
keybd_Event_()
getpixel_()

▓▓▓▓▓▒▒▒▒▒░░░░░
Re: New to PureBasic
While Purebasic is certainly not the best tool for online automation, it is possible.
If you don't expect to do more than just that thing, you're better off with
Autoit or other scripting languages like Python or Ruby.
If you don't expect to do more than just that thing, you're better off with
Autoit or other scripting languages like Python or Ruby.
Windows 7 & PureBasic 4.4
Re: New to PureBasic
I wonder if Ostapas is a bot posting for AutoIt 

( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB)
( The path to enlightenment and the PureBasic Survival Guide right here... )
( The path to enlightenment and the PureBasic Survival Guide right here... )
- Joakim Christiansen
- Addict
- Posts: 2452
- Joined: Wed Dec 22, 2004 4:12 pm
- Location: Norway
- Contact:
Re: New to PureBasic
I've done that many times in PB. What I usually do is sending raw network commands making the website think I'm a normal web browser. But you need knowledge about the HTTP protocol and how web servers work if you want to do that, and that I wont help you with (I don't have the time), but maybe a Google search or a search in this forum can help you. Good luck!ostapas wrote:Is it possible to perform browser automation using PB like in AutoIt?(e.g., click links, fill in web forms, extract data from web pages).
I like logic, hence I dislike humans but love computers.
Re: New to PureBasic
If you have to ask, I think the more appropriate question is:
"Do you have the skills needed to do it with PureBasic?" or "Is PureBasic the right tool for you to use to acomplish your goal?"
I say this because I believe that if you have the skills, anything is possible using any computer language. It's all up to the user and the skills they possess.
"Do you have the skills needed to do it with PureBasic?" or "Is PureBasic the right tool for you to use to acomplish your goal?"
I say this because I believe that if you have the skills, anything is possible using any computer language. It's all up to the user and the skills they possess.
- Kaeru Gaman
- Addict
- Posts: 4826
- Joined: Sun Mar 19, 2006 1:57 pm
- Location: Germany
Re: New to PureBasic
+1blueznl wrote:I wonder if Ostapas is a bot posting for AutoIt
oh... and have a nice day.