Page 1 of 1

Trouble using old v2 scripts in the new v2

Posted: 26 Mar 2024, 16:22
by BubbaDavie
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

Re: Trouble using old v2 scripts in the new v2

Posted: 26 Mar 2024, 16:31
by mikeyww
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

Re: Trouble using old v2 scripts in the new v2

Posted: 27 Mar 2024, 08:33
by BubbaDavie
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

Re: Trouble using old v2 scripts in the new v2

Posted: 27 Mar 2024, 10:18
by mikeyww

Code: Select all

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