6
$\begingroup$

When I posted an answer for someones question:

https://blender.stackexchange.com/posts/16530/revisions

It got edited and these key box's were added.
They look nifty, but because I'm new, I don't know how to add them.

Could someone clarify please?

$\endgroup$
6
  • 2
    $\begingroup$ I'm not sure what you are asking, your original post was a bit untidy and it was formatted properly by other users. See blender.stackexchange.com/help/editing $\endgroup$
    – iKlsR Mod
    Commented Oct 10, 2014 at 20:47
  • $\begingroup$ I agree whole-heatedly that I was sloppy. If you look in the areas where I had put key notations (ex. 'N') they were replaced by some sort of icon in the edit. how does one use those icons to avoid future 'mistakes'? $\endgroup$
    – ruckus
    Commented Oct 10, 2014 at 20:55
  • $\begingroup$ And with my most recent answer to my own question. How did you do that? Pretty cool. Maybe i just need a course on formatting in this site. $\endgroup$
    – ruckus
    Commented Oct 10, 2014 at 20:59
  • 2
    $\begingroup$ That was done using markdown, when writing a post, look at the top of the edit field to the right and you will see a help button (a gold question mark). See meta.blender.stackexchange.com/questions/250/…. You can also drop by our chatroom and ask for assistance, you will get used to the site in no time. :) $\endgroup$
    – iKlsR Mod
    Commented Oct 10, 2014 at 21:11
  • $\begingroup$ Also here's a quick and basic guide to using markdown and html within SE posts: blender.stackexchange.com/help/formatting. The formatting in question is <kbd>key</kbd>. If you get tired of typing <kbd>, there is a userscript which adds a button to insert them automatically: meta.blender.stackexchange.com/q/388/599 $\endgroup$
    – gandalf3
    Commented Oct 10, 2014 at 23:09
  • $\begingroup$ cool. thankyou. $\endgroup$
    – ruckus
    Commented Oct 11, 2014 at 1:35

2 Answers 2

6
$\begingroup$

Those are simply kbd tags, defined in the html spec, and styled as such on SE.

Here is an example usage:

When you really messed up, press AA then DeleteEnter.

This is how the sage advice looks in code view:
When you really messed up, press <kbd>A</kbd><kbd>A</kbd> then <kbd>Delete</kbd><kbd>Enter</kbd>.

For more detail on how to format the kbd tags see this answer.

There are also user created scripts to make adding the <kbd> tags easier.

$\endgroup$
3
$\begingroup$

It's sooo annoying to type those kbd tags though. If one is on Windows, one can use a simple AHK script:

#NoEnv 
SendMode Input
#K::
a := Clipboard
send ^c
ClipWait
sleep 100
StringReplace, Clipboard, Clipboard, + , %A_Space%</kbd> + <kbd>%A_Space%, ReplaceAll
StringReplace, Clipboard, Clipboard, -> , %A_Space%</kbd> -> <kbd>%A_Space%, ReplaceAll
StringUpper, Clipboard, Clipboard, T
Clipboard = <kbd>%A_Space%%Clipboard%%A_Space%</kbd>
sleep 100
Send ^v
sleep 200
Clipboard := a
return

So if that AHK script(text file with .ahk exxtension) is in shell:startup(one could copy-paste that to Windows Run menu( Winlogo + R )) folder and starts with Windows, one can simply select some text like "a->ctrl+b" and hit Winlogo + K to get " A -> Ctrl + B "

AHK needs to be installed.

$\endgroup$
5
  • 1
    $\begingroup$ I don't know if you've seen my AHK macro and what you think about it: blender.meta.stackexchange.com/a/2927/60486 - the mouse mathjax formulas I think are a bad idea, but then again I don't like the images in Codemanx/Gandalf solution too much either. I wish there were proper emojis for LMB, MMB, RMB and mouse wheel up and down... Other than that I've been using my macro with success for a couple years now. $\endgroup$ Commented Jun 16 at 12:13
  • $\begingroup$ I think we, who script, make ourselves whatever makes most sense to us. I am just so used to my way by now, plus I have a bunch of other weird stuff in the same script - for example I use my native Lithuanian keyboard where 12345678= switch to ąčęėįšųūž and in that scenario it sometimes happens that I forget to switch the layouts and/or have caps lock on and I manage to write whole sentences like that before noticing :D :D So I have a key that fixes that which is surprisingly useful for us lithuanians as a few friends of mine loved it and I believe still use it after I shared it with them. :D $\endgroup$ Commented Jun 16 at 14:56
  • $\begingroup$ I have a huge macro I found somewhere: pastebin.com/YPhYrfCU - it allows me to type any special character like that (though there are a few bugs). On top of that I added some macros for commonly used messages, images, my script simulating a 2nd cursor, very useful when I played Gothic, that can't be (safely) minimized... some macros like this: i.imgur.com/DdM2RLB.png AHK is the main reason I stay on Windows... $\endgroup$ Commented Jun 16 at 15:15
  • $\begingroup$ For me, Win+K opens a Windows panel (wireless devices or something like that). Is it supposed to run the script put inside the startup folder ? I don't understand how or where the script would be linked to this shortcut. I don't know AHK so maybe my question is trivial. $\endgroup$
    – Lutzi
    Commented Nov 16 at 13:59
  • $\begingroup$ @Lutzi Well, you would install AHK first and then could place the script in startup folder You can change the hotkey in line 3. That's the #K there. See AHK hotkeys. It just runs in the background. $\endgroup$ Commented Nov 16 at 14:30

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .