Jump to content

Auto Hot Key


Recommended Posts

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}
 

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...