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. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,162 (2.64/day)
    Thanks Received:
    2,654
    Location:
    Statesville, NC
    You said you were bored.. hehehe and I never said it would be easy... :p hehehe If we didn't push our self who would? Now hurry up I want to see something by the end of the day! :p lol :roll:

    EDIT: Here I'll Help you :p

    Code:
    Dim Bold as string
    Last edited: Jan 16, 2012
    Crunching for Team TPU
  2. Easy Rhino

    Easy Rhino Linux Advocate

    Joined:
    Nov 13, 2006
    Messages:
    13,407 (4.72/day)
    Thanks Received:
    3,233
    damn kreij, you need to get the cancer more often! lol, j/k obviously.
    Mindweaver says thanks.
  3. MT Alex

    MT Alex

    Joined:
    Aug 2, 2009
    Messages:
    3,762 (2.04/day)
    Thanks Received:
    1,607
    Now you're talkin'
  4. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,162 (2.64/day)
    Thanks Received:
    2,654
    Location:
    Statesville, NC
    I know right? :laugh:

    @kreij.. I'm waiting.. :p Have you made any browser add-ons? It would be kickass if you tried to do that with this. :D
    Crunching for Team TPU
  5. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    Currently trying to get the little app to work like the OSK (not take focus and output to the window that contains the cursor and focus).
    So far this is not working at all like the references says it should. :laugh:

    When I get this working, I can add user defined buttons and other requested functionality.

    @MW : Still pondering a bbcode editor. ;)
  6. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,162 (2.64/day)
    Thanks Received:
    2,654
    Location:
    Statesville, NC
    Awesome! Looking forward to it! :toast:

    app
    BBCeditor

    Online
    bbcode to html
    Last edited: Jan 17, 2012
    Crunching for Team TPU
  7. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    I tried the BBCode editor app you posted and I am now considering why I should write one since that one rocks. It does everything you would ever want except output the display in realtime as you type (which is not all that necessary anyway). :/
  8. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,162 (2.64/day)
    Thanks Received:
    2,654
    Location:
    Statesville, NC
    Yea it is a nice little app, and you are right why create a new one? Err because TPU doesn't have one of it's on.. :p hehehe and you're bored.. hehehe You could make a TPU Web Browser with these built in features. Or even better a Forum app with these features. You could do something like Opera's start page.. let the user bookmark a few forums and then all he or she would do is launch your "Kreij's Forum Browser" select a forum and post away with shortcuts to BBCode. ;)
    Last edited: Jan 17, 2012
    Crunching for Team TPU
  9. Sinzia

    Joined:
    Oct 5, 2010
    Messages:
    839 (0.59/day)
    Thanks Received:
    205
    I gotta say, I use this thing a lot for the trademark and copyright ones! I can -never- remember the codes for those.

    Thanks for making this handy lil thing!
    Kreij says thanks.
  10. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    Hey !! I forgot about my little program.

    New version in OP (0.0.2) will now work like on screen keyboard and pastes the codes directly into whatever you are editing in the active window. It still copies it to the clipboard at the same time just in case you want it there too.

    Because I am overriding the creation parameters of the form so it does not activate when clicked in, dragging the window works but gives you no visual feeback that the window is moving.
    theJesus says thanks.
  11. theJesus

    theJesus

    Joined:
    Jul 20, 2008
    Messages:
    3,967 (1.78/day)
    Thanks Received:
    860
    Location:
    Ohio
    Thanks for implementing that feature, it works great! Also, if you click outside of the window and then click back in again, you can move it with visual feedback until you click one of the buttons again it seems.
  12. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    I never get visual feedback when moving the window no matter what I do. Oh well ...

    Well, I over-engineered the whole thing originally and getting it to work like the OSK is stupidly easy.
    Sometimes it pays to set something aside for awhile.

    In any form, create a constant as such...
    Code:
    [color="blue"]private const int[/color] WS_EX_NOACTIVATE = 0x08000000;
    
    Then override the CreateParams method of the form and make it so it won't activate (become the active window) ...
    Code:
    [COLOR="Blue"]protected override[/COLOR] [COLOR="Teal"]CreateParams[/COLOR] CreateParams
    {
        [COLOR="Blue"]get[/COLOR]
        {
            System.Windows.Forms.[COLOR="Teal"]CreateParams[/COLOR] p = [COLOR="Blue"]base[/COLOR].CreateParams;
            p.ExStyle |= WS_EX_NOACTIVATE;
           [COLOR="blue"] return[/COLOR] p;
        }
    }
    
    Then in a button click event (or whatever event you want to use), send the value out ..
    Code:
    [COLOR="Blue"]private void [/COLOR]button_Click([COLOR="blue"]object[/COLOR] sender, [COLOR="Teal"]EventArgs[/COLOR] e)
    {
        [COLOR="Teal"]Button [/COLOR]btn = ([COLOR="Teal"]Button[/COLOR])sender;
        [COLOR="Teal"]SendKeys[/COLOR].Send(btn.Text);
    }
    
    Free code tip !! No charge. :D
    Last edited: May 13, 2012
    theJesus says thanks.
  13. puma99dk|

    puma99dk|

    Joined:
    Aug 29, 2005
    Messages:
    3,328 (1.01/day)
    Thanks Received:
    745
    thx Kreij and also thx from my wife. It's an awesome small problem for all does symbols i can remember remember it only once i remember are µ (CTRL+ALT+M), € (CTRL+ALT+E) and $ (CTRL+ALT+3) ^^

    so maybe adding an icon for it later?
  14. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    What do you want added, puma?
  15. puma99dk|

    puma99dk|

    Joined:
    Aug 29, 2005
    Messages:
    3,328 (1.01/day)
    Thanks Received:
    745

    just feeling there is something missing dunno if it's me ^^;

    [​IMG]

    i got no idea of what icon u maybe wanna use maybe someone got one in mind i just feel like i miss a icon ^^;

    Attached Files:

  16. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    Ohhh .. lol ... a custom icon for the app.
    I suck at making icons. Maybe some kind soul who is good at it will offer their services. ;)

    Version 0.0.3 is up on OP.
    Making the window inactive broke the tooltips, so I fixed that.
    Also added Ford's favorites Þ and þ
    theJesus says thanks.
  17. Irony

    Irony

    Joined:
    Sep 25, 2011
    Messages:
    1,721 (1.62/day)
    Thanks Received:
    442
    Location:
    Outer Rim system of the interwebz
    Hey, this is awesome Kreij. I just saw it; i'm always looking for those.
    Kreij says thanks.
    Crunching for Team TPU
  18. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    Okay ... beta testing time !

    Here is version 0.0.4.2 (it's not in the OP yet).
    It adds user defined functionality.

    Click on User Defined button "U" and the app will open larger showing 21 buttons with "?"
    Right click on any button and it will give you a context menu to define/edit the button. Click on it.
    If the small form enter the Alt # (just the number, like "0153") and a description, then click the OK Button.
    It should add to whatever button you right clicked on.

    If you edit a button and just click OK without a code or description, the button will reset to the "?" (undefined).
    I also added a "Clear User Defined" menu option on right click to make that easier.

    Clicking the User Defined button "U" again will hide the user defined section.

    Time for bug hunting. lol

    Attached Files:

    Last edited: May 14, 2012
  19. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    Bump, looking for testers and suggestions.
    I know almost everyone is playing D3, so if you take a break .... :laugh:
    Last edited: May 15, 2012
  20. Irony

    Irony

    Joined:
    Sep 25, 2011
    Messages:
    1,721 (1.62/day)
    Thanks Received:
    442
    Location:
    Outer Rim system of the interwebz
    The code for the paragraph symbol would be nice. And maybe Pi and square root.
    Crunching for Team TPU
  21. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    @Irony : You think those would be commonly used in forum posts?
    I wanted the main button (non-user defined) to be what's used the most, so if you think some should be replaced with others tell me what you would almost never use.
  22. Irony

    Irony

    Joined:
    Sep 25, 2011
    Messages:
    1,721 (1.62/day)
    Thanks Received:
    442
    Location:
    Outer Rim system of the interwebz
    The ones you already have are probably the most common that I would use. I can't really think of others I ever need, the ones I mentioned were the only ones I could think of that I would theoretically ever use. I doubt they would be used very often at all.
    Crunching for Team TPU
  23. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    That why I added the user defined section in the latest release (in post #43).
    Some people commented they wanted more international characters and such, but I don't see them as being used as often as the ones that I chose for the main ones.

    Still, I'm open to suggestions. A utility is only decent if people find it useful. :)
  24. mlee49

    mlee49

    Joined:
    Dec 27, 2007
    Messages:
    8,477 (3.49/day)
    Thanks Received:
    2,103
    Nice app, can it display the actual ALT code if you hover over the icon? That might be handy.

    Plus my favorite ALT Code is ALT+0186. :) I use it alot.
  25. Kreij

    Kreij Senior Monkey Moderator Staff Member

    Joined:
    Feb 6, 2007
    Messages:
    13,881 (5.04/day)
    Thanks Received:
    5,615
    Location:
    Cheeseland (Wisconsin, USA)
    It does do that, mlee. All buttons have tooltips with the alt code and a description listed in it.

    The masculine ordinal number in Spanish, Italian and Portugese? I'm not even sure what it is for ... lol
    theJesus and mlee49 say thanks.

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

Share This Page