82855 AI Apple Watch CentOS Eclipse H700 iOS iPad iPhone iphone4 iTunes Java Javascript linux Mac MBP MySQL Noteshelf Oracle OS X Parallels Desktop RAID RMPP RockyLinux Rocky Linux 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 条评论