Sign in to follow this  
Followers 0
kcd-clan

Hex2Asc or Asc2Hex :P

9 posts in this topic

#1 ·  Posted (edited)

For to read hex in autoit.

There is a sample in it all the source needed.

Verry simple if you know what hex is.

The meaning for this program is for packet sending and reciving via anything.

You can make a file downloader that can get the % of file and recive files easy with you own code

You can send and recive files via sockets or anything really.

I am working on a fue programs that require this so i went ahead and made public.

I dont know if hex() is suposto do this...

I tryed and didnt get the correct code.

:D

Dont go modifying it and reposting it you dont have my grace....

Hex2asc.au3

functions.au3

Edited by kcd-clan

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()

Share this post


Link to post
Share on other sites



Odd grammar, horrible hex. It is faster, and much more efficient to use an algorythm per character than to have a long list of equals.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

yea but it was faster like that.

Later on i might go do it liek that but right now thats how i do it.

Edited by kcd-clan

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()

Share this post


Link to post
Share on other sites

these functions are already all in autoits standard library

Asc()

Chr()

Dec()

Hex()

That's basically it...

Share this post


Link to post
Share on other sites

having trouble understanding your grammer...

just tell me what you want converted and I'll tell you the example.... to keep complicated grammer to a low just say like-

make 1=01

make A=10

Make T=84

something in that format

Share this post


Link to post
Share on other sites

ok...

Try this-

Case $msg = $Button1
        $text=GUICtrlRead ($Input1 )
        $asc=Asc($text)
        $hex=Hex($asc,2)
        GUICtrlSetData($Input2,$asc)
        GUICtrlSetData($Input3,$hex)
    Case $msg = $Button2
        $text=GUICtrlRead ($Input2 )
        $hex=Hex($text,2)
        GUICtrlSetData($Input1,"")
        GUICtrlSetData($Input3,$hex)
    Case $msg = $Button3
            $text=GUICtrlRead ($Input3 )
            $asc=Dec($text)
        GUICtrlSetData($Input1,"")
        GUICtrlSetData($Input2,$asc)
    Case Else

instead of your case loop.

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

See thats all i wanted.

Case $msg = $Button1
        $text=GUICtrlRead ($Input1 )
        $asc=Asc($text)
        $hex=Hex($asc,2)
        GUICtrlSetData($Input2,$asc)
        GUICtrlSetData($Input3,$hex)
    Case $msg = $Button2
        $text=GUICtrlRead ($Input2 )
        $hex=Hex($text,2)
        $asc=Dec($hex)
        $text=Chr($asc)
        GUICtrlSetData($Input1,$text)
        GUICtrlSetData($Input3,$hex)
    Case $msg = $Button3
            $text=GUICtrlRead ($Input3 )
            $asc=Dec($text)
        $text=Chr($asc)
        GUICtrlSetData($Input1,$text)
        GUICtrlSetData($Input2,$asc)
    Case Else
Edited by kcd-clan

Visit mEMy programs made.Iul - IulG-V Console - G-V Console_RandomLetter - _RandomLetter()Saftey Kill - Saftey Killcolorzone() = colorzone()

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