i don't think it could be done but manually
search entire project for "0x"
open the calculator or code a simple app
copy and past manually
else
code simple c# app.
select all text and past them to this app. text box
a cute button which do the following
loop on all strings
once found "0x"
select chars starting with that 0 ending with the next space ' ' or next ')'
lets say the string it found was 0xc3
//it will keep searching for the next space char as any hex number should end with space or ')'
copy this string (which is the number in hex)
then convert it to dec
by
Code:
String decimal = new Org.BouncyCastle.Math.BigInteger(hex, 16).ToString();
or
Code:
// Store integer 182
int decValue = 182;
// Convert integer 182 as a hex in a string variable
string hexValue = decValue.ToString("X");
// Convert the hex string back to the number
int decAgain = int.Parse(hexValue, System.Globalization.NumberStyles.HexNumber);
or any other way , go search google or msdn
then simply replace the dec value for the hex value
//take a copy from the hex value before converting or use the copy you already selected as you are not sending reference you are only sending copy and do something like main string replace(hex variable,dec variable)
once it loop on all the hex values it will convert all of them
i may release a tool like this later (im going to bed atm)
the point was to be able to detect the hex value to replace it
all you know about hex value is that it start with 0x and end with space or bracket , but maybe also in for loop it will end with semicolon ;
so i guess that's the 3 chars following any hex value
it end at the closest value to your selection (the start of 0x)
edit about your sig
and btw i think it's hybrid who wrote the cv3
edit 2 , hex numbers may also end with ',' , ex. at packets 0x00, 0x01, 0x44,
edit 3 , you may also make a simple log about what you edit
text box , scroll to crate , vertical and horizontal scroll bars , method of text += new text + /r/n , write hex value + /t + dec value
it will log something like
Quote:
so you figure out if all conversations went smooth
edit 5
and please don't fucking tell me that all you want was to convert a value and not all values in the source :\