How to use winapi like "User32.dll" in javascript | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to use winapi like "User32.dll" in javascript

I would like to know how to use dll files on a user's computer. run functions like getting printers, print, desktop users name. and more. I know it has something to do with activex

15th Aug 2018, 4:20 AM
Dick Tracy
Dick Tracy - avatar
2 Answers
+ 2
As far as I know you can not normally access that type of files / information with JS. I know there is a method to execute something similar, but it depends on IE. https://searchdomino.techtarget.com/tip/JavaScript-to-find-the-operating-system-user-name https://stackoverflow.com/questions/9518092/javascript-how-to-get-the-name-of-the-current-user
15th Aug 2018, 4:41 AM
Mickel
Mickel - avatar
+ 1
Try electron.js. It uses Node.js libraries to access local resources and compile into desktop applications.
15th Aug 2018, 11:56 AM
Calviղ
Calviղ - avatar