New to PureBasic

For everything that's not in any way related to PureBasic. General chat etc...
User avatar
ostapas
Enthusiast
Enthusiast
Posts: 192
Joined: Thu Feb 18, 2010 11:10 pm

New to PureBasic

Post 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).
Last edited by ostapas on Tue Feb 19, 2013 1:11 am, edited 4 times in total.
User avatar
Spaceman Spiff
User
User
Posts: 11
Joined: Mon Feb 15, 2010 9:13 pm

Re: New to PureBasic

Post 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!
User avatar
Arctic Fox
Enthusiast
Enthusiast
Posts: 609
Joined: Sun Dec 21, 2008 5:02 pm
Location: Aarhus, Denmark

Re: New to PureBasic

Post 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.
Mahan
User
User
Posts: 35
Joined: Sun Jan 25, 2009 10:12 am
Location: Sweden

Re: New to PureBasic

Post 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.
Nituvious
Addict
Addict
Posts: 1027
Joined: Sat Jul 11, 2009 4:57 am
Location: United States

Re: New to PureBasic

Post 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:
▓▓▓▓▓▒▒▒▒▒░░░░░
milan1612
Addict
Addict
Posts: 894
Joined: Thu Apr 05, 2007 12:15 am
Location: Nuremberg, Germany
Contact:

Re: New to PureBasic

Post 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.
Windows 7 & PureBasic 4.4
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: New to PureBasic

Post by blueznl »

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... )
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Re: New to PureBasic

Post 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!
I like logic, hence I dislike humans but love computers.
User avatar
GWarner
Enthusiast
Enthusiast
Posts: 605
Joined: Fri Jul 24, 2009 1:34 pm
Location: USA

Re: New to PureBasic

Post 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.
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Re: New to PureBasic

Post by Kaeru Gaman »

blueznl wrote:I wonder if Ostapas is a bot posting for AutoIt :-)
+1
oh... and have a nice day.
Post Reply