LuaRT: Lua programming environment for console, desktop applications for Windows
luart.org
luart.org
Excited to look how LuaRT exposes WinAPI, my ideal would be one global namespace where you can easily auto-import all the normal functions. Microsoft has made it somewhat easy for library authors to generate the externs with their relatively new Win32metadata package: https://github.com/microsoft/win32metadata
You can access the win32 api in Node via Koffi. Here's a MessageBox example: https://koffi.dev/start#for-windows
Also see node-activex (https://github.com/durs/node-activex)
AHK2's syntax is also very close to Javascript these days. It's quite pleasant to use and the C++ source is very well-documented.
Don't get me wrong... powershell is really nice for some kinds of IT work, but I've had lots of trouble with it. I love the succinct nature, but it takes a lot of effort to get a line of code to do what you need it to do...even after you've spent a LOT of time with the language.
PS C:\> Find-SuccinctNature PowerShell -ComparedTo Bash
Find-SuccinctNature: Object not foundPlus if performance matters, rewriting the critical part in a .NET language is always an option.
There's a free Community Edition: https://www.embarcadero.com/products/delphi/starter/free-dow...
Maybe such a big solution is not needed for tiny sized projects ?
Maybe we don't need fatty big executables for the ease of deployment ?
https://luart.org/doc/sys/COM-constructor.html
does that mean we can use it to manipulate Office files just as in VB or PowerShell ?
(Contrast with Doug Finke’s Import-Excel module for PowerShell which can work with Excel files without Excel installed, and Przemysław Kłys‘s PSWriteWord module that can write Word files without Word. They can’t do as much as full Excel and Word can).
Save-Module ImportExcel -Path C:\Whatever\
and copy that module folder along with the PowerShell folder to the remote machine, and you can import modules from a full path: Import-Module C:\Whatever\ImportExcel
and do a no-install copy-paste deployment of powershell 7 and modules. (I'm not saying you should do this instead of using Lua, just that you can).Don't ask me why I can run a random binary instead, I don't know and I don't want to know.
Edit: I guess that would be DCOM, https://en.wikipedia.org/wiki/Distributed_Component_Object_M...
https://www.indigorose.com/autoplay-media-studio/screenshots... (surprisingly it works for W11)
Lua was my first language, and it enabled me to make desktop apps for tools I needed.
I think this is very much needed as a lot of kids learn Lua from Roblox and game mod communities.
AutoPlay Studio and the one featured here makes full GUI apps.
Does this mean it's simply no longer tested on Win7, or that it absolutely won't work?
PS: I'm not kidding! Some customers (government) are still on XP...
Hopefully not connected to untrusted networks..
Besides that...I really like this project.
It’s certainly not the right language for all use cases. But embedded or extending, it particularly does well.