|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
editing a value in registry from a textbox/inputbox
here is the idea, i have a game which i play called "rainbowsix"
to change your player name you need to open the game and go through all the pages and eventually u can edit it in there. however i looked in the registry and there is a value "MultiplayerPlayerName" i was thinking, of making a small program with a textbox/inputbox not sure whch is easyer, and a command button. once the user inputs his/her name it automatically updates the registry value and saves it. i have asked this question on other visual basic forums and never had a progress gaining awnser or sollution. i have attached a screenshot of my registry where i need editing so you can see where exactly it is. anyone who knows how this is done or can be achived i would be very greatfull to hear from you. if you have code or know code to do this please post it, or add it into a zip file and ill look at it thanks again, hope you guys can help toothpick |
|
#2
|
|||
|
|||
|
To write the key...
Dim RegObj, RegKey As String Set RegObj = CreateObject("WScript.Shell") RegKey = LS_KEY & "\" & LS_VALUE Debug.Print RegKey RegObj.RegWrite RegKey, Text1.Text Set RegObj = Nothing To read the key... Dim RegObj, RegKey Set RegObj = CreateObject("WScript.Shell") RegKey = RegObj.RegRead(LS_KEY & "\" & LS_VALUE) If RegKey = "" Then MsgBox "There is no registry value for this key!" Else MsgBox "Registry key value is " & RegKey & "!" End If Set RegObj = Nothing |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Visual Basic Programming > editing a value in registry from a textbox/inputbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|