Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: MichPaule on May 27, 2024, 07:01:16 pm
-
According to Microsoft VBScript will be depreciated soon (see https://techcommunity.microsoft.com/t5/windows-it-pro-blog/vbscript-deprecation-timelines-and-next-steps/ba-p/4148301).
What is Sparx Systems position to that?
TIA
Michael
-
Use Javascript.
-
Use Javascript.
Which would mean translating ~20000 lines of code in our case. :-[
And No: ChatGPT is NOT an option...
-
Use Javascript.
Which would mean translating ~20000 lines of code in our case. :-[
And No: ChatGPT is NOT an option...
Yeah, same here, except that I have more like 80.000 lines of code :-\
But since we are probably not the only ones with this problem, I'm hoping there will be new VBScript to Javascript translators built.
I'm guessing they will be AI based though.
I did some small experiments with Gemini, and that was pretty promising.
We still have a good few years before they will start deprecating it, and given the current speed of AI development...
Geert
-
Which would mean translating ~20000 lines of code in our case. :-[
And No: ChatGPT is NOT an option...
The brute fact is that we just use that OS functionality. Even if we tried to create our own implementation for VBScript it would probably still involve compatibility issues.
I don't think it's feasible for us to do anything other than suggest that you start migrating to Javascript.
We saw the first suggestions of this a few years ago with Microsoft deprecating the debugging API that we used for VBScript and JScript. Since then we've been pushing Javascript because the implementation that we offer is under our control.
-
Sigh... :'(
Somehow I expected this outcome.
Looks like I'll have to revise my retirement planning. 8)
Michael
-
Seems like Mickeysoft is going to replace pest by cholera :-/
q.
-
I started looking at VBScript to JavaScript converters a while back. The first one I came across was this one.
http://2018.www.slingfive.dev2.slingfive.com/pages/code/scriptconverter/#:~:text=ScriptConverter%20performs%20a%20basic%20translation,to%20the%20equivalent%20in%20Javascript. (http://2018.www.slingfive.dev2.slingfive.com/pages/code/scriptconverter/#:~:text=ScriptConverter%20performs%20a%20basic%20translation,to%20the%20equivalent%20in%20Javascript.) However whilst a good start wasn't complete. Needed some manual intervention afterwards.
I then came across some guidance converting scripts https://support.smartbear.com/testcomplete/docs/scripting/converting-scripts.html?_ga=2.253818760.1477370505.1716941956-607939705.1716941956 (https://support.smartbear.com/testcomplete/docs/scripting/converting-scripts.html?_ga=2.253818760.1477370505.1716941956-607939705.1716941956) which seemed to be a good source of things to consider.
There are some online converters but I've not found one that is 100% reliable. Was contemplating writing a script myself but due to other priority demands on my time its never at the top of the list.
Maybe someone who has more a vested interest could make a script converter to help address the issue of VBScript and JScript become obsolete.
-
Since then we've been pushing Javascript because the implementation that we offer is under our control.
Isn't it the SpiderMonkey? (with some tweaks toward EA integration)
-
The MS Copilot can convert chunks of code relatively OK - but the code only, it removes all the comments. Silly.
Where I have an issue is user interaction - using JS you lose InputBox (which I use to create primitive number-based menues) and MessageBox (where I like both the icons and the selection of buttons).
Ok, there are some workarounds, but working so-so, and only in 32-bit EA. So Sparx should suggest / create some ways of user interactions within JS scripts, beside the Session.Input and Session.Output, but I don't know, if there is enough interest.
-
+1
-
The MS Copilot can convert chunks of code relatively OK - but the code only, it removes all the comments. Silly.
You should be able to instruct it to keep the comments I would think. ???
Geert
-
Ok, there are some workarounds, but working so-so, and only in 32-bit EA. So Sparx should suggest / create some ways of user interactions within JS scripts, beside the Session.Input and Session.Output, but I don't know, if there is enough interest.
I have the strong believe that the interest will arise sooner or later ;)
-
The "soon" above is according to MS "around 2027"...
q.