Jump to content

Not sure if anyone here knows about this


bobheart
 Share

Recommended Posts

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

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

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 .

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...