Jump to content

Recommended Posts

I have only recently downloaded AHK, does anyone have experience with the code that would allow me to insert an entire template?  TIA.

Share this post


Link to post

Hi,

 

I've set up auto hotkeys for my wife when answering emails. Here is a snippet of the file.

To use, she types

xapr (space)

or

xab (space)

which activates the script and types the text.

 

This is saved under "MyAutoHotkeys.ahk" and when compiled creates "MyAutoHotkeys.exe". There is a shortcut to that exe in the Startup folder, so that it is running.

; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <myemail@nowhere.com>
;
; Script Function:
;    Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

:oc:xab::Thank you for your email enquiry regarding blah blah. {Enter}{Enter}Unfortunately, I am already fully booked for the weekend of your blah.  {Enter}{Enter}I wish you all the very best with your blah blah. {Enter}{Enter}Warmest regards{Enter}Blah{Enter}

:oc:xapr::This is some text for April{Enter}More text {Enter}Even more text{Enter}

:oc:xjun::Here is the text for June{Enter} etc etc{Enter}
 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...