ludocus Posted April 5, 2008 Posted April 5, 2008 (edited) I tried: RegWrite ('HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run', 'program', 'REG_SZ', @ScriptFullPath ) RegWrite ('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run' , 'program', 'REG_SZ', @ScriptFullPath ) but neither of them work.. I use windows XP, and in my program is just a test code: msgbox ( 0, 'test', 'test' ) no msgbox shows up when I reboot, but C:\My Documents folder comes up.. Whats the problem here? Edited April 5, 2008 by ludocus
Aassdd Posted April 5, 2008 Posted April 5, 2008 1. In value name try to remove the dot 2. You are missing a quote after ( in the 2nd line
ludocus Posted April 5, 2008 Author Posted April 5, 2008 1. In value name try to remove the dot2. You are missing a quote after ( in the 2nd lineedited, still not working
Aassdd Posted April 5, 2008 Posted April 5, 2008 Works for me: RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "MyProgram", "REG_SZ", @ScriptFullPath) MsgBox(0, "", "") I'm using 3.2.10 and 3.2.11.5
ludocus Posted April 5, 2008 Author Posted April 5, 2008 yeh, I do that.. but.. it's just.. not... proffessional.. you know.?!
Aassdd Posted April 5, 2008 Posted April 5, 2008 (edited) Lol, couldn't find anything "professional". I think you already know this, but take a look here http://windowsxp.mvps.org/Startup.htm Edited April 5, 2008 by Aassdd
JustinReno Posted April 5, 2008 Posted April 5, 2008 Did you try to compile your script before putting it in the start up folder? If you didn't, it will not work. If you want it to work without having to compile it use: @AutoItEXE & " " & @ScriptFullPath
MHz Posted April 5, 2008 Posted April 5, 2008 no msgbox shows up when I reboot, but C:\My Documents folder comes up.. Whats the problem here?Your path is something like this C:\Documents and Settings\Some Folder\.....and breaking at the first space character. So use quotes with a path that may contain a space character or more. RegWrite('HKCU\Software\Microsoft\Windows\CurrentVersion\Run' , 'program', 'REG_SZ', '"' & @ScriptFullPath & '"') The script needs to be compiled for the above example code to work.
frankpintosr Posted April 16, 2008 Posted April 16, 2008 I can not get anything to add ito my registry, seems similar to this. I am trying to create a new string value. But it never shows up. Client is Windows Vista. $date = (@MON & "/" & @MDAY & "/" & @YEAR) MsgBox (0, "date and time", $date) RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Company", "Refresh", "REG_SZ", "date") ;tried using text only to see if it would work RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\Company", "Refresh", "REG_SZ", "$date")oÝ÷ Ú«¨µéÚ The script needs to be compiled for the above example code to work.
frankpintosr Posted April 16, 2008 Posted April 16, 2008 Solved my own issue here. Seems I was missing a requires piece of code needed due to Vista UAC. #RequireAdmin
ludocus Posted April 22, 2008 Author Posted April 22, 2008 As soon as I get home I'll try it.. But I don't have Vista
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