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

Offline Dafne88

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
WDE receive data from VBScript
« on: January 09, 2020, 01:02:45 AM »
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: 7056
  • Karma: 56330
Re: WDE receive data from VBScript
« Reply #1 on: January 09, 2020, 11: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: 5
  • Karma: 0
Re: WDE receive data from VBScript
« Reply #2 on: January 10, 2020, 12:50:25 AM »
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: 118
  • Karma: 10
Re: WDE receive data from VBScript
« Reply #3 on: January 10, 2020, 02:13:50 AM »
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: 7056
  • Karma: 56330
Re: WDE receive data from VBScript
« Reply #4 on: January 10, 2020, 02:31:57 AM »
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: 5
  • Karma: 0
Re: WDE receive data from VBScript
« Reply #5 on: January 10, 2020, 02:51:47 AM »
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 ;)