Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old August 21st, 2003, 01:43 PM
toothpick toothpick is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 1 toothpick User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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
Attached Images
File Type: jpg ss of reg.jpg (72.1 KB, 382 views)

Reply With Quote
  #2  
Old August 22nd, 2003, 03:18 PM
jeffreyhamby jeffreyhamby is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Location: Houston, TX
Posts: 4 jeffreyhamby User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > editing a value in registry from a textbox/inputbox


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway