Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Character to ASCII Converter [Beta]


01 Aug 2013   #1

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x86 Service Pack 1 - Linux Mint Mate 14 x64
 
 
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:

Name:  Pic1.JPG
Views: 15
Size:  26.3 KB

Name:  Pic2.JPG
Views: 16
Size:  28.0 KB

Name:  Pic3.JPG
Views: 15
Size:  28.0 KB



Attached Files
File Type: zip ASCII Converter.zip (11.2 KB, 2 views)
My System SpecsSystem Spec
.

03 Aug 2013   #2

W7 Pro SP1 64bit
 
 

I see this when I try to run it:

Name:  I-see-this.png
Views: 8
Size:  6.6 KB

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


My System SpecsSystem Spec
03 Aug 2013   #3

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x86 Service Pack 1 - Linux Mint Mate 14 x64
 
 

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.


Attached Files
File Type: zip ASCII Converter.zip (4.9 KB, 2 views)
My System SpecsSystem Spec
.


03 Aug 2013   #4

W7 Pro SP1 64bit
 
 

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.

Name:  1.png
Views: 20
Size:  3.9 KB

Name:  2.png
Views: 20
Size:  3.9 KB

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 System SpecsSystem Spec
03 Aug 2013   #5

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x86 Service Pack 1 - Linux Mint Mate 14 x64
 
 

I usually write it .NET, I'll finish writing the DOS version and then start looking into the GUI version of the program.
My System SpecsSystem Spec
04 Aug 2013   #6

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x86 Service Pack 1 - Linux Mint Mate 14 x64
 
 

Name:  UI ASCII Converter.JPG
Views: 10
Size:  24.0 KB

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 System SpecsSystem Spec
04 Aug 2013   #7

W7 Pro SP1 64bit
 
 

Looks good. Enjoy your coding :-)
My System SpecsSystem Spec
05 Aug 2013   #8

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x86 Service Pack 1 - Linux Mint Mate 14 x64
 
 

Thanks, I'll post it back here when it's completed. It'll probably be done today
My System SpecsSystem Spec
05 Aug 2013   #9

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x86 Service Pack 1 - Linux Mint Mate 14 x64
 
 

Download is below:

Quote:
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.


Attached Files
File Type: zip ASCII Converter V2.zip (205.8 KB, 4 views)
My System SpecsSystem Spec
05 Aug 2013   #10

W7 Pro SP1 64bit
 
 

Works as advertized :-)

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

 Character to ASCII Converter [Beta]




Thread Tools



Similar help and support threads for2: Character to ASCII Converter [Beta]
Thread Forum
Solved Accidentally created folder with name <space> / ASCII 32. Can't delete General Discussion
ASCII code problem Software
Homer ASCII Chillout Room
Garbled Screen - ASCII? - DURING POST General Discussion
Convert an Image File to ASCII Art Using PowerShell Chillout Room
Slow deletes (character by character) General Discussion

Our Sites

Site Links

About Us

Find 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 09:50 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33