Author Topic: WDE receive data from VBScript  (Read 2660 times)

Offline Dafne88

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
WDE receive data from VBScript
« on: January 08, 2020, 04:02:45 PM »
Hello guys,
do you think it is possible that WDE receives data, for example the phone number to call, from a vbscript  ??? unfortunately the system that interfaces with WDE can only use VBScript  :-[. Thanks to everyone

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: WDE receive data from VBScript
« Reply #1 on: January 09, 2020, 02:30:29 PM »
Well, the IE browser component can be configured to receive script returns.
https://weblog.west-wind.com/posts/2008/sep/27/calling-javascript-functions-in-the-web-browser-control

Offline Dafne88

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: WDE receive data from VBScript
« Reply #2 on: January 09, 2020, 03:50:25 PM »
Hi!
thank you very much for helping.
I try to understand how to adapt the content of the link to my situation. Do you have any suggestions? I should develop a WDE plugin capable of receiving a data or command from a vb script external to WDE  :o

Offline PeteHoyle

  • Full Member
  • ***
  • Posts: 126
  • Karma: 13
Re: WDE receive data from VBScript
« Reply #3 on: January 09, 2020, 05:13:50 PM »
Could you use your VBScript to modify a text file?

If so you could write the number to be dialed to a text file that WDE is using the FileSystemWatcher class to monitor for changes.

When the file changes check for the text, if the text is a phone number and the agent is logged on to voice then make the call.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: WDE receive data from VBScript
« Reply #4 on: January 09, 2020, 05:31:57 PM »
How exactly are you using that VBScript right now?
Because it is async call...so...when do you trigger it? Only way to execute a VB Script (vb file locally? From some http server?) is to run it via browser control. So you navigate to it, get the script values and do something.
However, still wondering how you make that VB content dynamic...

Offline Dafne88

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: WDE receive data from VBScript
« Reply #5 on: January 09, 2020, 05:51:47 PM »
Hi,
I had thought about the solution of using a file to write the value sent by the vbscript but I was wondering if there was a more solid solution. I know that on the AS IS system the vbscript sends the parameter to an exe and the exe sends the data to a custom phone bar via socket.
Maybe even WDE should do the same thing...

thank you all for your help ;)