Link to home
Start Free TrialLog in
Avatar of NetworkConsultant01
NetworkConsultant01

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of torimar
torimar
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of NetworkConsultant01
NetworkConsultant01

ASKER

Happen to know how I can bind say F9 to paste the word cat
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.
Sorry, forgot the code. Here it is:
F9::
Send cat
return
 
F6::
Send dog
return

Open in new window

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).
Nice, it works. Is it possible to make it press enter at the end so I don't have to :D
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.