Best way to use this for auto templates?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
xxnonamexx
Posts: 10
Joined: 26 Jun 2020, 15:52

Best way to use this for auto templates?

26 Jun 2020, 20:24

Hi I have been researching this software and wondering it it would work for templates.
Example we use a set of templates for emails and think this would be better than copy pasting. I was looking at the tutorials and want to make my F1 etc keys into hot keys.
Teamplate example:
Thanks for contacting us regarding your incident.
Please try the following steps to see if this resolves your issue.
Thanks etc

I tried to link this to F1 key but only first line took.
Also everytime I start my PC would I have to activate each template daily in order to use. Thanks
User avatar
boiler
Posts: 16903
Joined: 21 Dec 2014, 02:44

Re: Best way to use this for auto templates?

26 Jun 2020, 20:40

Hi. AutoHotkey is very well suited for what you are looking to do. Here is one way to get multiple lines to be pasted when you press the F1 key:

Code: Select all

F1::
SendInput,
(
Thanks for contacting us regarding your incident.
Please try the following steps to see if this resolves your issue.
Thanks etc
)
return
To get your script to automatically start every time your start your PC, right-click on the script file name in File Explorer and select "Create shortcut". Then copy or move the shortcut that is created to your Windows startup folder, which is typically this:
C:\Users\<user name>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
where <user name> is your Windows user name
xxnonamexx
Posts: 10
Joined: 26 Jun 2020, 15:52

Re: Best way to use this for auto templates?

27 Jun 2020, 11:01

Thanks for the info. If I have 5-9 templates is there a way to put in one script for the startup or do they need to be added individually?
User avatar
boiler
Posts: 16903
Joined: 21 Dec 2014, 02:44

Re: Best way to use this for auto templates?

27 Jun 2020, 11:53

They can all be in the same script.
xxnonamexx
Posts: 10
Joined: 26 Jun 2020, 15:52

Re: Best way to use this for auto templates?

27 Jun 2020, 12:14

How can I add multiple templates to one script? Let's say template 1 fn1 key template 2 fn2 key etc. Thanks much appreciated.
User avatar
boiler
Posts: 16903
Joined: 21 Dec 2014, 02:44

Re: Best way to use this for auto templates?

27 Jun 2020, 12:25

Code: Select all

F1::
SendInput,
(
Thanks for contacting us regarding your incident.
Please try the following steps to see if this resolves your issue.
Thanks etc
)
return

F2::
SendInput,
(
My Name
Street Address
Anytown, Etc.
)
return

F3::SendInput, Phone: 123-456-7890
xxnonamexx
Posts: 10
Joined: 26 Jun 2020, 15:52

Re: Best way to use this for auto templates?

07 Aug 2020, 14:09

Thanks I noticed a delay in running the script from pressing the key until it populates the writing. Would that be an issue with the script?
User avatar
boiler
Posts: 16903
Joined: 21 Dec 2014, 02:44

Re: Best way to use this for auto templates?

07 Aug 2020, 14:47

That’s strange. It should send the text as soon as you press the hotkey.
xxnonamexx
Posts: 10
Joined: 26 Jun 2020, 15:52

Re: Best way to use this for auto templates?

07 Aug 2020, 16:00

I think it has to do with service now software but I'll check again thanks

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: haomingchen1998, mikeyww, mmflume, roysubs, scriptor2016, ShatterCoder and 104 guests