Solved

AutoHot Key ctrl not working

Posted on 2015-02-11
3
216 Views
Last Modified: 2015-02-12
Hi, I have just run across something very peculiar.  For the last three months I have been using Autohot Keys to write scripts to use as shortcuts.  Here is an example;
;This is to open Microsoft Outlook
^e::
Run, C:\Program Files (x86)\Microsoft Office\Office14\Outlook.exe
Return

Here, the inverted v (represents the ctrl key which is one of the modifiers allowed by AHK.  Holding down the ctrl key while pressing the "e" key opens Outlook so that I can see my emails,  

I when in to add a script today and pressed the ctrl key and NOTHING happened.  No symbol of any kind so I could not complete my script.  My notebook (Envy 15 t) is only a week old so I can't figure out if the ctrl key just quit working or if there might be something else going on.  All of the scripts that I have written use the ctrl key as a modifier and they all work perfect so I don't understand why it will no longer work.

Let me say that everything was created on another Windows 7 laptop and transferred to this one so I don't know if that has something to do with it or not.  In the event I can not get this key to work, is there another way to write the ctrl command other than hitting the ctrl key?  If so, could you please give me an example. Thanks
0
Comment
Question by:camtz
  • 2
3 Comments
 
LVL 51

Accepted Solution

by:
Joe Winograd, EE MVE earned 500 total points
ID: 40605568
You don't hit the Ctrl key to get ^ in your AutoHotkey scripts. You hit Shift-6 on your keyboard. That enters ^ in the source code file (which is plain text). When AHK executes and sees the ^ in your script, it interprets it as the Ctrl key. I suppose the location of ^ could be different from Shift-6 on your keyboard (depends on Region/Language setting), but I know that Shift-6 is its location on the US and UK keyboards. Your EE profile says you're in the US, so that's probably where it is, but if hitting Shift-6 doesn't give you the ^ character, then look for ^ on your keyboard. Regards, Joe
0
 

Author Closing Comment

by:camtz
ID: 40605625
Excelente !!!! - You are absolutely correct.  I just cheit and it works.  I suppose that it's been a long time since I did this and had forgotten.  Thanks again
0
 
LVL 51

Expert Comment

by:Joe Winograd, EE MVE
ID: 40605672
You're welcome. Happy to help. Also, note that the situation is similar for the Alt key in AutoHotkey. If you have the Alt key in any of your AHK scripts, you'll see the exclamation mark (!), which AHK interprets as the Alt key. For example, if your script wants to enter Alt-F to get the File menu in a program, you'll see !f in your AHK script. To get the ! character in your script, hit Shift-1 on your keyboard (similar to hitting Shift-6 on your keyboard to get the ^ character in your script). Regards, Joe
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now