82855 AI Apple Watch CentOS Eclipse H700 iCal iOS iPad iPhone iphone4 iTunes Java Javascript linux Mac MBP ML MySQL Oracle OS X Parallels Desktop RAID redmine Rocky Linux Snow Leopard SQL SVN Thinkpad VMware VR 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 条评论