Sign in to follow this  
Followers 0
bobheart

Not sure if anyone here knows about this

11 posts in this topic

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.

Share this post


Link to post
Share on other sites



Hey,

I believe the entry you are looking for is at:

HKLM or HKCU \SOFTWARE\Microsoft\Windows\CurrentVersion\Run


CheersNobby

Share this post


Link to post
Share on other sites

Can't seem to find that ? where about would it be ?

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

RegWrite("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "Application name", "REG_SZ", @ScriptFullPath)


Who else would I be?

Share this post


Link to post
Share on other sites

Thank you . how do I make the checkbox react to the check in it ? so it will add to the registry .

Share this post


Link to post
Share on other sites

#8 ·  Posted (edited)

:(:ph34r: Edited by mcfr1es

Roger! You son of a big pile o' Monkey Nuts.

Share this post


Link to post
Share on other sites

lol  :ph34r:

ehh i feel the urge to scream RTFM!! but i think ill hold back. :(

<{POST_SNAPBACK}>

Good then I won't tell you TSTFU ..

Share this post


Link to post
Share on other sites

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) 

Wend

Just trying to make it work not doing so good .

Share this post


Link to post
Share on other sites

Never mind I got it to work on my own .

Thanks for the help that was giving to me .

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0