Programm automatisch in Autostarts eingefügt

  • Hey wie oben genannt,

    will ich wissen ob es über AutoIt eine Funktion gibt,

    die meinem Programm/Tool etc. sagt das es wenn es compiliert ist,

    dirket in Autostarts rein "gehen" soll?

    Das sich das Tool mit jedem PC-Start mit startet.

    Gruß Nismo

    Einmal editiert, zuletzt von Nismo (30. März 2008 um 18:01)

  • Schau dir mal den Befehl "RegWrite" an und unter

    Start -> Ausführen:
    -msconfig
    -regedit

  • [url='http://www.autoitscript.com/autoit3/docs/intro/lang_variables.htm']

    [autoit]

    $scriptname = StringTrimRight(@ScriptName,4)
    FileCreateShortcut(@ScriptDir & "\"&$scriptname&".exe",@startupDir & "\"&$scriptname&".lnk",@ScriptDir)

    [/autoit]


    oder

    [autoit]

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", @scriptname, "REG_SZ",@scriptfullpath)

    [/autoit]
  • ausm kop...

    [autoit]

    if @compiled and not @ScriptFullPath = @StartupDir&'\'&@scriptname then filecoppy(@ScriptFullPath,@StartupDir&'\'&@scriptname)

    [/autoit]


    grez

    edit: zu spät

  • [url='http://www.autoitscript.com/autoit3/docs/intro/lang_variables.htm']

    [autoit]

    $scriptname = StringTrimRight(@ScriptName,4)
    FileCreateShortcut(@ScriptDir & "\"&$scriptname&".exe",@startupDir & "\"&$scriptname&".lnk",@ScriptDir)

    [/autoit]


    oder

    [autoit]

    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", @scriptname, "REG_SZ",@scriptfullpath)

    [/autoit]


    Also okay ich probiere es mal aus, melde mich dann weenn es klappt^^

    Gruß Nismo und thx für die schnelle hilfe schon mal

    Wo muss ich es denn reinsetzen?

    Ich hab es in die Funktion drinne

    is es da richtig?

    Einmal editiert, zuletzt von Nismo (30. März 2008 um 17:58)

  • okay hat sich erledigt ist auserhalb der Funktion, da hab ich es jetzt drinne.

    THX an alle für die Hilfe.

    Gruß Nismo