AsleyCruz:
I am confused by your latest response ...
Cool, Gaev... it works in WebBrowser object.
I am assuming that you had the following
vbscript command inside an
HTML document ... that you loaded in a
WebBrowser object ...
Code: Select all
window.external.nbExecAction "AlertBox " & chr(34) & "Hello from HTML" & chr(34) & " " & chr(34) & "Executing action from HTML source via vbscript" & chr(34)
... notice that it says
window.external.nbExecAction
If I want to display an AlertBox using a VBScript Function...
how is the correct way? any idea? is this possible?
But, How can I send an "AlertBox" to NeoBook using VBScript code? (Not inside an HTML document)
As per my last post, you use this command ...
Code: Select all
publication.nbExecAction "AlertBox " & chr(34) & "Hello" & chr(34) & " " & chr(34) & "from vbscript" & chr(34)
... notice that it says
publication.nbExecAction ... and you place it inside a "
Function defined as using vbscript" ... which you
Call from a code section in your publication.
Ex: This VBScript code sends to NeoBook any result:
publication.nbSetVar "[%1]", Total
This will populate
the variable defined in the first parameter (of the
Call command) with the value of the
vbscript variable called
Total ... it has nothing to do with asking NeoBook to execute NeoBook commands from a vbscript.