VoiceGuide IVR Software Main Page
Jump to content

Run VB Script Module

Recommended Posts

Hi

 

On the "run VB script module" (Execute-IE) I'm executing some commands (open IE and execute a URL - wich works well), but it doesn't return a "success" meaning it doesn't continue to "GoodBye".

Why? I don't want to change it to "Do not wait till VB script complete.".

 

Danny.

 

 

 

104103.70 0 [Execute-IE] Running VB Script...

104103.72 0 RVreplace start (strlen>100)

104103.75 0 Run Script waiting... (shellid=632, process=1140)

104104.81 0 LsRunWaitTillFinished EV_TIMEOUT_CHECKONSTATE

104104.81 0 task completed (shellid=632, process=1140)

104104.83 0 No information returned from program to VG (no VGRUNRESULT_0.TXT or SHLRESLT.TXT)

104104.84 0 Hanging up call... [WaitTillFinished - next module not specified]

dannyg.zip

Share this post


Link to post

If you wish to return information from VBScript back to VoiceGuide then you should use the VoiceGuide COM function:

 

Run_ResultReturn

 

From VG Help file's section on Run VBScript Module:

 

Wait until VB Script completes option

 

If the 'Wait until VB Script completes' option is selected then VoiceGuide will wait unit the VB Script finishes running, or a response from the executing VB Script is received.

 

VB Script can send responses back to VoiceGuide while it is executing by calling one VoiceGuide's ActiveX/COM functions. The functions which are considered to return a result back to VoiceGuide are: Run_ResultReturn(), Script_Gosub(), Script_Goto(), Script_Return(). For more information on VoiceGuide's ActiveX/COM interface please see the COM Interface section of Help file.

 

Once VoiceGuide detects that a VB Script has completed (and no COM response was received beforehand) then VoiceGuide will see if a "Result File" has been created by the script. If one has been created then VoiceGuide will read in it's contents and then determine what to do next based on the contents of the file.

 

The syntax of the Result File is the same as that used by the Run Program module. The Result Files must be placed in VoiceGuide's data subdirectory. Please refer to the Run Program module Help file's section for more information.

 

If the 'Wait until VB Script completes' option is selected, and no result file is created then the "Fail" path is taken after the VB script completes.

ie: if the 'Wait until VB Script completes' option is selected then an explicit "Success" result must be returned to VoiceGuide in order for it to go down the Success path.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×