gregster wrote: ↑28 Feb 2023, 06:50
Also, the above posted code doesn't use v2 syntax, and would throw an error when ran with v2.
Thank you for replying gregster!
I’m in the process of converting my existing v1 ahk file to v2.
The above code is indeed a v1 script, however, it runs in a v1 file that is perfectly loaded.
gregster wrote: ↑28 Feb 2023, 06:50
Also, the above posted code doesn't use v2 syntax, and would throw an error when ran with v2.
When I’m editing this file and want to run it, my editor needs to be in v1 mode in order not to get the error when I run it. The script is for changing the mode of my editor from v2 to v1.
In my v2 file, I have this code that runs without problems:
Code: Select all
!a::
{
Click 357, 14
Send "{down}{down}{down}{down}{down}{down}"
Send "{Enter}"
}
gregster wrote: ↑28 Feb 2023, 06:50
I can't really follow your problem description, and don't know what "when I run it at the end " means here. The end of what?
At the end means that after the script runs, all commands are being perfectly executed, however, "at the end" it pastes the last entry of my clipboard.
Imagine the code as it is with a last line after
Send {Enter} that says:
Send ^v
I hope it's more clear now! It is a ghost that I see it happening and can't understand it, let alone you that you read the explanation!