DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: AHK question : how to use modifier symbols as normal/literal characters?  (Read 11,513 times)

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
I want use the "+" symbol in some of my hotstrings "expansions", but... as a "normal", literal character, not as a the usual symbol for "shift". What's the convention for that (eg : RegExp uses "\") ? (Oh, and if there's a web page -- other than the AHK WebSite -- where I can find that info... and other useful info). Thanks a lot!
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould
« Last Edit: July 11, 2008, 05:33 AM by Armando »

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
AH! i finally found it. Always the case when  I ask the question...  :-[
Just wrap the symbols in curly brackets : { }
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
Some precisions, found elsewhere (the "braces" trick was found on lifehacker in a different context):

- If one is using the send command (instead of the common hotstring syntax), one could also use sendraw (or {Raw}, as the first item of the string):

Quote
Raw mode: The SendRaw command sends the keystrokes exactly as they appear rather than translating {Enter} to an ENTER keystroke, ^c to Control-C, etc. To use raw mode with SendInput, SendPlay, or SendEvent, write {Raw} as the first item in the string; for example: SendInput {Raw}abc

http://www.autohotkey.com/docs/commands/Send.htm
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
AutoHotkey.chm is your friend. :)

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
don't you use ` (same key as the tilde for me)
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • Coding Snacks
AutoHotkey.chm is your friend. :)

Yes, thanks Lanux.
I must confess that I always have trouble searching these chm files... especially in that case where I was looking for the word "bracket"... and the word "braces" was the one to look for... English, English... :-[

don't you use ` (same key as the tilde for me)

I don't think these work in hotstrings.
"I suppose it can be said that I'm an absent-minded driver. It's true that I've driven through a number of red lights on occasion, but on the other hand, I've stopped at a lot of green ones but never gotten credit for it."
Glenn Gould

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
hehe.. i too once thought braces were those expensive metal clamps installed by dentists. ;D

Original address: https://www.donationcoder.com/forum/index.php?topic=14016.0