Trouble using old v2 scripts in the new v2

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
BubbaDavie
Posts: 2
Joined: 26 Mar 2024, 16:01

Trouble using old v2 scripts in the new v2

26 Mar 2024, 16:22

Used autohotkey many years. After you modified scripting, I haven't been able to write a script to do the following:
Enter the word "Cheers, - then on the next line enter "Dave".
Spent too much time trying to find out to do that.
TIA
User avatar
mikeyww
Posts: 26973
Joined: 09 Sep 2014, 18:38

Re: Trouble using old v2 scripts in the new v2

26 Mar 2024, 16:31

Welcome to this AutoHotkey forum!

Code: Select all

#Requires AutoHotkey v2.0

F3:: {
 Send 'Cheers,'
 Send '`n'
 ; Send '{Down}'
 ; Send '`t'
 Send 'Dave'
}
Explained: Send
BubbaDavie
Posts: 2
Joined: 26 Mar 2024, 16:01

Re: Trouble using old v2 scripts in the new v2

27 Mar 2024, 08:33

Thanks, It works. I'll try to find it in the documentation.
I want to trigger it with alt "c".
Thanks for the quick response.
Dave
User avatar
mikeyww
Posts: 26973
Joined: 09 Sep 2014, 18:38

Re: Trouble using old v2 scripts in the new v2

27 Mar 2024, 10:18

Code: Select all

#Requires AutoHotkey v2.0
!c::Send 'Cheers,`nDave'

Return to “Ask for Help (v2)”

Who is online

Users browsing this forum: alawsareps, hisrRB57, reborn, songdg and 98 guests