Keyboard Shortcuts assigned to Custom Scripts not working in WINDOWS 11

Hi,

I am currently using Amibroker Version 6.93 on Windows 11. I have just upgraded my OS from Windows 10 to Windows 11. Amibroker is not freshly installed on Windows 11 though.

Almost all the functionality that I use is working except for the custom keyboard shortcuts that I have assigned to "User Defined Tools" under Tools Menu.

As explained here, I have written the below code, saved it as "Stage2-Simple.js" under "C:\Program Files\AmiBroker\Scripts".

var FilePath = "c:\\Program Files\\AmiBroker\\Layouts\\Stage2-Simple.awl";
App = new ActiveXObject("Broker.Application");
App.LoadLayout( FilePath );

Then, I have assigned keyboard shortcut to the script under "Keyboard" option as shown below.

This setup was helping me in changing layouts without any issues under Windows 10 however after upgrading to Windows 11, this keyboard shortcut is not working, instead Amibroker is opening the script in VSCode (this is my default editor).

Please advise how to make these keyboard shortcuts work. Thanks in advance.

proper way is to pass the js file path to the cscript.exe engine, not rely on default application setting.
Change the command to cscript.exe path\file.js
or use the full path
C:\Windows\System32\cscript.exe //E:JScript //Nologo path\file.js

Awesome. Thanks for the clue and help. I am able to make it work as shown in below image.

cscript.exe without any quotes under Command

and full path of the script including file name and extension in double quotes under Argument.