Sublime Text 未注册版会在保存操作n次之后,弹出注册的提醒框,每次都要手动去点取消,好麻烦,于是用AutoHotKey写了个小工具,监控注册提醒窗口,自动关闭。
5行代码就可以搞定:
#Persistent
ifWinExist, This is an unregistered copy, Sublime Text
{WinClose
}
考虑到不是每台机子都有AutoHotKey的运行环境,再加几行代码做成单文件版的绿色小软件。
#Persistent
ifWinExist, This is an unregistered copy, Sublime Text
{WinClose
}Menu, tray, NoStandard
Menu, tray, add, 关于, ABOUT
Menu, tray, add, 退出, EXIT
returnEXIT:
ExitAppABOUT:
ifWinExist, Sublime Text was registered
{WinActivate
}else {MsgBox, 0, Sublime Text was registered, 自动关闭Sublime Text 2 注册提醒窗口`n`t
}
return
文件下载地址:http://vdisk.weibo.com/s/wgi4w