├── README.md ├── assist_icon.png ├── left_mouse.png ├── red_light.png ├── yellow_light.png └── zenless_auto.ahk /README.md: -------------------------------------------------------------------------------- 1 | # zenless_auto_ahk 2 | AHK实现绝区零(Zenless Zone Zero)自动支援和闪避 3 | # 使用方式 4 | 第一步:安装AHK 1.1.37,详情自行搜索 5 | 6 | 第二步:“管理员身份” 运行 “zenless_auto.ahk” 7 | 8 | 第三步:启动“绝区零”,数字键4为开关 9 | # 免责申明 10 | 本软件使用AHK的识图功能,仅通过现有用户界面与游戏交互,不会以任何方式修改任何游戏文件或游戏代码。 11 | 12 | 本软件开源、免费,仅供学习交流使用 13 | 14 | # 改进版本 15 | 采用GIMI(3DMigoto)将判定黄光修改为绿光以提高识别准确性,Demo详见Issue。 16 | 17 | (注:此种做法会修改游戏文件,在官方服务器会有被封号的高风险,不赞成在官方服务器上使用。若坚持在官服上使用,我对由此产生的任何后果不承担责任。) 18 | 19 | 感谢DarkStarSword,bo3b,Chiri 的 3dmigoto 和 SilentNightSound 的 GIMI 20 | 21 | -------------------------------------------------------------------------------- /assist_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaneWang9513/zenless_auto_ahk/559c6daed23433f6264ff512495072f99118c74a/assist_icon.png -------------------------------------------------------------------------------- /left_mouse.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaneWang9513/zenless_auto_ahk/559c6daed23433f6264ff512495072f99118c74a/left_mouse.png -------------------------------------------------------------------------------- /red_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaneWang9513/zenless_auto_ahk/559c6daed23433f6264ff512495072f99118c74a/red_light.png -------------------------------------------------------------------------------- /yellow_light.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DaneWang9513/zenless_auto_ahk/559c6daed23433f6264ff512495072f99118c74a/yellow_light.png -------------------------------------------------------------------------------- /zenless_auto.ahk: -------------------------------------------------------------------------------- 1 | #KeyHistory 0 2 | #MaxThreadsPerHotkey 2 3 | #IfWinActive, ahk_exe ZenlessZoneZero.exe 4 | 5 | Gui, Margin, 0, 0 6 | Gui, Add, Picture,x484 y570,assist_icon.png 7 | 8 | 4:: 9 | Toggle:=!Toggle 10 | 11 | Gui, +LastFound +AlwaysOnTop -Caption +Owner 12 | WinSet, TransColor, f0f0f0 ; Removes specified color 13 | 14 | if Toggle{ 15 | MsgBox AHK On ! 16 | } 17 | if !Toggle{ 18 | MsgBox AHK Off ! 19 | } 20 | While, Toggle 21 | { 22 | if WinActive("ahk_exe ZenlessZoneZero.exe"){ 23 | ImageSearch, x, y, 0, 0, 1188, 668,*50 yellow_light.png 24 | If (ErrorLevel = 0){ 25 | sleep, 40 26 | send {space down} 27 | sleep, 10 28 | send {space up} 29 | sleep, 100 30 | } 31 | 32 | ImageSearch, x, y, 0, 0, 1188, 668,*50 red_light.png 33 | If (ErrorLevel = 0){ 34 | sleep, 40 35 | send {RButton down} 36 | sleep, 10 37 | send {RButton up} 38 | sleep, 100 39 | } 40 | 41 | ImageSearch, x, y, 0, 0, 1188, 668,*50 left_mouse.png 42 | If (ErrorLevel = 0){ 43 | Gui, Show, NoActivate 44 | } 45 | else{ 46 | Gui, Hide 47 | } 48 | } 49 | else{ 50 | Gui, Hide 51 | Sleep, 2500 52 | } 53 | } 54 | Gui, Hide 55 | return 56 | --------------------------------------------------------------------------------