Support for sockets

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
Heinz57
Junior Coder
Posts: 28
Joined: Wed Jul 22, 2015 6:10 pm
Location: A Berliner just east of Wien

Support for sockets

Post by Heinz57 » Tue May 03, 2022 10:35 am

Hello,

are there any plans for the foreseeable future to enhance Macro Scheduler to support sockets / websockets?

I am currently about to connect a runtime ms.exe with my application software to exchange data and commands. For this http works, of course, but has, in my eyes, lots of disadvantages versus sockets.

Best regads

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1348
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Support for sockets

Post by Dorian (MJT support) » Tue May 03, 2022 10:53 am

There are no current plans for this.
Yes, we have a Custom Scripting Service. Message me or go here

Heinz57
Junior Coder
Posts: 28
Joined: Wed Jul 22, 2015 6:10 pm
Location: A Berliner just east of Wien

Re: Support for sockets

Post by Heinz57 » Tue Aug 09, 2022 10:14 am

Hello,

I read in MacroScheduler that one can call VBScripts and also read data via VBEval from a VBScript into a MacroScheduler Array.

I have no experience with the Microsoft VisualStudio environment but I strongly suppose that VBScripts are able to communicate via sockets. I am therefore asking if it is feasible to call from MacroScheduler a VBScript, that communicates with our application via sockets, receives the answers and provides this data back to MacroScheduler. And since VBRun can pass data to a VBScript, this should also work the other way round so that my MacroScheduler code provides the initial data to the VBScript.

Will that work?

I am especially not sure about the differences and limitations of VBScript versus a "full" VisualBasic. But there are various postings etc in forums, which claim that this is possible with MSWINSOCK.Winsock and/or third party additional libraries.

Thank you for your kind reply and
Best regards

User avatar
Marcus Tettmar
Site Admin
Posts: 7378
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Support for sockets

Post by Marcus Tettmar » Tue Aug 09, 2022 11:24 am

Hi,

VBScript and VB are very different.

There's no built in support for sockets in VBScript. There used to be mswinsck.ocx which I'm guessing it *may* have been possible to use with VBScript, but I'm not sure if it even exists any more.

Another option might be to use the socket library with Python:
https://realpython.com/python-sockets/

It might be possible to do that within Macro Scheduler using PyExec.

You might also be able to use a third party ActiveX component. Maybe this?
https://sockettools.com/sockettools-activex-edition/
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Heinz57
Junior Coder
Posts: 28
Joined: Wed Jul 22, 2015 6:10 pm
Location: A Berliner just east of Wien

Re: Support for sockets

Post by Heinz57 » Tue Aug 09, 2022 11:33 am

Hello,

and thank you very much for the proposals.

I will investigate them and report the results here so that it might help other users.

Best regards

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts