Jump to content
Sign in to follow this  
Zithen

regwite

Recommended Posts

Zithen

trying to run this but its not working correctly....

it will create the keyname but not the value name

RegWrite("HKEY_LOCAL_MACHINE\software\auto", "Scancode Map", "REG_BINARY", "hex:00,00,00,00,00,00,00,00,03,00,00,00,00,00,5B,E0,00,00,5C,E0,00,00,00,00")

any ideas

Share this post


Link to post
Share on other sites
MHz

From the helpfile:

Remarks

A registry key must start with "HKEY_LOCAL_MACHINE" ("HKLM") or "HKEY_USERS" ("HKU") or "HKEY_CURRENT_USER" ("HKCU") or "HKEY_CLASSES_ROOT" ("HKCR") or "HKEY_CURRENT_CONFIG" ("HKCC").

When running on 64-bit Windows if you want to delete a key or value specific to the 64-bit environment you have to suffix the HK... with 64 i.e. HKLM64.

AutoIt supports registry keys of type REG_BINARY, REG_SZ, REG_MULTI_SZ, REG_EXPAND_SZ, and REG_DWORD.

To access the (Default) value use "" (a blank string) for the valuename.

When writing a REG_BINARY key use a string of hex characters, e.g. the REG_BINARY value of 01,a9,ff,77 can be written by using the string "01A9FF77".

So your line of code should be:

RegWrite("HKLM\software\auto", "Scancode Map", "REG_BINARY", "00000000000000000300000000005BE000005CE000000000")

Share this post


Link to post
Share on other sites
Zithen

doh i must have missed that line

From the helpfile:

So your line of code should be:

RegWrite("HKLM\software\auto", "Scancode Map", "REG_BINARY", "00000000000000000300000000005BE000005CE000000000")

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.