AutoHotkey标签在Windows Server 2008上导致内存泄漏崩溃
问题描述:
以下代码在Windows Vista和Windows 7上正常工作,但是当我尝试在Windows Server 2008 R2上运行它时,它会在同一脚本中产生越来越多的同一脚本实例我的系统托盘,直到最后AutoHotKey锁定我的整个系统。看起来好像AutoHotKey的“标签”功能是应该受到指责的。有谁知道解决方法?AutoHotkey标签在Windows Server 2008上导致内存泄漏崩溃
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
答
我重写了这一点。据我所知,你首先定义菜单结构,然后显示菜单。此外,由于有在phpDoc:
以前没有Return
,在启动时立即执行脚本的这部分....
#SingleInstance, Ignore
;;;; DEFINE MENUS
Menu, MySubMenu, add, &1 - PHP, phpDoc
Menu, MySubMenu, add, &2 - HTML 5, html5
;;;; LAUNCH MENU
!/::Menu, MySubMenu, Show
return ; To prevent phpDoc from executing on startup
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
显然我没有15美誉尚不必给予好评这些职位,否则我会给予好评两个都。谢谢你们俩!罗伯特伊尔布林克,你的实现像一个魅力! – 2013-02-14 16:50:42
我刚刚为你挑选了Armin,因为他是第一个! – 2013-02-16 09:15:07