• Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.
  • The forums have been upgraded with support for dark mode. By default it will follow the setting on your system/browser. You may override it by scrolling to the end of the page and clicking the gears icon.

Little Alt Code Utility

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.

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:
damn kreij, you need to get the cancer more often! lol, j/k obviously.
 
damn kreij, you need to get the cancer more often! lol, j/k obviously.

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
 
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. ;)
 
Last edited:
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). :/
 
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). :/

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:
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!
 
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.
 
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.
 
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:
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?
 
What do you want added, puma?
 
What do you want added, puma?


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

maybe.icon.there.jpg


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 ^^;
 
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 þ
 
Hey, this is awesome Kreij. I just saw it; i'm always looking for those.
 
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
 

Attachments

Last edited:
Bump, looking for testers and suggestions.
I know almost everyone is playing D3, so if you take a break .... :laugh:
 
Last edited:
The code for the paragraph symbol would be nice. And maybe Pi and square root.
 
@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.
 
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.
 
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. :)
 
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.
 
It does do that, mlee. All buttons have tooltips with the alt code and a description listed in it.

Plus my favorite ALT Code is ALT+0186. I use it alot.

The masculine ordinal number in Spanish, Italian and Portugese? I'm not even sure what it is for ... lol
 
Back
Top