Register for your free account! | Forgot your password?

Go Back   elitepvpers > Off-Topics > Off Topic
You last visited: Today at 17:03

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++]Autorun

Discussion on [C++]Autorun within the Off Topic forum part of the Off-Topics category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: May 2009
Posts: 1,284
Received Thanks: 251
[C++]Autorun

Ich will mein Programm wenn windows gestartet wird das, das Programm gestartet wird.
und wenn das Programm gestartet wird ein registry oder im autostart ordner erstellt wird.

Natürlich in C++
2Player2 is offline  
Old 07/28/2010, 14:36   #2
 
elite*gold: 0
Join Date: Feb 2010
Posts: 247
Received Thanks: 77
Hast ne pn mit dem Code
Tschiter Ichs Deh is offline  
Old 07/28/2010, 14:41   #3
 
elite*gold: 0
Join Date: Jul 2010
Posts: 62
Received Thanks: 4
@2Player2

Willste das ganze Programm in C++ haben?
Weil sonst könntest du das ganze auch in Batch oder in Auto It schreiben, sodass dieses dann dein C++ Programm aufruft.

Greetz
Mr. Pancake-Trader is offline  
Old 07/28/2010, 14:45   #4
 
elite*gold: 0
Join Date: May 2009
Posts: 1,284
Received Thanks: 251
in c++
will kein batch oder ähnliches
fördert pc-auslastung
2Player2 is offline  
Old 07/28/2010, 14:57   #5
 
elite*gold: 0
Join Date: Jul 2010
Posts: 62
Received Thanks: 4
Quote:
Originally Posted by 2Player2 View Post
in c++
will kein batch oder ähnliches
fördert pc-auslastung
Da hast du Recht, Skirptsprachen sind nicht besonders schnell.
Beispiel: Auto It, wir erst in C++ "umgewandelt" und dann in Assembler, bis es endlich läuft, während C++ nur in Assembler "umgewandelt" werden muss.
Also wenn ich das richtig verstehe hast du ein C++ Programm geschrieben, dieses soll sich selber beim Systemstart aufrufen und einen Registry Eintrag schreiben, oder?
(Ich kann zwar nur begrenz C++, aber kann dir so ne kleine Skizze geben)
Lösung:
Mache ne If Schleife wo checkt ob das Programm im Autostart oder in der Registry (in dem Ordner Run) ist.

PHP Code:
int main()
{
If (
"C:\Dokumente und Einstellungen\Administrator\Startmenü\Programme\Autostart\Programm"==True)
{
goto 
End;
}
Else
{
Tu Programm zum Autostart;
}
:
End
Führ Programm weiter aus
;

Hoffe ich konnte dir helfen, der Thx Button ist nicht umsonst da :P
Mr. Pancake-Trader is offline  
Old 07/28/2010, 15:11   #6
 
elite*gold: 0
Join Date: May 2009
Posts: 1,284
Received Thanks: 251
Quote:
Originally Posted by Mr. Pancake-Trader View Post
Da hast du Recht, Skirptsprachen sind nicht besonders schnell.
Beispiel: Auto It, wir erst in C++ "umgewandelt" und dann in Assembler, bis es endlich läuft, während C++ nur in Assembler "umgewandelt" werden muss.
Also wenn ich das richtig verstehe hast du ein C++ Programm geschrieben, dieses soll sich selber beim Systemstart aufrufen und einen Registry Eintrag schreiben, oder?
(Ich kann zwar nur begrenz C++, aber kann dir so ne kleine Skizze geben)
Lösung:
Mache ne If Schleife wo checkt ob das Programm im Autostart oder in der Registry (in dem Ordner Run) ist.

PHP Code:
int main()
{
If (
"C:\Dokumente und Einstellungen\Administrator\Startmenü\Programme\Autostart\Programm"==True)
{
goto 
End;
}
Else
{
Tu Programm zum Autostart;
}
:
End
Führ Programm weiter aus
;

Hoffe ich konnte dir helfen, der Thx Button ist nicht umsonst da :P
aber es soll sich dann von alleine in den autostart ornder kopiert werden
2Player2 is offline  
Old 07/28/2010, 15:59   #7
 
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,345
ms​ is offline  
Thanks
1 User
Old 07/28/2010, 16:08   #8
 
elite*gold: 0
Join Date: May 2009
Posts: 1,284
Received Thanks: 251
Quote:
Originally Posted by Disconnect View Post
BYTE pfad[] = "laufwerk\\programmpfad\\name.exe";
HKEY hkey;
RegCreateKeyEx(HKEY_CURRENT_USER,"Software\\Micros oft\\Windows\\CurrentVersion\\Run", 0, 0, REG_OPTION_NON_VOLATILE, KEY_ALL_ACCESS, NULL, &hkey, 0);
RegSetValueEx(hkey, "schluessel", 0, REG_SZ, pfad, sizeof(pfad));
RegCloseKey(hkey);

ty probier gleich aus
2Player2 is offline  
Reply


Similar Threads Similar Threads
USB-Stick autorun
11/28/2008 - Main - 8 Replies
Hallo Community :), ich mache zZ ein Projekt in der Schule indem wir das Thema Keylogger bearbeiten. Wollte fragen wie ich eine *.exe vom USB-Stick starte während ich den Login-Bildschirm vor mir hab !? Mein Lehrer meinte es müsste mit einer autorun.bak bzw. autorun.inf funktionieren. Das ist leider bei USB-Sticks nicht der Fall :P geht nur bei CDs. Hat jemand von euch ne Idee ? Mit einer externen Festplatte funktioniert die autorun.inf seltsamerweise O.o Freue mich über jede Hilfe =) ...
Autorun
10/29/2008 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 14 Replies
First off, LOL. This is a really simple glitch but very helpful (at least to me) Ok first off when you're in game hold down W to run forward, then open up the party screen. Then as soon as you hit create let loose of the W key. Hit cancel then exit out of the party screen and change angles with the right mouse button held and move the mouse. You'll continue to run forward and can change direction with mouse.



All times are GMT +1. The time now is 17:06.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.