Free registry dll (and much other functions)

Posted By: TripleX

Free registry dll (and much other functions) - 03/16/05 01:27

Hey

yesterday (a very boring day ^^) i decided to rewrite my free dll (as you know i lost the source code) and to add some functions.

and now here is it.. my next free dll.. The main feature is the Registry management. You can add/remove keys/values/strings to the registry and much more.

The complete featurelist:
- Create Windows Messageboxes
- Create and Remove directorys
- Get the image size, format and mipleves out of an image, only with a filename ( no need to load them via bmap_Create)
- Get the absolut path of the game exe and the Windows folder.
- Open Internet Explorer OR the default Browser with a specific Internet address.
- Open Files with their default program
- Minimize the acknex window
- Change/get the title of the acknex window
- Delete / copy files
- Display an Open / Save dialog.
- Take screenshots with the ability to save only parts of the Front Buffer in the file
- Download files
- Get/Set file attributes (read-only,hidden etc.)
- List all files / subfolders in a folder (listed in a string)
- Get IP adress

[REGISTRY]

- Create/Remove/Open Keys
- Create/Remove/Receive Values (as string or var.. binary is not possible at the moment)
- List all subkeys, values in a (sub)key.
- Change the "region" (??) the keys are created / opened. (HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE etc.)


hmm yes thats all Maybe some more features later..
The dll is free to use. Credits would be nice, but aren't necceary.

You use this DLL on your own risk (with the registry instructions you can destroy your windows operating system if you don't use the commands correctly.. -> i recommand to create a backup before you use the registry instructions)
Don't be frightend to use the instructions. If you can edit the registry via "regedit" you can use these instructions ;-)

Finaly the downloadlink

Sorry for my bad english in this post and in the wdl

Have fun with it.

new feature wishes, comments etc. are welcome
greets
Triple-X
Posted By: blaaaaa

Re: Free registry dll (and much other functions) - 03/16/05 01:34

In Antwort auf:

you can destroy your computer if you don't use the commands correctly




thats not right, you can destroy your windows operating system if you dont use the commands correctly, but not your computer
Posted By: TripleX

Re: Free registry dll (and much other functions) - 03/16/05 01:36

@gfx-styler yep you are right (edited) But thats not good too he

TripleX
Posted By: WHURL

Re: Free registry dll (and much other functions) - 03/16/05 01:38

Well that must have been one EXTREMELY boring day, Triple-X.

Great stuff. Thank you for the contribution. We should somehow try to ensure you have as many boring days as possible.

It reminded me I have to ask Conitec whether changing the acknex icon in the window title would be ok. I totally forgot about that. Let me know when you have another 'boring day' scheduled.

Quote:

You use this DLL on your own risk (with the registry instructions you can destroy your computer if you want to.. -> i recommand to create a backup before you use the registry instructions)




Note to self : Play with the OTHER goodies.

Keep up the great work.
Posted By: Samb

Re: Free registry dll (and much other functions) - 03/16/05 01:45

hmmm kann wieder net die downlaod funktion finden ^^
und sit es möglich das die downlaod funktion zurück gibt wieviel prozent er schon rutnergeladen hat?
und ist es möglich packetdatei entpacken zu lassen so das man autopatcher machen könnte?
dann noch abfragen können ob eine datei so und so eine größe hat und ob sie überhaupt existiert und es wäre PERFEKT

bzw. nun noch die musikdll mit genauert "getposition" angabe und ich bin wunschlosglücklich
Posted By: TripleX

Re: Free registry dll (and much other functions) - 03/16/05 01:47

In Antwort auf:

dann noch abfragen können ob eine datei so und so eine größe hat und ob sie überhaupt existiert und es wäre PERFEKT




werde ich noch einbauen.

In Antwort auf:

hmmm kann wieder net die downlaod funktion finden ^^




dllfunction DllDownloadFileTo(homepage,to);

In Antwort auf:


und sit es möglich das die downlaod funktion zurück gibt wieviel prozent er schon rutnergeladen hat?




Leider ist es so das das Engine window nicht aktualisiert wird während eine DLL funktion läuft (damit das nicht so ist, müsste ich einen neuen thread erstellen. Das ist aber sau schwer..--kann ich nicht ). Deshalb auf jeden Fall NUR kleine dateien herunterladen. Oder wenigstens einen Loadscreen bringen.

TripleX
Posted By: EX Citer

Re: Free registry dll (and much other functions) - 03/16/05 02:44

Falls du mal wieder einen langweiligen Tag hast, kannst du ja mal nen "Easy Shader" basteln, mit Hilfe der Shadergurus vielleicht. Ich stell mir das wie FXComposer bzw Rendermonkey vor auch wenn ich noch nie eines dieser Programm benutzt habe. Also ich stell mir da vor, das man verschiedene Skins laden kann (skins,alphamaps,normalmaps als Beispiel), verschiedene Befehle einstellen und tweaken kann.
Bis ich mal langeweile hab muss schon was dickes passieren... solange ich einen Bleistift und Papier habe oder meinen Laptop mit 3DGS ist mir nie langweilig
Posted By: TripleX

Re: Free registry dll (and much other functions) - 03/16/05 02:47

@all ChrisB told me a way to create a new thread for the download. At the moment I'm working on the Callback function (to get the progress). I'll upload the result later.

@Ex Citer Naja dafür müsst ich mich mit Shaders auskennen

mfg
TripleX
Posted By: blaaaaa

Re: Free registry dll (and much other functions) - 03/16/05 03:36

ich mein ja nur .. nachher will keiner dein plugin benutzen weil man denkt das man seinen pc nachher sprengt oder so

aber könnte man dann nicht auch besonders böse 3dgs programme machen die mal eben die registry plätten ?
Posted By: Samb

Re: Free registry dll (and much other functions) - 03/16/05 03:36

In Antwort auf:

@all ChrisB told me a way to create a new thread for the download. At the moment I'm working on the Callback function (to get the progress). I'll upload the result later.



juhu
dann kann das dynamische patchen ja losgehn
Posted By: Error014

Re: Free registry dll (and much other functions) - 03/16/05 04:29

In Antwort auf:

aber könnte man dann nicht auch besonders böse 3dgs programme machen die mal eben die registry plätten ?




Schon unglaublich, was sich TripleX hier erlaubt!

Was ich ja mal schön und nützlich fände, wäre ein Plugin, mit dem man direkt jeden Pixel ansprechen (das geht vermutlich nicht) und ggf. ändern kann (also etwa einfärben). Geht sowas überhaupt? Wahrscheinlich nicht
Posted By: TripleX

Re: Free registry dll (and much other functions) - 03/16/05 05:57

In Antwort auf:


aber könnte man dann nicht auch besonders böse 3dgs programme machen die mal eben die registry plätten ?




Ja wäre ohne probleme möglich!

Also bin grad vom training nach hause gekommen.. Fix und fertig ;-)

