Page 1 of 1

New to PureBasic

Posted: Thu Feb 18, 2010 11:13 pm
by ostapas
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).

Re: New to PureBasic

Posted: Thu Feb 18, 2010 11:49 pm
by Spaceman Spiff
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!!!" :wink:

I am also new... welcome!

Re: New to PureBasic

Posted: Fri Feb 19, 2010 12:01 am
by Arctic Fox
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

Posted: Fri Feb 19, 2010 10:42 am
by Mahan
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.

Re: New to PureBasic

Posted: Fri Feb 19, 2010 11:47 am
by Nituvious
Yes it is possible. Look into these functions:

Code: Select all

Mouse_event_()
keybd_Event_()
getpixel_()
[edit] whoops, I read a post below the original. The one about gold and changing rules and stuff :oops:

Re: New to PureBasic

Posted: Fri Feb 19, 2010 12:11 pm
by milan1612
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.

Re: New to PureBasic

Posted: Fri Feb 19, 2010 10:03 pm
by blueznl
I wonder if Ostapas is a bot posting for AutoIt :-)

Re: New to PureBasic

Posted: Sat Feb 20, 2010 4:02 pm
by Joakim Christiansen
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'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!

Re: New to PureBasic

Posted: Sun Feb 21, 2010 2:30 am
by GWarner
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.

Re: New to PureBasic

Posted: Sun Feb 21, 2010 11:58 am
by Kaeru Gaman
blueznl wrote:I wonder if Ostapas is a bot posting for AutoIt :-)
+1