Vb Script And Http S’abonner
So I have a basic question and this is the only thread that even had some close to what I need.
We want to trigger every 30 seconds a call to a web service to retrieve data that we would then print.
1. Can commander be setup to trigger every N seconds?
2. Can we use VB Script in the label format to go and get data using HTTP. I found this VB Script code online and was wondering if it would work.
dim xHttp: Set xHttp = createobject("MSXML2.ServerXMLHTTP")
xHttp.Open "GET", "https://yourhost.example.com/foo", False
' these values below 2 an 13056 are to ignore get errors
xHttp.setOptions 2, 13056
dim response = xHttp.responsetext
3. I can write the rest of the VB Script to parse out the data I need for the labels to print.
We have to get a proposal out to a customer ASAP and need to know if this is feasible.
Vous devez vous connecter pour laisser un commentaire.