Jump to content
Sign in to follow this  
kcd-clan

Hex2Asc or Asc2Hex :P

Recommended Posts

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

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

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...