How to type exclamation mark without shift key?

Discussion in 'Windows OS and Software' started by Drew1, Sep 1, 2016.

Thread Status:
Not open for further replies.
  1. Drew1

    Drew1 Notebook Deity

    Reputations:
    13
    Messages:
    1,581
    Likes Received:
    42
    Trophy Points:
    66
    I know you can type @ without it. But does anyone know how to do the exclamation mark without the shift key? Does it involve alt and something else or other button on keyboard?
     
  2. katalin_2003

    katalin_2003 NBR Spectre Super Moderator

    Reputations:
    14,953
    Messages:
    5,670
    Likes Received:
    1,503
    Trophy Points:
    331
    Hi @Drew01.
    On what keyboard layout?
    You can also do it by pressing ALT+33
     
    toughasnails likes this.
  3. TreeTops Ranch

    TreeTops Ranch Notebook Deity

    Reputations:
    301
    Messages:
    854
    Likes Received:
    95
    Trophy Points:
    41
    That works if you have a NUM pad
     
  4. Primes

    Primes Notebook Deity

    Reputations:
    837
    Messages:
    1,712
    Likes Received:
    688
    Trophy Points:
    131
    You could use the On Screen Keyboard with your mouse. In windows search, just search for OSK, or under start menu > accessories.
     
    Chronokiller likes this.
  5. SL2

    SL2 Notebook Deity

    Reputations:
    824
    Messages:
    1,337
    Likes Received:
    266
    Trophy Points:
    101
  6. Ethrem

    Ethrem Notebook Prophet

    Reputations:
    1,404
    Messages:
    6,706
    Likes Received:
    4,735
    Trophy Points:
    431
    Good old character map works too
     
  7. Jarhead

    Jarhead 恋の♡アカサタナ

    Reputations:
    4,990
    Messages:
    12,178
    Likes Received:
    2,981
    Trophy Points:
    581
    for a silly answer, let's write a program to print the exclamation mark without using the shift key. you'll note that i'll also refrain from using the shift key in my post; don't ask, my keyboard suffered an unfortunate accident ;]

    assuming you have python installed on your machine. if you don't have python already installed, you can install it from www.python.org. open the command line interface, cmd, and type

    Code:
    python
    
    click enter. you'll be taken to a prompt which waits for a command. type the following and hit enter. this will go after the three greater-than symbols on the screen, which i cannot reproduce in the following snip.

    Code:
    print '\x21'
    
    this will print the exclamation character to the output since that character is hex number 21 in the ascii code table, or decimal number 33 as noted previously. now you can copy-paste that character into whatever application you need it in.

    now we need to exit from the python interpreter. we could simply hit the x button on the cmd window, or we could enter ctrl-d; the quit command would be better, though that requires parentheses, which require shift.


    i spent way too long thinking about a witty way to do this. tried to use c first, but realized that i needed parentheses and the percentage symbol to call the printf function. tried php, needed the dollar sign. looked into html, but the escape characters require ampersand and the pound symbol. bash isn't able to be installed on windows unless you have windows 10 and change some settings. python is a common language and should probably be installed on your windows anyway since it probably came with a program you already use. plus, python allows a user to print any ascii character you want so long as you know the code for it. yay.
     
    katalin_2003 and alexhawker like this.
Loading...
Thread Status:
Not open for further replies.

Share This Page