Character to ASCII Converter [Beta]

Page 1 of 2 12 LastLast
  1.    #1

    Character to ASCII Converter [Beta]


    The program converts any uppercase character into it's decimal representation, I need to add all the lowercase characters and other symbols available on the keyboard. Here's a couple examples of the program:

    Character to ASCII Converter [Beta]-pic1.jpg

    Character to ASCII Converter [Beta]-pic2.jpg

    Character to ASCII Converter [Beta]-pic3.jpg
    Character to ASCII Converter [Beta] Attached Files
      My Computer


  2. Posts : 10,485
    W7 Pro SP1 64bit
       #2

    I see this when I try to run it:

    Character to ASCII Converter [Beta]-i-see-.png

    BTW, have fun with the control characters 0 thru 31
    http://www.robelle.com/smugbook/ascii.html
      My Computer


  3. Posts : 7,235
    Thread Starter
       #3

    Sorry, I uploaded the Debug version of the program, and not the Release version. The correct version should be uploaded now.

    I was thinking of writing the program up as a Windows program instead of a DOS program eventually.

    I've got another program published in this sub section too.
    Character to ASCII Converter [Beta] Attached Files
      My Computer


  4. Posts : 10,485
    W7 Pro SP1 64bit
       #4

    Yep - that version works. Writing it in .NET might be best and auto-select the answer so that it is ready to copy/paste like the tool below.

    Since I don't know how to program, I would have to script it via AutoIt:
    Code:
    Opt ("TrayIconDebug", 1)
    
    While 1
        $var = InputBox("Converter", "Type one character. Click on OK to convert." & _
            @CR & @CR & "(Or just press Enter to convert.)")
        If @error = 1 Then Exit
        If $var = "" Then ContinueLoop
        InputBox("Converter", $var & " as DEC ASCIIcode." & _
            @CR & @CR & "(Ready to copy or cut and paste.)" & _
            @CR & @CR & "Press Enter to continue.", Asc($var))
        If @error = 1 Then Exit
    WEnd
    It took me much longer to decide on the text of the prompts than to knock out the code.

    If you compile that script - some antivirus apps might complain:
    https://www.virustotal.com/en/file/0...is/1375540873/
    Ya just can't make some AV companies understand :-(
    I usually don't compile my scripts - I just run them as text files.

    Character to ASCII Converter [Beta]-1.png

    Character to ASCII Converter [Beta]-2.png

    None printable characters won't look so nice in the second window - but I did not want to deal with that since I've no particular need to use or distribute this script.


    Your file compare app seems helpful, but I use WinMerge.
      My Computer


  5. Posts : 7,235
    Thread Starter
       #5

    I usually write it .NET, I'll finish writing the DOS version and then start looking into the GUI version of the program.
      My Computer


  6. Posts : 7,235
    Thread Starter
       #6

    Character to ASCII Converter [Beta]-ui-ascii-converter.jpg

    I've created and designed the UI for the ASCII Converter program, just need to add all the logic for the buttons, and test all the code to see if it works correctly.
      My Computer


  7. Posts : 10,485
    W7 Pro SP1 64bit
       #7

    Looks good. Enjoy your coding
      My Computer


  8. Posts : 7,235
    Thread Starter
       #8

    Thanks, I'll post it back here when it's completed. It'll probably be done today :)
      My Computer


  9. Posts : 7,235
    Thread Starter
       #9

    Download is below:

    ASCII Converter V2 - Added Features:

    • Added UI
    • Added support for a-z, 0-9 and special characters such ? etc.
    • Note: \ is added as a label on the UI, since the compiler gives an error that the \ is a newline character.
    Character to ASCII Converter [Beta] Attached Files
      My Computer


  10. Posts : 10,485
    W7 Pro SP1 64bit
       #10

    Works as advertized

    Was this an assignment from some class or did you write it because you need a tool to do this?
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:06.
Find Us