Looking for help with a script to paste Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Decizorro
Posts: 4
Joined: 27 Jul 2023, 12:53

Looking for help with a script to paste

27 Jul 2023, 12:59

I'm looking for a script that on a single key press hits enter waits 1 second then control+v then enter again to send. I do not want a loop setup I want a trigger. I couldn't find out how to do the pause so I am currently doing the first enter manually then using the script and repeating that. The script I am currently using is:

XButton1::
SendInput ^v
SendInput {Enter}
Return

I would love some help to remove the need for me to hit the first enter.


[Mod action: Moved topic to the v1 section since this is v1 code. The main section is for v2. You were notified before posting to make sure you were using v2 before posting there.]
User avatar
mikeyww
Posts: 27216
Joined: 09 Sep 2014, 18:38

Re: Looking for help with a script to paste  Topic is solved

27 Jul 2023, 13:52

Code: Select all

#Requires AutoHotkey v1.1.33
XButton1::
Send `n
Sleep 1000
Send ^v`n
Return
Decizorro
Posts: 4
Joined: 27 Jul 2023, 12:53

Re: Looking for help with a script to paste

27 Jul 2023, 14:09

Thank you. I tried the same style but I was using the wrong timer. Appreciate the help.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: MrHue, mtomas and 90 guests