Quote from
Talker on July 30, 2022, 11:36 pm
I have the following working function. It reads clipboard contents. But I want it to read the variable [KeyName] which I'm using in my project.
How do I correctly replace "Clip" with my variable?
{NeoBook Function}
Version=5.60
Language=VBScript
Comment=blah blah.
{End}
Dim Message, Clip, SAPI
Set objHTML = CreateObject("htmlfile")
Clip = objHTML.ParentWindow.ClipboardData.GetData("text")
Set SAPI = CreateObject("sapi.spvoice")
SAPI.Speak Clip
I have the following working function. It reads clipboard contents. But I want it to read the variable [KeyName] which I'm using in my project.
How do I correctly replace "Clip" with my variable?
{NeoBook Function}
Version=5.60
Language=VBScript
Comment=blah blah.
{End}
Dim Message, Clip, SAPI
Set objHTML = CreateObject("htmlfile")
Clip = objHTML.ParentWindow.ClipboardData.GetData("text")
Set SAPI = CreateObject("sapi.spvoice")
SAPI.Speak Clip