Attachment 'UncheckCase.au3'
Download 1 #include <MsgBoxConstants.au3>
2
3 Local $bin1 = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections", "DefaultConnectionSettings")
4 Local $bin2 = RegRead("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections", "SavedLegacySettings")
5
6 $str1 = String($bin1)
7 $str2 = String($bin2)
8
9 Local $aArray1 = StringToASCIIArray($str1)
10 Local $aArray2 = StringToASCIIArray($str2)
11
12 ; changement de la valeur ASCII 'B' à la valeur '3' -> on met à zéro le 4ième bit (le n°3) -> revoir la ligne avec un ET logique mais là pas le temps.
13 ; La conversion de la chaine de caractères en tableau de char me donne un char par nombre.
14 ; Ici on travaille sur le 9ième octet (le n°8 si on commence à 0) et on se prend un "0x" en plus lors de la convertion en string puis en Array de char.
15 ; Donc le quartet à modifier est à la place : ( (9x2) + 2 ) - 1=19.
16 ; ^ ^ ^
17 ; | | |
18 ; | | On commence la numératation à zéro.
19 ; | |
20 ; | Le "0x" supplémentaire
21 ; |
22 ; 2 caractères hexa à chaque fois lors de la convertion de bin en String
23
24 $aArray1[19]=51 ; B -> 3 (mais en code ASCII)
25 $aArray2[19]=51 ; idem
26
27 $str1=StringFromASCIIArray($aArray1) ;reconvertion en String
28 $str2=StringFromASCIIArray($aArray2) ;idem
29
30 RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections", "DefaultConnectionSettings", "REG_BINARY", $str1)
31 RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Connections", "SavedLegacySettings", "REG_BINARY", $str2)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.- [get | view] (06/02/2014 06:34:20, 1.7 KB) [[attachment:UncheckCase.au3]]
- [get | view] (06/02/2014 06:34:05, 842.5 KB) [[attachment:UncheckCase.exe]]
You are not allowed to attach a file to this page.