AutoHotkey Community

It is currently May 26th, 2012, 2:23 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: January 9th, 2008, 9:49 am 
Offline

Joined: January 9th, 2008, 9:35 am
Posts: 3
I really don't want to bind the ` key to some other character in my script and am dying to use it for my HotString such as:

:oc:hi`::^+{Left}^xHello ^v{BS}{!}

Of course this gives an invalid hotkey error when I run the script.

Is there a way to use the ` key? I tried hi{`} but that didn't work.

This is my first day writing AHK scripts which I'm using for repetitive tickets at work. It's really handy but I am so used to using ` for the ending character that I'm determined to figure out a way to do it.

Any help would be greatly appreciated as searching for this character doesn't really work so well and I've not found a list of invalid characters or workarounds in docs. =)

-Benji


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2008, 12:16 pm 
Offline

Joined: January 9th, 2008, 9:35 am
Posts: 3
I ended up just setting the trailing character to \ . It's almost as fun and enables single hand commands more easily so I like it pretty well. Thanks for reading. I'll be dorking around here more often now that I've got a couple pages of AHK script written to automate some of my work.

Next curiosity is getting AHK to work in windows generate from Putty and mstsc. Not sure how I'm going to fare with these and will search about first.

Cheers,
Benji


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 9th, 2008, 12:23 pm 
Offline

Joined: October 17th, 2006, 4:15 pm
Posts: 7501
Location: Australia
Since hotstrings accept escape sequences (like `t for tab), ` must also be escaped:
Code:
:oc:hi``::^+{Left}^xHello ^v{BS}{!}


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Retro Gamer, tommy, Yahoo [Bot] and 14 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group