82855 Apple Watch CentOS Eclipse H700 iOS iPad iPhone iphone4 iTunes Java Javascript linux Mac MBP MySQL Noteshelf Oracle OS X Parallels Desktop RAID redmine Rocky Linux RockyLinux Snow Leopard SQL SVN Thinkpad Vite VMware Vue Windows Windows 7 Windows 11 Word X40 东航 压缩算法 字体 导航 数据库 朗逸 签证 达美 闹钟

用 Javascript 控制记事本


var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.AppActivate("notepad");
WshShell.Run("notepad", 1, false);
WScript.Sleep(500);
WScript.Sleep(300);
WshShell.SendKeys("1{+}");
WScript.Sleep(150);
WshShell.SendKeys("2");
WScript.Sleep(150);
WshShell.SendKeys("~");
WScript.Sleep(150);
WshShell.SendKeys("*3");
WScript.Sleep(150);
WshShell.SendKeys("~");
WScript.Sleep(250);

《“用 Javascript 控制记事本”》 有 1 条评论