VoiceGuide IVR Software Main Page
Jump to content

Trigger Execution Of Another Module.

Recommended Posts

Hi,

 

I have a script that creates new folder. Under certain conditions I want that VBScript to trigger another module withing the same VoiceGuideScript (create_newfolder.vgs).

 

Dim fso, newFldr, vg, fldr
Set fso = CreateObject("Scripting.FileSystemObject")
Set newFldr = "$RV[GetDigits]"

If Not fso.FolderExists("D:\" & newFldr) Then
 Set fldr = fso.CreateFolder("D:\" & newFldr)
 Set fso = Nothing

 set vg = CreateObject("VoiceGuide.CommandLink")
 vg.Script_Goto $RV_LINEID, "create_newfolder.vgs", "Success"
 set vg = Nothing

Else
 set vg = CreateObject("VoiceGuide.CommandLink")
 vg.Script_Goto $RV_LINEID, "create_newfolder.vgs", "Exists"
 set vg = Nothing
End If

 

 

The script works fine without the following code (that's the code that doesn't work):

set vg = CreateObject("VoiceGuide.CommandLink")

  vg.Script_Goto $RV_LINEID, "create_newfolder.vgs", "Success"

  set vg = Nothing

 

My Question:

How can I trigger execution of module within the same VGscript? The code that I use right now (above), doesn't do the job. I would like to do it without using 'Path' tab.

 

Is my line correct?

vg.Script_Goto $RV_LINEID, "create_newfolder.vgs", "Success"

 

 

Thank you in advance.

Share this post


Link to post

I also tried using:

vg.Run_ResultReturn $RV_LINEID, "success" 
and
vg.Run_ResultReturn $RV_LINEID, "fail"

But it also didn't help me. I am using VG version 5.2

Share this post


Link to post
How can I trigger execution of module within the same VGscript?

Does the module "Success" exist?

 

Does the other command:

 

vg.Script_Goto $RV_LINEID, "create_newfolder.vgs", "Exists"

 

work fine for you?

 

 

Could you please post a copy of VoiceGuide's Debug Printout which captures the problem, this will allow us to see what is going wrong.

 

When running the script click on VoiceGuide's View menu and select 'Event Trace Log' option - any log information will then appear in this window. You must open the trace window before making the call.

You can enable the automatic saving of the logs to files in \log\ directory as well.

Share this post


Link to post

Thank you for asking the right questions. It took me a while to fix it (since to test it I need to use payphone), but your ideas put me in a right track.

 

THANK YOU for helping me.

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
×