以下代码在 Windows Vista 和 Windows 7 上运行良好,但是当我尝试在 Windows Server 2008 R2 上运行它时,它会不断在我的系统托盘中生成越来越多的相同脚本实例,直到 AutoHotKey 最终锁定我的整个系统。似乎 AutoHotKey 的“标签”功能是罪魁祸首。有谁知道解决方法?
phpDoc:
SendInput <{?}php{Enter}{Enter}{?}>{Enter}
SendInput {Up 2}
return
html5:
SendInput <{!}doctype html>{enter}
SendInput <html>{enter}
SendInput <head>{enter}
SendInput <title></title>{enter}
SendInput <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">{enter}
SendInput <meta http-equiv="Pragma" content="no-cache">{enter}
SendInput <meta http-equiv="Cache-Control" content="no-cache">{enter}
SendInput <meta name="Expires" content="Mon, 01 Jan 2000 00:00:01 GMT ">{enter}
SendInput <link rel="stylesheet" type="text/css" href="/styles.css">{enter}
SendInput </head>{enter}
SendInput <body>{enter}
SendInput </body>{enter}
SendInput </html>{enter}
SendInput {up 2}
SendInput {end}
return
showMainMenus()
{
Menu, MySubMenu, add, &1 - PHP, phpDoc
Menu, MySubMenu, add, &2 - HTML 5, html5
Menu, MyMenu, add, &1 - Boilerplate Text, :MySubMenu
}
;;;; KEY BINDINGS
!/::
showMainMenus()
return