Solved

AutoHot Key ctrl not working

Posted on 2015-02-11
3
219 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 52

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 52

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Magic Software info 18 125
What is Python programming? 3 103
Definitions and default visual studio colors 5 58
Plain Text Editor for iPad 6 57
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
A short article about a problem I had getting the GPS LocationListener working.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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…

911 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

22 Experts available now in Live!

Get 1:1 Help Now