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
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
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)
oder
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)
[/autoit]
FileCreateShortcut(@ScriptDir & "\"&$scriptname&".exe",@startupDir & "\"&$scriptname&".lnk",@ScriptDir)[autoit]
oderRegWrite("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?
okay hat sich erledigt ist auserhalb der Funktion, da hab ich es jetzt drinne.
THX an alle für die Hilfe.
Gruß Nismo