*I am not sure this is to be posted here or somewhere else.
I think this is not the issue of the nvda ahk but how nvda interact with autohotkey
these are what I have learnt and would like to bring to everyone's attention.
Please see below as an example.
Menu, PM, Add, ellipsis โฆ, PM_ellipsis
PM_ellipsis:
Clipboard := "......"
Send ^v
;I found that, if the function is simply triggered by hotkeys, like ctrl 1, then only the line nvdaSpeak is necessary
;if the process involve sending keys, menu etc, it may involve interupting the nvda speach so that below extra lines have to be added to your ahk script
;what I meant by interupted is like, after trigger the function, nvda will read the whole window title first before speaking the nvdaSpeak
;therefore without these extra line, performing this script nvda will speak like "*new 2 - Notepad++ this is a test"
sleep 100
;this line is very depending on the usage situation. I tested out that, if this line is set to disable on Notepad++, it will work, but if it is in MS Word, without sleep will be interupted
;so it may need to adjust the sleep time according to your use situation, if you found that your nvdaSpeak is interupted, try increasing sleep time
nvdaCancel()
;this is to interupt nvda of speaking the window title or anything else
nvdaSpeak("this is a test")
;just for your attention, string should be quoted in "" and variable do not need ""
;so speak clipboard will be like nvdaSpeak(Clipboard)
return