This package has been deprecated

Author message:

Use win.setIgnoreMouseEvents instead: https://electron.atom.io/docs/api/browser-window/#winsetignoremouseeventsignore

electron-penetrate

0.0.4 • Public • Published

electron-penetrate

NO LONGER MAINTAINED

Use setIgnoreMouseEvents instead. Example

Windows Only

Tested under Electron 0.30.2

It used Win32 API to make your Electron window penetrable.

A new branch of https://github.com/zsxsoft/nw-penetrate .

Snapshot

Installion

$ npm install electron-penetrate

Usage

First, you should open transparent in package.json

var browserWindow = new BrowserWindow({
    transparency: true
});

Then, set a unique document.title dynamically (like Math.random()).

var tranResult = require("electron-penetrate").penetrate(document.title);
console.log(tranResult);

中文

它调用了Win32API来让你的Electron窗口可被鼠标穿过。

首先打开它的transparent选项;其次,你需要设置一个独一无二的窗口标题。我觉得Math.random()是个不错的选择呢。

Readme

Keywords

Package Sidebar

Install

npm i electron-penetrate

Weekly Downloads

10

Version

0.0.4

License

ISC

Last publish

Collaborators

  • zsx