Skip to content

screenlock-node 编译后得到的node二进制文件无法控制按键 #1

@phil-cheng

Description

@phil-cheng

问题描述

  • 我也在基于electron做一个控制用户键盘的应用,试用了您的screenlock-node模块代码,然后尝试本地编译,目前在以下环境能够编译完成,但是使用node require后调用时能够控制住win+L和 ctrl+alt+delete热键,但是无法控制住常规的win+tab、alt+f4热键。
  • 而我用您发布的Releaese 0.0.1版本zip里的lockScreen.node,进行测试,结果正好反过来,能够控制常规热键,控制不了win+L和 ctrl+alt+delete热键
  • 所以,想请教,目前您提交的代码与0.0.1版screenlock-node的代码区别?

本地编译环境

  • win10 64位
  • nodejs v11.15.0 64位
  • gyp info
    • gyp info using node-gyp@8.3.0
    • gyp info using node@11.15.0 | win32 | x64
  • vsbuid 2017

其他

  • 我在打32位的时候发现,如果直接npm install --arch=ia32打出的包,在使用node调用时会提示为无效的32位应用,必须要把nodejs 改成32位的才行。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions