Skip to content

Instantly share code, notes, and snippets.

@mattcuk
Created October 26, 2020 11:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattcuk/98fcfeec9be55ec50aa49dc3a1b2af57 to your computer and use it in GitHub Desktop.
Save mattcuk/98fcfeec9be55ec50aa49dc3a1b2af57 to your computer and use it in GitHub Desktop.
Example multi-line registry entry file for USB Detect & Launch
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\VB and VBA Program Settings]
[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\USBDetector]
[HKEY_CURRENT_USER\Software\VB and VBA Program Settings\USBDetector\Settings]
"Interval"="10"
"Advanced"=hex(1):6c,00,61,00,62,00,65,00,6c,00,3a,00,28,00,61,00,6e,00,79,00,29,00,0a,00,65,00,78,00,65,00,63,00,3a,00,22,00,43,00,3a,00,5c,00,41,00,70,00,70,00,5c,00,55,00,53,00,42,00,2d,00,57,00,61,00,72,00,6e,00,69,00,6e,00,67,00,2e,00,62,00,61,00,74,00,22,00,20,00,22,00,25,00,31,00,22,00,0a,00,69,00,67,00,6e,00,6f,00,72,00,65,00,3a,00,63,00,3a,00,5c,00,\
00,00
@mattcuk
Copy link
Author

mattcuk commented Oct 26, 2020

To create the main hex string, I used this online tool to help.. https://www.rapidtables.com/convert/number/ascii-to-hex.html

For registry entries set it to 'UTF-16', and 'Comma' separated. Always end the string with 00,00 which signifies end of string.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment