lopolop Posted November 12, 2005 Posted November 12, 2005 I was woundering if there was a way to automatically start my program allways... like even when i reboot my pc it is a startup program....
BigDod Posted November 12, 2005 Posted November 12, 2005 I was woundering if there was a way to automatically start my program allways... like even when i reboot my pc it is a startup program....Either add it to the run section of the registry or copy it into the startup folder Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
lopolop Posted November 12, 2005 Author Posted November 12, 2005 well how do i add it to the run part of the registry? i want it so when you run the program it will automatically make it start on startup
w0uter Posted November 12, 2005 Posted November 12, 2005 regwrite to hkcu/software/microsoft/windows/currentversion/run My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
lopolop Posted November 12, 2005 Author Posted November 12, 2005 i have no clue what to do now what value do i write or what next?
w0uter Posted November 12, 2005 Posted November 12, 2005 google is your friend. My UDF's:;mem stuff_Mem;ftp stuff_FTP ( OLD );inet stuff_INetGetSource ( OLD )_INetGetImage _INetBrowse ( Collection )_EncodeUrl_NetStat_Google;random stuff_iPixelSearch_DiceRoll
lopolop Posted November 12, 2005 Author Posted November 12, 2005 i searched and i came up with a bunch of chinese sites..
BigDod Posted November 12, 2005 Posted November 12, 2005 i have no clue what to do now what value do i write or what next?If you do not understand the registry it is best that you do not mess with it. Use FileCopy and copy your program to the startup folder. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
lopolop Posted November 12, 2005 Author Posted November 12, 2005 (edited) well which start up folder? one thing is i have 2 hd's and i searched start up and more then one came up... wait i think i got it... regwrite("hklm\Software\Microsoft\Windows\CurrentVersion\Run\Autoitprog", "C:\Documents and Settings\user\Desktop\AutoIt Scripts\D2Logon.exe", "REG_SZ") Edited November 12, 2005 by lopolop
BigDod Posted November 12, 2005 Posted November 12, 2005 well which start up folder? one thing is i have 2 hd's and i searched start up and more then one came up...@StartupCommonDirRead the help file. Time you enjoyed wasting is not wasted time ......T.S. Elliot Suspense is worse than disappointment................Robert Burns God help the man who won't help himself, because no-one else will...........My Grandmother
Thatsgreat2345 Posted November 12, 2005 Posted November 12, 2005 (edited) well if you just adding it to the startup folder wouldnt it just be FileCopy("FILE LOCATION YOU WANT TO ADD", "C:\Documents and Settings\NAME OF USER\Start Menu\Programs\Startup") Edited November 12, 2005 by thatsgreat2345
lopolop Posted November 12, 2005 Author Posted November 12, 2005 (edited) how about this tho...$ProgPath = "C:\Documents and Settings\user\Desktop\AutoIt Scripts\D2Logon.exe" regwrite("hklm\Software\Microsoft\Windows\CurrentVersion\Run\Autoitprog", $ProgPath, "REG_SZ")i got it from...http://www.windowsdevcenter.com/pub/a/orei...artup_0401.html[EDIT]If $start_up = "Yes" Then FileCopy( @SCRIPTDIR, @StartupCommonDir ) IniWrite ( "D2logon Info.ini", "Start", "St_StartUp", "Set" ) Endif ElseIf $start_up = "No" Then FileDelete( @StartupCommonDir & "\D2Logon.au3" ) Endif ElseIf $start_up = "Set" Then EndIFso this should work right? and also the \d2logon.au3 part will i have to change to *.exe if i plan to compile this...?[edit]ok that was way roung but i got it now thanks! Edited November 12, 2005 by lopolop
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now