want to do some basic things with api

Windows specific forum
homiewagon
New User
New User
Posts: 5
Joined: Thu Oct 07, 2010 11:12 am

want to do some basic things with api

Post 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?
cas
Enthusiast
Enthusiast
Posts: 597
Joined: Mon Nov 03, 2008 9:56 pm

Re: want to do some basic things with api

Post by cas »

Everything you are asking here is already asked before on forum. Just use search. :wink:
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Re: want to do some basic things with api

Post by rsts »

Also note that access to native api functions may not be available if you're using the demo.

cheers
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: want to do some basic things with api

Post 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!
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
homiewagon
New User
New User
Posts: 5
Joined: Thu Oct 07, 2010 11:12 am

Re: want to do some basic things with api

Post 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
homiewagon
New User
New User
Posts: 5
Joined: Thu Oct 07, 2010 11:12 am

Re: want to do some basic things with api

Post 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
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: want to do some basic things with api

Post 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.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
homiewagon
New User
New User
Posts: 5
Joined: Thu Oct 07, 2010 11:12 am

Re: want to do some basic things with api

Post by homiewagon »

i suppose, but arent most things like that coded in c++? (i wouldnt know lol)
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: want to do some basic things with api

Post by Fluid Byte »

Now you are mentioning IRC and bot programming ... Image
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Re: want to do some basic things with api

Post by Trond »

You can download a file with ReceiveHTTPFile(Url, Filename).
noorderling
User
User
Posts: 16
Joined: Fri Jul 16, 2010 3:54 pm

Re: want to do some basic things with api

Post by noorderling »

Fluid Byte wrote:Now you are mentioning IRC and bot programming ... Image
I totally agree, an automated behind-your-back bot installer ... ?
homiewagon
New User
New User
Posts: 5
Joined: Thu Oct 07, 2010 11:12 am

Re: want to do some basic things with api

Post 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
User avatar
Fluid Byte
Addict
Addict
Posts: 2336
Joined: Fri Jul 21, 2006 4:41 am
Location: Berlin, Germany

Re: want to do some basic things with api

Post 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 ...
Windows 10 Pro, 64-Bit / Whose Hoff is it anyway?
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6166
Joined: Sat May 17, 2003 11:31 am
Contact:

Re: want to do some basic things with api

Post 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
( 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
BillyBob
User
User
Posts: 21
Joined: Fri Oct 15, 2010 1:02 am
Location: Canada

Re: want to do some basic things with api

Post 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.
Post Reply