Thread: get keypress
View Single Post
Old 10th December 2019, 13:29   #6
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,288
In Windows, keyboard input is sent to a specific window and to handle it in another fashion means using some type of hook.

If we are talking about custom pages and if Alt+W would be acceptable then you can simply create a 0x0 size button with the text "&W" and handle its onClick.

The WndSubclass plug-in can be used to eavesdrop on keyboard messages sent to a specific window in the installer but the plug-in is difficult to use for beginners.

A "any window" type handler requires a hook and you would have to write your own custom plug-in to pull it off.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote