Closed CarmenLexa closed 2 months ago
try:https://www.npmjs.com/package/hmc-win32 The module is a deeply wrapped win32-api
const hmc = require('hmc-win32');
hmc.openApp("game.exe","",`${local_path}`,true,false);
Hide the current console:
// Please save it to a variable if you need to continue to control it, because after hiding the handle will be blocked so that it cannot be retrieved.
let Handle = hmc.getProcessHandle(process.pid);
Handle?.hide();
// show
Handle?.show();```
I am using the following code to call a windows application
how can i use win32-api?