1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Little Alt Code Utility

Discussion in 'Programming & Webmastering' started by Kreij, Jan 16, 2012.

  1. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    I wrote a simple little utility that shows some of the more common alt-codes you may want to put in a forum post. I am forever forgetting these and using the character map is a PITA.

    [​IMG]

    If you hover over a button it shows a tooltip of the alt code and a description.
    If you click on a button it copies the alt code character to the clipboard so you can just ctrl-V it into the post editor (or wherever).
    After you click a button the status bar tells you what it sent to the clipboard.

    If you in another window editing (like a post or whatever) clicking on a button will now automatically put it in the window where your cursor is.

    You can put the exe anywhere as it does not use any other files or resources.

    I can add more codes if anyone finds this useful and would like a few more added.

    Any feedback is appreciated ... even if you feel it's worthless. :D
     

    Attached Files:

    Last edited: May 13, 2012
    dude12564, Phusius, 95Viper and 32 others say thanks.
  2. theJesus

    theJesus

    Joined:
    Jul 20, 2008
    Messages:
    3,968 (1.75/day)
    Thanks Received:
    860
    Location:
    Ohio
    This is an awesome app. I have it pinned in my taskbar now.
     
    Kreij says thanks.
  3. qubit

    qubit Overclocked quantum bit

    Joined:
    Dec 6, 2007
    Messages:
    9,822 (3.94/day)
    Thanks Received:
    3,481
    Location:
    Quantum well (UK)
    Awesome, it's gonna help with putting in that ™ character. :respect:

    Here are a few more: ™¢€µ¼•
     
  4. A Cheese Danish

    A Cheese Danish

    Joined:
    Nov 18, 2006
    Messages:
    2,963 (1.03/day)
    Thanks Received:
    413
    Location:
    your local vending machine
    Nifty I must say. Helps a lot :)
     
  5. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    For a little 15KB utility it's memory usage (private working set) is a little large at ~5M
    I'll see if I can make it's memory footprint smaller.
     
  6. xbonez New Member

    Joined:
    Nov 29, 2010
    Messages:
    1,182 (0.84/day)
    Thanks Received:
    315
    Location:
    Philly, PA (US)
    Interesting about the 5MB memory usage. It's a winform app, right?
     
  7. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    Yes it is, xbonez. It is compiled using my default VS settings, so I should be able to do a some bit twiddling to make it smaller.

    I wrote this because I got sick of going to sites that listed the codes.
    This little app is one of those things that falls under "necessity is the mother of invention." :D
     
    qubit says thanks.
  8. ctrain New Member

    Joined:
    Jan 12, 2010
    Messages:
    393 (0.23/day)
    Thanks Received:
    72
    You can call SetProcessWorkingSetSize() to try and go lower yet, but it's pointless really, you will likely damage performance if anything in trying.

    It's best to leave the runtime and OS to their own devices really, .NET programs using a "lot" of memory is well known and stripping the working set is a common idea that seems like a good one but is really not.
     
  9. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,596 (6.24/day)
    Thanks Received:
    3,519
    Location:
    IA, USA
    How about adding:
    Þ = 0222
    þ = 0254


    You must be feeling better. :) I can't code when in pain. :þ
     
    Crunching for Team TPU
  10. DanTheBanjoman Señor Moderator

    Joined:
    May 20, 2004
    Messages:
    10,553 (2.79/day)
    Thanks Received:
    1,383
    What's does it do that a list in notepad won't?
     
  11. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    Not sure how I could reduce performance on an app that does almost nothing. :laugh:
    I was just going to poke around with a few VS settings and not do anything dramatic.


    I was thinking of adding the TPU smileys so you could use the little app with "post quick reply" and have them available for copy/pasta. Thoughts?

    If the pain gets too bad the coding stops (as I usually lie down), if I take painkillers coding slows down dramatically due to general mental foginess. lol

    Functionally it makes copying to the cliboard a little faster (just click the button). Other than that, not much at the moment.
     
  12. DanTheBanjoman Señor Moderator

    Joined:
    May 20, 2004
    Messages:
    10,553 (2.79/day)
    Thanks Received:
    1,383
    Then, what will it do?
     
  13. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    You lost me on that question, Banjo. Probably the painkillers. lol
     
  14. DanTheBanjoman Señor Moderator

    Joined:
    May 20, 2004
    Messages:
    10,553 (2.79/day)
    Thanks Received:
    1,383
    You said it does nothing else currently, what features are planned?
     
  15. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    Whatever anyone comes up with that they think will make it better.
    I'm always open for suggestions. You have any ideas Banjo?
     
  16. theJesus

    theJesus

    Joined:
    Jul 20, 2008
    Messages:
    3,968 (1.75/day)
    Thanks Received:
    860
    Location:
    Ohio
    It would be cool if it worked like the on-screed keyboard. Not totally necessary, but if you're bored . . .
     
  17. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,226 (2.62/day)
    Thanks Received:
    2,707
    Location:
    Statesville, NC
    Nice work kreij! on "The Little Alt Code Utility ® ™" Works great!
     
    Crunching for Team TPU
  18. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    More info please. Yes, I am bored.
     
  19. theJesus

    theJesus

    Joined:
    Jul 20, 2008
    Messages:
    3,968 (1.75/day)
    Thanks Received:
    860
    Location:
    Ohio
    Basically, have an option for it stay in the foreground at all times and whenever you click a character in it, then it automatically pastes that into whatever text field your cursor was in.

    Open up the onscreen keyboard to see what I mean.
     
    Kreij says thanks.
  20. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    Cool. I never used the OSK before. Will work on that for next version.
     
    theJesus says thanks.
  21. ctrain New Member

    Joined:
    Jan 12, 2010
    Messages:
    393 (0.23/day)
    Thanks Received:
    72
    You might up causing some page faults as a result of trying to trim the working set, worrisome if you're counting precious milliseconds :)

    What I was getting at is that the seemingly large working set of .NET programs isn't worth playing with. The OS will reclaim the uneeded memory for other use if it really needs to and will not allocate so much "fluff" in the first place if it's scarce to begin with.
     
  22. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,226 (2.62/day)
    Thanks Received:
    2,707
    Location:
    Statesville, NC
    Kreij why not go ahead and throw in all the forum codes [spoiler}[/spoiler], [B}{/B}, etc.. :toast: You could create two windows/Multi Line Textboxes one to type the complete post and the second window to view the post in real time. Once the user is ready to post the response have something like a send button for them to click. You could create a toggle switch to go from thejesus direct imput mode or the multi window method.
     
    Crunching for Team TPU
  23. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    That's not as easy as it sounds, MW. It would require a realtime bbcode parser and tokenizer, as well as working with the RTF format for use with a RichTextBox for realtime display. It gets pretty ugly quick. lol

    I was working on something like that awhile ago as an offline editor for people writing articles and/or news.
     
  24. Completely Bonkers New Member

    Joined:
    Feb 6, 2007
    Messages:
    2,580 (0.92/day)
    Thanks Received:
    516
    Any chance of a user-defined line of buttons? Set in a .ini or cfg file? I have need for certain character code sets when writing emails, like üöä and čěřňš

    Actually; http://www.typeit.org/ is pretty useful
     
  25. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (4.97/day)
    Thanks Received:
    5,616
    Location:
    Cheeseland (Wisconsin, USA)
    I had originally thought of including all of the characters with accents and a lot of other special punctuation, but I was trying to keep the GUI small.
    The intent of this app was for quick characters when forum posting and not a comprehensive list of all the possible alt codes.
    I will give it some thought. Maybe a settings option so the GUI only displays the character sets that you need/want.
     
    Completely Bonkers and MT Alex say thanks.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page