• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 549
  • Last Modified:

Can I bind my function keys to do things in Vista?

Basically I would like to bind say F7 to paste a string of text so I don't have to type it manually. Any free Vista software that can do this for me?
0
NetworkConsultant01
Asked:
NetworkConsultant01
  • 5
  • 3
2 Solutions
 
torimarCommented:
You might want to try Autohotkey:
http://www.autohotkey.com

It is free, it can do what you want to be done, plus a whole lot more.
Here's a quickstart guide:
http://www.autohotkey.com/docs/Tutorial.htm
0
 
NetworkConsultant01Author Commented:
Happen to know how I can bind say F9 to paste the word cat
0
 
torimarCommented:
Make sure, Autohotkey is installed on your system. Copy the code below into a simple text file (notepad) and save the file as mykeys.ahk. Double-click the .ahk file.

Then, whenever the cursor is in a text input fiels and you press F9, you will get "cat", for F6 you will get "dog". Expand as you please.

After a reboot, you key mappings are back to normal. If you always want them active, put a link to the .ahk file into the 'Startup' folder.
0
Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

 
torimarCommented:
Sorry, forgot the code. Here it is:
F9::
Send cat
return
 
F6::
Send dog
return

Open in new window

0
 
torimarCommented:
As long as Autohotkey is running in the background, there is an icon with an 'H' in the system tray.
Right-click it to edit or pause the script, suspend hotkeys or exit Autohotkey (which will turn your key mappings back to normal).
0
 
NetworkConsultant01Author Commented:
Nice, it works. Is it possible to make it press enter at the end so I don't have to :D
0
 
torimarCommented:
Yes, it is.

Modify the script like given below, then test pressing F9 F6:
F9::
Send cat {Enter}
return
 
F6::
Send dog
return

Open in new window

0
 
NetworkConsultant01Author Commented:
Nice, you the man, had to remove the space after cat and before {enter} since it saw the white space but works just like I wanted.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now