Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 02, 2016, 06:25:54 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

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

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
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!
« Last Edit: July 11, 2008, 12:33:12 AM by Armando »

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
AH! i finally found it. Always the case when  I ask the question...  :-[
Just wrap the symbols in curly brackets : { }

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
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.autohotke...cs/commands/Send.htm

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
AutoHotkey.chm is your friend. :)

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,605
    • View Profile
    • Donate to Member
don't you use ` (same key as the tilde for me)

Armando

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 2,727
    • View Profile
    • Donate to Member
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.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
hehe.. i too once thought braces were those expensive metal clamps installed by dentists. ;D