Commands & Syntax > Commands > System >

www.perfectkeyboard.com

 

Registry SET VALUE - < reg_setvalue >() ... [Pro]

 

Registry SET VALUE
<reg_setvalue>("Registry key","Value name","Value","Type")
Available in: Professional edition

This command sets defined registry value. There are these registry roots supported:
HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_LOCAL_MACHINE
HKEY_USERS
HKEY_PERFORMANCE_DATA
HKEY_DYN_DATA

 

#

Parameter name

Parameter description

1

Registry key

Full path of registry key to be deleted. Example: HKEY_CURRENT_USER\Software\MyCompany\NewKey

2

Value name

Name of the value. Example: ProductName.

3

Value

Value. Example: Macro Toolworks.

4

Type

0 - String value.
1 - Numeric value.

 

Example (Macro Steps):

 

1

<#> <#> This command sets ProductName value

2

<#> <#> of 'HKEY_CURRENT_USER\Software\TestKey'

3

<#> <#> to Something

4

Macro execution: ONLY COMMANDS

5

Registry SET VALUE "HKEY_CURRENT_USER\Software\TestKey\ProductName"" = "Something"

Example (Plain Text):

 

<#> This command sets ProductName value

<#> of 'HKEY_CURRENT_USER\Software\TestKey'

<#> to Something

<cmds>

<reg_setvalue>("HKEY_CURRENT_USER\Software\TestKey","ProductName","Something","0")