|
-
Apr 29th, 2001, 12:55 AM
#25
Thread Starter
Lively Member
Sorry~~
da_silvy:
your complicated code has been confusing me.... :P no offence
anyway, i also trying to test you code.i am intent ti listen to your suggestion. so i would like to use method to to savechanges for my registry for the application shortcut.
i am trying to arrange you code back into my vb,therefore take some time to finish.Last, i want to asked a dummy question.
(sorry i am just a stupid beginner~) :P
if my program name Keycode Tracker and the path is "c:\windows\desktop\keycode tracker.exe"
then which variable i need to change??
Shall i change like this?
Private Sub Command1_Click()
Dim ProgPath As String, ProgTitle As String
ProgPath = App.Path & "\" & App.EXEName & ".exe"
ProgTitle = App.Title
SaveSettingString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run","Keycode Tracker","c:\windows\desktop\keycode tracker.exe"
End Sub
and where shall i put this in?in my form or module?
'In a sub
SaveSettingString HKEY_LOCAL_MACHINE, "Software\Microsoft\Windows\CurrentVersion\Run", "MyProg", "c:\myprog.exe"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|