Get your program to startup when Windows starts! menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    miLl3niUm's Avatar Member
    Reputation
    16
    Join Date
    Jun 2009
    Posts
    312
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Mitron View Post
    Well i actually only need when the user logon it's ment to be a trojan or something but i need to start up when user logon :P and i dont get that part with Microsoft.Win32 thing....
    I think you can do that from the menu.. I have to use VB for long time so I don't remember.

    Try to put this in your very first line of the code:
    Code:
    Imports Microsoft.Win32

    Get your program to startup when Windows starts!
  2. #17
    Mitron's Avatar Contributor
    Reputation
    127
    Join Date
    Jun 2008
    Posts
    1,326
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh well that part i got now.... but im such a nub.... i know codes but not Visual Studio UI so dunno how to find everything -.- but that comes later i think....
    where i find current_user thing.... or registry key thing or where i put the code ??
    sorry for all the questions....

    ----------------------------------------------------------------

  3. #18
    miLl3niUm's Avatar Member
    Reputation
    16
    Join Date
    Jun 2009
    Posts
    312
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    Imports Microsoft.Win32
    
    Private Sub AddCurrentKey(ByVal name As String, ByVal path As String)
       Dim key As RegistryKey = Registry.CurrentUser.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\Run", True)
       key.SetValue("MyTrojan", "C:/trojan.exe")
    End Sub
    Not sure if you need quotes for name/path

  4. #19
    Ebonesser's Avatar Member
    Reputation
    33
    Join Date
    Mar 2009
    Posts
    123
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    At least 2dgreengiant is on my side =P

    And Mitron, if you're using VB6:

    Private Sub Command1_Click()
    Dim Act: Set Act = CreateObject("Wscript.Shell")
    Dim Key: Key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
    Act.RegWrite Key & "\MyTrojan", "C:\trojan.exe", "REG_SZ"
    End Sub
    I don't know if it works on VB 2005+, but you can try:
    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    Dim Act : Act = CreateObject("Wscript.Shell")
    Dim Key : Key = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run"
    Act.RegWrite(Key & "\MyTrojan", "C:\trojan.exe", "REG_SZ")
    End Sub
    with the imports:
    Imports Microsoft.Win32
    //Ebonesser
    Last edited by Ebonesser; 06-20-2009 at 12:31 PM.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. What you listen to when your programming?
    By Corthezz in forum WoW Memory Editing
    Replies: 35
    Last Post: 02-18-2022, 10:26 AM
  2. [BUG]Get your extra roll when you forgot your weekly seals
    By Iscariote in forum World of Warcraft Exploits
    Replies: 2
    Last Post: 04-30-2015, 04:03 AM
  3. Getting WoW errors when Honorbuddy start. HELP pls !
    By bojan9002 in forum WoW Bots Questions & Requests
    Replies: 3
    Last Post: 09-17-2012, 02:37 PM
  4. Addicted? Startup WoW directly when computer starts! :)
    By Come Undone in forum World of Warcraft General
    Replies: 4
    Last Post: 01-17-2009, 07:34 PM
  5. Get instant Xp when WOTLK Starts
    By Fennas in forum World of Warcraft Exploits
    Replies: 32
    Last Post: 07-31-2008, 08:10 AM
All times are GMT -5. The time now is 08:42 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search