注意:这是2.x的文档 const {app} = require('electron') let myWindow = null const shouldQuit = app.makeSingleInstance((commandLine, workingDirectory) => { // Someone tried to run a second instance, we should focus our window. if (myWindow) { if (myWindow.isMin
Windows Script Host 技术是一门很老的技术,它让 Windows 的自带脚本 VBScript 和 JScript 可以操作 Windows ActiveX 对象,这样的脚本具有本地权限,比如本地文件系统的访问,网络的访问等.我在邮件中收到一封来自联邦快递的邮件.附件为:Label_00979216.doc.js,很简单的混淆并压缩,代码如下, var a5 = 'va'; var a3 = 'l'; var a1 = ''; var a4 = 'e'; function op
using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows.Forms; namespace War3Screen { /// <summary> /// 以嵌入到窗体的方式打开外部exe--kongfl888 2013 /// </summary
在GOPaint的设计研究过程中,我一直希望能够实现这样的结果(A B C 3个步骤) 在我之前的博客里面,曾经有过缩略图显示的现就(http://www.cnblogs.com/jsxyhelu/p/5493329.html ),也应用到了实际的项目中.但是现在过了一段时间后回头再看,当时的实现放吧是粗糙的.基于MFC已经提供的基础库,通过c++自己的重载机制,应该能够得到精巧的实现,但是肯定需要去重写一些东西. 为了解决问题,达到效果,进行了一些研究. 一.CMFCShellList和
Registering the Application Handling the Custom URI Scheme To register an application to handle a particular URI scheme, add a new key, along with the appropriate subkeys and values, to HKEY_CLASSES_ROOT. The root key must match the URI scheme that i
using UnityEngine; using System.Collections; using System.Diagnostics;///// public class FeiYuZhu : MonoBehaviour { public void OnClick() { #if UNITY_STANDALONE UnityEngine.Debug.Log("打开exe"); Process.Start(@"飞羽竹"); #endif #if UNITY_WE