初入AHk,望大佬 解惑

这是不让保存吗?有可能为什么呢。

#IfWinActive ahk_exe client.exe

 

FileInstall,G:\桌面\AHK_剑灵\Bns\zzzs\2.png,%A_WorkingDir%\2.png
FileInstall,G:\桌面\AHK_剑灵\Bns\zzzs\3.png,%A_WorkingDir%\3.png
FileInstall,G:\桌面\AHK_剑灵\Bns\zzzs\f.png,%A_WorkingDir%\f.png
FileInstall,G:\桌面\AHK_剑灵\Bns\zzzs\v.png,%A_WorkingDir%\v.png
FileInstall,G:\桌面\AHK_剑灵\Bns\zzzs\黑龙.png,%A_WorkingDir%\黑龙.png
FileInstall,G:\桌面\AHK_剑灵\Bns\zzzs\星.png,%A_WorkingDir%\星.png

XButton1::
loop{
__imageFilepath=%A_WorkingDir%\星.png
ImageSearch, _Foundy, 973, 1173, 1072, 1270 ,%__imagefilepath%
if (errorlevel=0)
{
    Send,“
}
Else
{

}

__imageFilepath=%A_WorkingDir%\黑龙.png
ImageSearch, _Foundy, x1, y1, x2, y2 ,%__imagefilepath%
if (errorlevel=0)
{
    Send,4
}
Else
{

}
__imageFilepath=%A_WorkingDir%\f.png
ImageSearch, _Foundy, x1, y1, x2, y2 ,%__imagefilepath%
if (errorlevel=0)
{
    Send,f
}
Else
{

}

__imageFilepath=%A_WorkingDir%\v.png
ImageSearch, _Foundy, x1, y1, x2, y2 ,%__imagefilepath%
if (errorlevel=0)
{
    Send,v
}
Else
{

}

__imageFilepath=%A_WorkingDir%\3.png
ImageSearch, _Foundy, x1, y1, x2, y2 ,%__imagefilepath%
if (errorlevel=0)
{
    Send,3
}
Else
{

}

__imageFilepath=%A_WorkingDir%\2.png
ImageSearch, _Foundy, x1, y1, x2, y2 ,%__imagefilepath%
if (errorlevel=0)
{
    Send,2
}
Else
{

}

}
Until Not getkeystate(“XButton1″,”P”)
return

给TA捐赠
共{{data.count}}人
人已捐赠
其他案例

像素放大镜

2021-11-17 20:54:07

其他教程

指定窗口不会被最小化和窗口坐标归位

2021-11-24 8:58:45

3 条回复 A文章作者 M管理员
  1. AHK中文社区

    建议你把问题发圈子

    • ┌刘

      不好意思 !刚入。还不太懂,能发就发了。以后注意。再问问,圈子在哪能找到。

个人中心
购物车
优惠劵
有新私信 私信列表
搜索