waitingsong / node-win32-api

win32 api
MIT License
430 stars 55 forks source link

Fixed build script on Windows, added user32.GetForegroundWindow, etc. #19

Closed Venryx closed 4 years ago

Venryx commented 4 years ago

Changes: 1) Added "shx" as a dev dependency, and set the npm "clean" script to use that instead of the Unix-only equivalent. (so Windows users can run the "build" script) 2) Added missing "rollup" dev-dependency. (general fix for people trying to run the "build" script) 3) Added user32.GetForegroundWindow: https://www.pinvoke.net/default.aspx/user32.getforegroundwindow 4) Added user32.GetTopWindow: https://www.pinvoke.net/default.aspx/user32.gettopwindow 5) Added user32.BringWindowToTop: https://www.pinvoke.net/default.aspx/user32.bringwindowtotop

waitingsong commented 4 years ago

thanks.