This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Gist: Win32 Message Loop with `node-addon-api` | |
* Author: Gage Sorrell <[email protected]> | |
* Copyright: (c) 2023 Gage Sorrell | |
* License: MIT | |
*/ | |
/* This file demonstrates how to get access to the Windows API (Win32) | |
* message loop in your NodeJS application via node-addon-api. | |
* This code goes into your node-addon-api package, with no additional | |
* build tools necessary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
LWin:: | |
Input, x, L1 ; Catches key after winkey | |
if (ErrorLevel = "NewInput") ; If catching was interrupted | |
{ | |
Send #+r ; Set this to your powertoys run shortcut |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
VC_redist.x64.exe /q | |
Engine\Extras\Redist\en-us\UE4PrereqSetup_x64.exe /q |