Sign in to follow this  
Followers 0
BigDaddyO

Adding Binary Reg Key as Hex

4 posts in this topic

I am trying to write a "Quick" script that will setup my dual display settings how I want it, since when I boot up my laptop some days it reverts back to Laptop only.

I have extracted all of the Reg-Keys that are modified after I setup the dual displays how I want it and got stuck when trying to add back in some Binary keys.

I understand from reading the help file that I need to convert Binary to Hex when writing the RegKey but I don't know about this key below. THere are 6 keys that have simmilar long data as the one below. How do I write that using AutoIT? Thanks

HKEY_USERS\S-1-5-21-1085031214-1659004503-682003330-4225\Software\Microsoft\Windows\Shell\Bags\1\Desktop\ItemPos1280x800(2): 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 15 00 00 00 7A 02 00 00 14 00 1F 50 E0 4F D0 20 EA 3A 69 10 A2 D8 08 00 2B 30 30 9D 15 00 00 00 C5 02 00 00 14 00 1F 60 40 F0 5F 64 81 50 1B 10 9F 08 00 AA 00 2F 95 4E AB 00 00 00 10 03 00 00 42 00 3A 00 90 02 00 00 03 37 16 65 20 00 53 63 69 54 65 2E 6C 6E 6B 00 2A 00 03 00 04 00 EF BE 03 37 16 65 09 37 31 6D 14 00 00 00 53 00 63 00 69 00 54 00 65 00 2E 00 6C 00 6E 00 6B 00 00 00 18 00 60 00 00 00 7A 02 00 00 46 00 3A 00 8C 03 00 00 36 36 6A 0D 20 00 53 70 72 69 6E 74 2E 6C 6E 6B 00 00 2C 00 03 00 04 00 EF BE 6A 35 38 85 09 37 31 6D 14 00 00 00 53 00 70 00 72 00 69 00 6E 00 74 00 2E 00 6C 00 6E 00 6B 00 00 00 1A 00 15 00 00 00 5B 03 00 00 56 00 31 00 00 00 00 00 7D 36 95 A4 10 00 44 4F 43 55 4D 45 7E 31 00 00 3E 00 03 00 04 00 EF BE E6 34 AE A0 FF 36 F0 78 14 00 00 00 44 00 6F 00 63 00 75 00 6D 00 65 00 6E 00 74 00 61 00 74 00 69 00 6F 00 6E 00 20 00 54 00 6F 00 2D 00 44 00 6F 00 00 00 18 00 60 00 00 00 3C 04 00 00 36 00 31 00 00 00 00 00 DC 36 2C 69 10 00 49 64 65 61 73 00 22 00 03 00 04 00 EF BE CD 36 F8 74 FF 36 F0 78 14 00 00 00 49 00 64 00 65 00 61 00 73 00 00 00 14 00 15 00 00 00 1D 05 00 00 5A 00 31 00 00 00 00 00 66 35 C9 84 10 00 4B 42 41 52 54 49 7E 31 00 00 42 00 03 00 04 00 EF BE 18 35 FB 9B FF 36 F0 78 14 00 00 00 4B 00 42 00 20 00 41 00 72 00 74 00 69 00 63 00 6C 00 65 00 73 00 20 00 74 00 6F 00 20 00 55 00 70 00 6C 00 6F 00 61 00 64 00 00 00 18 00 15 00 00 00 10 03 00 00 52 00 31 00 00 00 00 00 FF 36 B1 A0 11 00 4D 4F 5A 49 4C 4C 7E 31 00 00 3A 00 03 00 04 00 EF BE E6 34 AF A0 03 37 61 64 14 00 00 00 4D 00 6F 00 7A 00 69 00 6C 00 6C 00 61 00 20 00 44 00 6F 00 77 00 6E 00 6C 00 6F 00 61 00 64 00 73 00 00 00 18 00 AB 00 00 00 C5 02 00 00 54 00 32 00 58 00 00 00 F5 36 2E 56 20 00 41 49 52 50 55 52 7E 31 2E 54 58 54 00 00 38 00 03 00 04 00 EF BE F5 36 2E 56 02 37 20 7A 14 00 00 00 61 00 69 00 72 00 20 00 70 00 75 00 72 00 69 00 66 00 69 00 65 00 72 00 2E 00 74 00 78 00 74 00 00 00 1C 00 60 00 00 00 C5 02 00 00 60 00 32 00 00 5E 00 00 98 36 FD 8C 20 00 41 50 50 4C 49 43 7E 31 2E 58 4C 53 00 00 44 00 03 00 04 00 EF BE 97 36 5B 7A FF 36 7C 6A 14 00 00 00 41 00 70 00 70 00 6C 00 69 00 63 00 61 00 74 00 69 00 6F 00 6E 00 20 00 4F 00 77 00 6E 00 65 00 72 00 73 00 2E 00 78 00 6C 00 73 00 00 00 1C 00 15 00 00 00 3C 04 00 00 72 00 32 00 96 03 00 00 4F 36 D4 96 20 00 43 52 49 54 49 43 7E 31 2E 4C 4E 4B 00 00 56 00 03 00 04 00 EF BE EC 34 D7 83 09 37 31 6D 14 00 00 00 43 00 72 00 69 00 74 00 69 00 63 00 61 00 6C 00 20 00 70 00 61 00 74 00 63 00 68 00 20 00 53 00 69 00 67 00 6E 00 20 00 6F 00 66 00 66 00 2E 00 64 00 6F 00 63 00 2E 00 6C 00 6E 00 6B 00 00 00 1C 00 AB 00 00 00 7A 02 00 00 5E 00 32 00 28 C6 8C 00 BE 36 F9 8E 20 00 48 45 4C 50 41 4C 7E 31 2E 45 58 45 00 00 42 00 03 00 04 00 EF BE F4 36 62 9B FF 36 80 6A 14 00 00 00 48 00 65 00 6C 00 70 00 41 00 6C 00 65 00 72 00 74 00 56 00 35 00 2E 00 30 00 5F 00 31 00 38 00 35 00 2E 00 65 00 78 00 65 00 00 00 1C 00 60 00 00 00 87 04 00 00 54 00 32 00 07 4A 00 00 03 37 92 6D 20 00 48 4F 55 53 45 53 7E 31 2E 58 4C 53 00 00 38 00 03 00 04 00 EF BE EB 36 0A 78 07 37 25 69 14 00 00 00 48 00 6F 00 75 00 73 00 65 00 20 00 53 00 74 00 75 00 66 00 66 00 2E 00 78 00 6C 00 73 00 78 00 00 00 1C 00 15 00 00 00 A6 03 00 00 50 00 32 00 24 00 00 00 A7 36 31 9D 80 00 49 50 41 44 44 52 7E 31 2E 42 41 54 00 00 34 00 03 00 04 00 EF BE E6 34 8A A0 FF 36 81 6A 14 00 00 00 49 00 50 00 20 00 41 00 64 00 64 00 72 00 65 00 73 00 73 00 2E 00 62 00 61 00 74 00 00 00 1C 00 15 00 00 00 F1 03 00 00 54 00 32 00 8D A4 0E 00 24 34 58 9C 80 00 49 53 4F 4D 41 4B 7E 31 2E 45 58 45 00 00 38 00 03 00 04 00 EF BE E6 34 8A A0 FF 36 81 6A 14 00 00 00 49 00 53 00 4F 00 20 00 4D 00 61 00 6B 00 65 00 72 00 20 00 76 00 32 00 2E 00 65 00 78 00 65 00 00 00 1C 00 60 00 00 00 A6 03 00 00 66 00 32 00 29 01 00 00 C7 36 F3 A6 20 00 4D 41 53 54 45 52 7E 31 2E 54 58 54 00 00 4A 00 03 00 04 00 EF BE C4 36 3D 88 FF 36 82 6A 14 00 00 00 4D 00 61 00 73 00 74 00 65 00 72 00 69 00 6E 00 67 00 20 00 53 00 65 00 72 00 76 00 65 00 72 00 20 00 32 00 30 00 30 00 33 00 2E 00 74 00 78 00 74 00 00 00 1C 00 60 00 00 00 D2 04 00 00 72 00 32 00 C6 2A 00 00 F0 36 8F A4 20 00 4F 55 54 4C 4F 4F 7E 31 2E 44 4F 43 00 00 56 00 03 00 04 00 EF BE F0 36 D5 96 FF 36 82 6A 14 00 00 00 4F 00 75 00 74 00 6C 00 6F 00 6F 00 6B 00 20 00 32 00 30 00 30 00 37 00 20 00 43 00 75 00 73 00 74 00 6F 00 6D 00 20 00 43 00 6F 00 6E 00 66 00 69 00 67 00 2E 00 64 00 6F 00 63 00 78 00 00 00 1C 00 60 00 00 00 10 03 00 00 5A 00 32 00 5D 07 00 00 9E 36 4F 63 20 00 52 45 43 4F 52 44 7E 31 2E 4C 4E 4B 00 00 3E 00 03 00 04 00 EF BE 9E 36 4F 63 09 37 32 6D 14 00 00 00 52 00 65 00 63 00 6F 00 72 00 64 00 4E 00 6F 00 77 00 21 00 20 00 50 00 6C 00 75 00 73 00 2E 00 6C 00 6E 00 6B 00 00 00 1C 00 60 00 00 00 1D 05 00 00 54 00 32 00 00 E8 54 00 F0 36 83 A6 20 00 53 44 58 4F 55 54 7E 31 2E 4D 53 50 00 00 38 00 03 00 04 00 EF BE F0 36 83 A6 FF 36 83 6A 14 00 00 00 53 00 44 00 58 00 6F 00 75 00 74 00 6C 00 6F 00 6F 00 6B 00 30 00 37 00 2E 00 4D 00 53 00 50 00 00 00 1C 00 15 00 00 00 87 04 00 00 90 00 32 00 8D 03 00 00 42 35 A1 61 20 00 53 48 4F 52 54 43 7E 32 2E 4C 4E 4B 00 00 74 00 03 00 04 00 EF BE 42 35 A1 61 09 37 32 6D 14 00 00 00 53 00 68 00 6F 00 72 00 74 00 63 00 75 00 74 00 20 00 74 00 6F 00 20 00 51 00 41 00 20 00 43 00 65 00 72 00 74 00 69 00 66 00 69 00 63 00 61 00 74 00 69 00 6F 00 6E 00 20 00 50 00 61 00 70 00 65 00 72 00 77 00 6F 00 72 00 6B 00 2E 00 64 00 6F 00 63 00 2E 00 6C 00 6E 00 6B 00 00 00 1C 00 15 00 00 00 D2 04 00 00 58 00 32 00 00 D0 00 00 09 37 BD 70 20 00 55 50 44 41 54 45 7E 31 2E 58 4C 53 00 00 3C 00 03 00 04 00 EF BE E6 34 8D A0 09 37 BD 70 14 00 00 00 55 00 50 00 44 00 41 00 54 00 45 00 20 00 43 00 44 00 20 00 49 00 4E 00 46 00 4F 00 2E 00 78 00 6C 00 73 00 00 00 1C 00 60 00 00 00 F1 03 00 00 5A 00 32 00 C6 2B 00 00 C8 36 D5 70 20 00 56 4D 57 41 52 45 7E 32 2E 44 4F 43 00 00 3E 00 03 00 04 00 EF BE C6 36 A1 72 FF 36 84 6A 14 00 00 00 56 00 4D 00 77 00 61 00 72 00 65 00 20 00 51 00 41 00 57 00 6F 00 72 00 6C 00 64 00 2E 00 64 00 6F 00 63 00 78 00 00 00 1C 00 60 00 00 00 5B 03 00 00 4A 00 32 00 97 34 00 00 C7 36 DA 91 20 00 56 4D 57 41 52 45 7E 31 2E 44 4F 43 00 00 2E 00 03 00 04 00 EF BE 9E 36 FD 89 FF 36 85 6A 14 00 00 00 56 00 4D 00 77 00 61 00 72 00 65 00 2E 00 64 00 6F 00 63 00 78 00 00 00 1C 00 60 00 00 00 5B 03 00 00 00 00 00 00


