Guest silentdos Report post Posted 06/03/2005 10:21 PM 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
Guest Me again Report post Posted 06/04/2005 10:07 PM 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
SupportTeam Report post Posted 06/05/2005 01:11 AM 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
Guest silentdos Report post Posted 06/05/2005 04:35 PM 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