Where I've run into the issue at the moment is the second step: I can get the file to create in the script's folder and open fine, but no matter what I try it won't seem to paste. Send, ^v doesn't seem to be working, nor do some other variations I've tried: everything else I've included below for reference. Any suggestions would be greatly appreciated!
(Full disclosure: never tried anything of the sort before, only just managed to Frankenstein things so far, so advance apologies for any obvious errors or weirdness)
Code: Select all
^x::
vPathNotepad := "C:\Program Files (x86)\Notepad++\notepad++.exe"
vPath := A_ScriptDir "\z " A_Now ".txt"
if FileExist(vPath)
{
MsgBox, % "error: file already exists:`r`n" vPath
return
}
FileAppend,, % "*" vPath, UTF-8
Run, "%vPathNotepad%" "%vPath%"
Send, ^v
return