Page 1 of 1

Simple script that types from a collection

Posted: 22 Mar 2018, 20:08
by eramark1
Okay so i asked this once before and it got answered but sadly the script got deleted from my computer and i cant seem to find the old thread here on ahk forums.
What i need is basicly a simple script that types something from a collection when a key is pressed.

To further clarify this :
I will have a group of links and i want them bound on certain keys ( lets say numpad 1 - 8 ),
so when i press 1 the script will type the coresponding text / link.

If anybody can help me with this or atleast show me the general direction on how i should do this, i would realy appreciate this.
Thnaks in advanced.

Re: Simple script that types from a collection  Topic is solved

Posted: 23 Mar 2018, 01:07
by Rohwedder
Hallo,
try:

Code: Select all

NumPad1::Send https://autohotkey.com/docs/commands/Hotstring.htm
NumPad2::Send https://autohotkey.com/docs/commands/Hotkey.htm

Re: Simple script that types from a collection

Posted: 23 Mar 2018, 09:42
by jeeswg
Try searching via Bing.

Re: Simple script that types from a collection

Posted: 23 Mar 2018, 10:05
by MaxAstro
Rohwedder wrote:Hallo,
try:

Code: Select all

NumPad1::Send https://autohotkey.com/docs/commands/Hotstring.htm
NumPad2::Send https://autohotkey.com/docs/commands/Hotkey.htm
I wish this forum had an upvote system. Subtle, yet effective. :)