Page 1 of 2

want to do some basic things with api

Posted: Thu Oct 07, 2010 11:15 am
by homiewagon
i'm new to purebasic but i'm not new to programming, with experience with mirc and autoit as well as autohotkey under my belt (lol)
i wanna know how to do three basic things:
1) how do i click a button id auotmated?
2) is there a built-in download feature (if not is there a module or something to do this?)
3) how do i edit the registry?

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 11:24 am
by cas
Everything you are asking here is already asked before on forum. Just use search. :wink:

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 11:32 am
by rsts
Also note that access to native api functions may not be available if you're using the demo.

cheers

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 11:33 am
by Fluid Byte
cas, please look carefully at his request, very carefully ....

--> click a button id auotmated
--> built-in download feature
--> edit registry

Yes, another scriptkiddie asking for malware in his very first post!

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 12:11 pm
by homiewagon
actually i was looking to make an installer for an irc bot i made, because if all the packages were in one package it'd be a huge file, and as for button clicking and the like, i find such things rather useful for various tasks in windows. i dont condone nor like the use of malicious software

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 12:13 pm
by homiewagon
also it's not a huge deal, i could continue using autoit and do the same things i just asked, but i wanna give another language a try. it's stupid to assume my motives are malicious

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 12:23 pm
by PB
> it's stupid to assume my motives are malicious

Not really. People often come here and ask how to make a virus with PureBasic.

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 12:31 pm
by homiewagon
i suppose, but arent most things like that coded in c++? (i wouldnt know lol)

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 3:58 pm
by Fluid Byte
Now you are mentioning IRC and bot programming ... Image

Re: want to do some basic things with api

Posted: Thu Oct 07, 2010 3:59 pm
by Trond
You can download a file with ReceiveHTTPFile(Url, Filename).

Re: want to do some basic things with api

Posted: Fri Oct 08, 2010 8:47 am
by noorderling
Fluid Byte wrote:Now you are mentioning IRC and bot programming ... Image
I totally agree, an automated behind-your-back bot installer ... ?

Re: want to do some basic things with api

Posted: Thu Oct 14, 2010 12:28 am
by homiewagon
well if thats the way you guys see it then shit i'll even post my code on here when it's finished. i dont condone malware. my shit is legit, my eventual goal is to code a complete ircd with purebasic. and as far as button clicking i think it'd be cool to have a bot that can click the new identity button every so often on advtor, because i dont like hosting bots or anything on irc on my ip, namely dalnet, (yes most tor hosts are blacklisted there but still) anyway yeah, i wanna be an active member of this community

Re: want to do some basic things with api

Posted: Thu Oct 14, 2010 1:52 pm
by Fluid Byte
homiewagon wrote:well if thats the way you guys see it ...
That's not the way we see it, that's the way it is ...

Re: want to do some basic things with api

Posted: Thu Oct 14, 2010 4:08 pm
by blueznl
Homie, we're all a bit triggerhappy here because PureBasic is so easy that scriptkiddies could easily abuse it to build installers, bots, and all sorts of malware.

Your requests trigger this response because most of the things you've asked for are typically used in such applications.

Now don't take it too harsh, why not first get some experience with the language and have some fun with it, before touching upon more critical functions that would be very specific to your application, and which might be frowned upon by other forum participants as you're a still unknown factor with unknown intentions :-)

As for your questions:

- registry editing is easy, do a search on the forum
- downloading is easy, there's a PureBasic function for that

- autoclicking is evil, I don't want ANY software to click on anything unless I have told it to do so, so no help from me there, it's the most suspicious part of your request, frankly

Re: want to do some basic things with api

Posted: Sun Oct 17, 2010 12:07 am
by BillyBob
Fluid Byte wrote:cas, please look carefully at his request, very carefully ....

--> click a button id auotmated
--> built-in download feature
--> edit registry

Yes, another scriptkiddie asking for malware in his very first post!
I am new to this forum and PB in general. However, Fluid, that was my first thought as well once I read his post. And I am just a simple PHP/MySQL guy.