;Declare variable and set options If Not @LogonMode Break OnEndIfDim $SO$SO=SetOption('Explicit','On')$SO=SetOption('NoVarsInStrings','On')$SO=SetOption('NoMacrosInStrings','On')$SO=SetOption('WrapAtEOL','On') ;Declare our variables Dim $Key, $Value, $Count, $i, $UpdateValue;Assign read value from the Registry to our variable $Key = 'HKCU\Software\KiXtart-Learning'$Value = ReadValue($Key,'Round02');Check if there is an error reading the value, if so quit and set error If @ERROR Exit @ERROR EndIf;Declare an array to use Dim $Binary[(Len($Value)/2)-1];Set our counter to 0 $Count = 0;Step through the read value and create the array ;We take 2 steps so that each element will be part of the 2 character binary value For $i = 1 To Len($Value) Step 2 ;We now assign 2 characters each time through the array $Binary[$Count] = SubStr($Value,$i,2) ;We reset the counter before going back through the process again $Count = $Count + 1Next;Here we set the specific element to a value we want to change $Binary[2] = "bc";Now we write that value change to the registry using a Join since the $Binary ;var is an array format. $UpdateValue = WriteValue($Key,'Round02',Join($Binary,""),REG_BINARY);Check if there is an error writing the value, if so quit and set error If @ERROR Exit @ERROR EndIf
Generated in 0.116 seconds in which 0.042 seconds were spent on a total of 13 queries. Zlib compression enabled.
") !=-1) { tempah=tempah.substring(tempah.indexOf("")+5,tempah.indexOf("")); codes[i].innerHTML="" + dotag(tempah.substring()) + ""; } } //var pres = document.getElementsByTagName("pre"); //for (var i=0, maxi = pres.length; i < maxi; i++) { // var tempah = pres[i].innerHTML; // if (tempah.indexOf("[postprep") !=-1) { // tempah=tempah.substring((tempah.indexOf("]",tempah.indexOf("[postprep"))+1)); // pres[i].innerHTML=dotag(tempah); // } //} function ytag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = codes[which_one].innerHTML; codes[which_one].innerHTML = "" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; } function ttag(which_one) { var codes = document.getElementsByClassName("ubbcode-body"); var thisone = ""; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + ""; var heads = document.getElementsByClassName("ubbcode-header"); heads[which_one].innerHTML = "Code:" + ' '; }
")+5,tempah.indexOf("
" + dotag(tempah.substring()) + "
" + dotag(thisone.substring(5+thisone.indexOf(""),thisone.indexOf(""))) + "
"),thisone.indexOf("
"; if (codes[which_one].innerText != undefined) { thisone += codes[which_one].innerText; } else { thisone += codes[which_one].textContent; } codes[which_one].innerHTML = thisone + "