Pasting a hotstring instead of typing it

Get help with using AutoHotkey and its commands and hotkeys
duzymichal
Posts: 16
Joined: 31 Mar 2017, 04:11

Pasting a hotstring instead of typing it

28 Oct 2017, 10:27

Hello everyone

Is it possible? I have thousands of string lines that resemble IP numbers and I want them to turn into their assigned category after pasting them, instead of typing. The ahk file with the hotstrings is already made.
User avatar
boiler
Posts: 3453
Joined: 21 Dec 2014, 02:44

Re: Pasting a hotstring instead of typing it

28 Oct 2017, 12:13

Yes, you could create a function that would be called by the hotstring like this: Paste("paste this text"). Then the function would take the text passed to it and assign it to the clipboard, then Send ^v.
SirRFI
Posts: 404
Joined: 25 Nov 2015, 16:52

Re: Pasting a hotstring instead of typing it

28 Oct 2017, 12:19

It is possible, but as far I did it it was messy. You can paste your contents into ClipBoard and ClipWait till it changes, then simulate CTRL+V to paste it.
Use

Code: Select all

[/c] forum tag to share your code.
Click on [b]✔[/b] ([b][i]Accept this answer[/i][/b]) on top-right part of the post if it has answered your question / solved your problem.

Return to “Ask For Help”

Who is online

Users browsing this forum: Bing [Bot] and 88 guests