Lad die ergebnisse dann morgen hoch.. Und dann muss ich erstmal einen anderen Auftrag erfüllen (n kleines GUI).

mfg
TripleX
Posted By: Perro

Re: Free registry dll (and much other functions) - 03/16/05 05:58

Quote:

Was ich ja mal schön und nützlich fände, wäre ein Plugin, mit dem man direkt jeden Pixel ansprechen (das geht vermutlich nicht) und ggf. ändern kann (also etwa einfärben). Geht sowas überhaupt? Wahrscheinlich nicht




ist dass nicht genau dass was pixelshader machen?
Posted By: TripleX

Re: Free registry dll (and much other functions) - 03/16/05 07:03

you can now download a file in a different thread! (+2 more functions too check the download status)

TripleX
Posted By: Error014

Re: Free registry dll (and much other functions) - 03/17/05 02:17

In Antwort auf:

In Antwort auf:

Was ich ja mal schön und nützlich fände, wäre ein Plugin, mit dem man direkt jeden Pixel ansprechen (das geht vermutlich nicht) und ggf. ändern kann (also etwa einfärben). Geht sowas überhaupt? Wahrscheinlich nicht





ist dass nicht genau dass was pixelshader machen?




naja, ich meinte jetzt ohne render to texture... Und auch nicht nur dort, wo entities sind, sondern generell "überall"...
Posted By: TripleX

Re: Free registry dll (and much other functions) - 03/17/05 02:24

@Error ich weiß zwar nicht genau was du meinst, aber das Thema dass mich eigentlich im moment am meisten intressiert ist Voice Chat.. mal sehen was sich da machen lässt.

TripleX
Posted By: ChrisB

Re: Free registry dll (and much other functions) - 03/17/05 03:59

Tolles Plugin.
Danke nochmal für die Callback funktion.

Viel glück beim Voice Chat, das beispiel funktionierte doch nur bei dx8.1
Posted By: BigBrainz

Re: Free registry dll (and much other functions) - 02/04/06 17:46

TripleX,

This plugin is fantastic--thank you!!

A question for you: Is there a variation of DllOpenFile that would let a user simply go and select a directory? Many schools play my game, and they want each child to be able to log on to their individual directory when they first start up, then save and load their individual games from that directory.

So I just want to select a directory, but not necessarily save or open a specific file yet. Would this require an update to the .dll or can I just code around it?

I'm trying to work around it for now by letting them save a dummy file to that directory, then just extracting the directory location from DllReceiveStr2 afterwards. But since they're only 8 years old, I'd like to get a simpler LOGIN button that just lets them select the correct directory without getting confused by saving a file or anything.

Any ideas? Thanks!
Posted By: TripleX

Re: Free registry dll (and much other functions) - 02/05/06 14:05

This is possible with the current version of my plugin, which I'll release in the next weeks. If you can't wait, here is the source code:

Code:


DLLFUNC var DllSearchFolder(STRING* title,STRING* str1,STRING* str2)
{
BROWSEINFO brinfo;
char buffer[MAX_PATH];
char buffer2[MAX_PATH];
int Image = NULL;
ITEMIDLIST* iteminfo;

brinfo.hwndOwner = ev->hWnd;
brinfo.pidlRoot = NULL;
brinfo.pszDisplayName = buffer;
brinfo.lpszTitle = title->chars;
brinfo.ulFlags = NULL;
brinfo.lpfn = NULL;
brinfo.lParam = NULL;
brinfo.iImage = Image;

iteminfo = SHBrowseForFolder(&brinfo);
if(!iteminfo) { return(_VAR(0)); }

SHGetPathFromIDList(iteminfo,buffer2);

if(str1 != 0)
{
strncpy(str1->chars,buffer,MAX_PATH);
}
else
{
DllStringSend1(buffer);
}
if(str2 != 0)
{
strncpy(str2->chars,buffer2,MAX_PATH);
}
else
{
DllStringSend2(buffer2);
}

return(_VAR(1));
}


Posted By: maybenew

Re: Free registry dll (and much other functions) - 10/26/06 17:06

a little outdated, but:

why do i get a function not found error for every function i want to call?!?

well, problem solved, dont forget the dll_handle thing
© 2024 lite-C Forums