Share this post


Link to post
Share on other sites



I am trying to write a "Quick" script that will setup my dual display settings how I want it, since when I boot up my laptop some days it reverts back to Laptop only.

I have extracted all of the Reg-Keys that are modified after I setup the dual displays how I want it and got stuck when trying to add back in some Binary keys.

I understand from reading the help file that I need to convert Binary to Hex when writing the RegKey but I don't know about this key below. THere are 6 keys that have simmilar long data as the one below. How do I write that using AutoIT? Thanks

Like this:

$sKey = "HKEY_USERS\S-1-5-21-1085031214-1659004503-682003330-4225\Software\Microsoft\Windows\Shell\Bags\1\Desktop"
$sValueName = "ItemPos1280x800(2)"
$sValue = "00000000000000000000000000000000150000007A02000014001F50E04FD020" & _
"EA3A6910A2D808002B30309D15000000C502000014001F6040F05F6481501B10" & _
"9F0800AA002F954EAB0000001003000042003A00900200000337166520005363" & _
; etc., etc., ...
"2000564D574152457E312E444F4300002E0003000400EFBE9E36FD89FF36856A" & _
"1400000056004D0077006100720065002E0064006F006300780000001C006000" & _
"00005B03000000000000"

RegWrite($sKey,$sValueName, "REG_BINARY", $sValue)

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Like this:

$sKey = "HKEY_USERS\S-1-5-21-1085031214-1659004503-682003330-4225\Software\Microsoft\Windows\Shell\Bags\1\Desktop"
$sValueName = "ItemPos1280x800(2)"
$sValue = "00000000000000000000000000000000150000007A02000014001F50E04FD020" & _
"EA3A6910A2D808002B30309D15000000C502000014001F6040F05F6481501B10" & _
"9F0800AA002F954EAB0000001003000042003A00900200000337166520005363" & _
; etc., etc., ...
"2000564D574152457E312E444F4300002E0003000400EFBE9E36FD89FF36856A" & _
"1400000056004D0077006100720065002E0064006F006300780000001C006000" & _
"00005B03000000000000"

RegWrite($sKey,$sValueName, "REG_BINARY", $sValue)

:)

?

OK, I thought from reading the help file I had to convert it to Hex. Or is this already Hex?

Thanks,

Mike


Share this post


Link to post
Share on other sites

OK, I thought from reading the help file I had to convert it to Hex. Or is this already Hex?

Thanks,

Mike

Looks like it to me.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

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  
Followers 0