Page 1 of 1 1
Topic Options
#137077 - 2005-04-04 04:35 PM Editing register
paulm Offline
Fresh Scripter

Registered: 2001-11-20
Posts: 5
Loc: drachten
Hello, I Tried to find a simple example how to change a registerkey HKCU_Control Panel\International\sShortDate. I am new here and have never done this before. The explainations that comes with kix is not that clear for me. How can help?
Top
#137078 - 2005-04-04 04:38 PM Re: Editing register
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
jup, its just a one liner like:

$= writevalue("Control Panel\International","sShortDate","yyyy/MM/dd", "REG_SZ")

-Shawn

Top
#137079 - 2005-04-04 04:39 PM Re: Editing register
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
see WriteValue()
http://www.scriptlogic.com/Kixtart/htmlhelp/Functions/writevalue.htm
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#137080 - 2005-04-04 04:51 PM Re: Editing register
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Those examples change the value, not the key.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#137081 - 2005-04-04 05:19 PM Re: Editing register
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
basta ;0)
Top
#137082 - 2005-04-04 06:55 PM Re: Editing register
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
I'm glad that les was awake.
why did you try to fool this bud?
_________________________
!

download KiXnet

Top
#137083 - 2005-04-04 07:25 PM Re: Editing register
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Maybe paulm really meant to say value, not key. My Carnac hat stopped working the day Johnny died. Maybe Shawn's Carnac hat has the perpetual license.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#137084 - 2005-04-04 07:27 PM Re: Editing register
Shawn Administrator Offline
Administrator
*****

Registered: 1999-08-13
Posts: 8611
All I saw was the word "sShortDate", totally missed the "key" thing. My Carnac hat was pulled over my eyes.
Top
#137085 - 2005-04-05 01:16 AM Re: Editing register
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You need to delete the old registry key and write a new registry key. You'd also write a function that recursively transfers all subkeys/values. See e.g. the RegRename() UDF for inspiration.
_________________________
There are two types of vessels, submarines and targets.

Top
#137086 - 2005-04-06 12:10 PM Re: Editing register
paulm Offline
Fresh Scripter

Registered: 2001-11-20
Posts: 5
Loc: drachten
I want to alert the regional settings, because an application is looking to the shortdate format. I am new to kix and stil impressed with the commands.
Top
#137087 - 2005-04-06 12:14 PM Re: Editing register
paulm Offline
Fresh Scripter

Registered: 2001-11-20
Posts: 5
Loc: drachten
The key Shawn suggested $= writevalue("Control Panel\International","sShortDate","yyyy/MM/dd", "REG_SZ") works fine!

Thanx Shawn

Top
#137088 - 2005-04-06 02:50 PM Re: Editing register
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Once again, it is a value hence the WriteValue() function, not a key.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1110 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.071 seconds in which 0.03 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org