开源项目魔兽争霸III外挂程序使用Windows图形用户界面,主要是对小键盘的数字进行改键,如可以把7对应的技能改为Q或A。
Warkeys的源码在主程序中,源码使用了自动化脚本语言ahk,需要使用AutoHotkey编译,至于如何学习ahk请看源码包中的ahk中文帮助文件。
该脚本实现自定义英雄和英雄包裹的快捷键。以前用MFC实现过魔兽争霸III外挂,使用hookkey拦截按键、模拟按键、读取指定内存发言、远程注入显蓝等功能,功能都很简单,由于使用了hook技术,一不小心就被360干掉了。呵呵
学习的目的是成熟!~
源码包下载
程序的主界面布局是在AutoWarkey.ahk中。
入口
;; Main() AutoHotkey has no main defined, but if it did it would be here{; Gui StuffFileINIRead()GuiInit();msgbox, break; read CFG fileif ( (bOpLoadCfgOnStartup == true) && (strFileCfg) ){IfExist, %strFileCfg%{if (FileLoadCfg(strFileCfg) == 0) ; invalid filestrFileCfg =IniWrite, %strFileCfg%, %kstrINI%, files, strFileCfg}else{strFileCfg =IniWrite, %strFileCfg%, %kstrINI%, files, strFileCfgGui +OwnDialogsMsgbox, 0, Last used Config file not found!, Last used Config was not found.};GuiRefreshWinName()}GuiRefresh(); TimersTimerInit();listvars; Update Hotkey List selection as if the user has clicked on it; NOTE: it seems that the program will NOT return from this goto!goto GuiLabelHotkeyList}return
如果觉得《开源项目之魔兽争霸III外挂程序 Warkeys》对你有帮助,请点赞、收藏,并留下你的观点哦!