bobheart Posted September 10, 2004 Share Posted September 10, 2004 Say you have a program and you want to have a Checkbox when checked it adds your program to the start folder in the registry so when the computer starts your program starts . Where is that startup folder in the registry and what do you put in it to have the program start ? I'm new to the registry stuff. Link to comment Share on other sites More sharing options...
nobby Posted September 10, 2004 Share Posted September 10, 2004 Hey, I believe the entry you are looking for is at: HKLM or HKCU \SOFTWARE\Microsoft\Windows\CurrentVersion\Run CheersNobby Link to comment Share on other sites More sharing options...
bobheart Posted September 10, 2004 Author Share Posted September 10, 2004 Can't seem to find that ? where about would it be ? Link to comment Share on other sites More sharing options...
nobby Posted September 10, 2004 Share Posted September 10, 2004 HKLM = HKEY_LOCAL_MACHINE HKCU = HKEY_CURRENT_USER Start regedit, do a search for RUN, select te option look at Key for faster search CheersNobby Link to comment Share on other sites More sharing options...
bobheart Posted September 10, 2004 Author Share Posted September 10, 2004 Ok got that all worked out . so how would I have this when it is checked it loads the key and loads the path for the app ? As we know not all programs are installed in the same place . So I need the "Hello this is a test " part to have the path to the app . #cs - ### Generated by AutoBuilder 0.4 -- do not modify ### 414 190 0010000000000000 checkbox $checkbox_1 Checkbox 1 280 150 100 10 0 0 #ce - ### End of Dump ### ;Script generated by AutoBuilder 0.4 Opt("GUICoordMode", 1) Opt("GUINotifyMode", 1) GuiCreate("MyGUI", 412,185,(@DesktopWidth-412)/2, (@DesktopHeight-185)/2 , 0x04CF0000) $checkbox_1 = GUISetControl("checkbox", "Checkbox 1", 280, 150, 100, 10) GuiShow() While 1 sleep(100) $msg = GuiMsg(0) Select Case $msg = -3 Exit Case $msg = 0 ;;; Case $msg = $checkbox_1 ; Write a single REG_SZ value RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "Run", "REG_SZ", "Hello this is a test") ;;; EndSelect WEnd Exit Link to comment Share on other sites More sharing options...
this-is-me Posted September 10, 2004 Share Posted September 10, 2004 RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "Application name", "REG_SZ", @ScriptFullPath) Who else would I be? Link to comment Share on other sites More sharing options...
bobheart Posted September 10, 2004 Author Share Posted September 10, 2004 Thank you . how do I make the checkbox react to the check in it ? so it will add to the registry . Link to comment Share on other sites More sharing options...
mcfr1es Posted September 10, 2004 Share Posted September 10, 2004 (edited) Edited September 10, 2004 by mcfr1es Roger! You son of a big pile o' Monkey Nuts. Link to comment Share on other sites More sharing options...
bobheart Posted September 10, 2004 Author Share Posted September 10, 2004 lolĀ ehh i feel the urge to scream RTFM!! but i think ill hold back. <{POST_SNAPBACK}>Good then I won't tell you TSTFU .. Link to comment Share on other sites More sharing options...
bobheart Posted September 10, 2004 Author Share Posted September 10, 2004 I have this so far but getting this error . (12) : ==> Error in expression.: GUICreate("My GUI") ; will create a dialog box that when displayed is centered GUISetControl("checkbox", "my checkbox", 10,10) GuiSetControlNotify() GUIShow() While RegWrite(0,"", "the Checkbox has been clicked") ; Write a single REG_SZ value RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "Application name", "REG_SZ", @ScriptFullPath) WendJust trying to make it work not doing so good . Link to comment Share on other sites More sharing options...
bobheart Posted September 10, 2004 Author Share Posted September 10, 2004 Never mind I got it to work on my own .Thanks for the help that was giving to me . Link to comment Share on other sites More sharing options...
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