topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday March 29, 2024, 9:33 am
  • Proudly celebrating 15+ 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 7750 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 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):

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,277
    • View Profile
    • Donate to Member
AutoHotkey.chm is your friend. :)

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,832
    • 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,277
    • View Profile
    • Donate to Member
hehe.. i too once thought braces were those expensive metal clamps installed by dentists. ;D