|
本帖最后由 527104427 于 2024-10-14 07:05 编辑
不废话,直接上代码,用PECMD运行totalcmd,全自动点击。
如果干完活不想杀掉PECMD,则用 exec -incmd pecmd load "C:\abcd.wcs" 调用。
以下代码保存为abcd.wcs
#code=936T950
set^ ForceLocal=1
set^ EnviMode=1
set$ nl=0d 0a
set wm_lbuttonDown=0x0201
set wm_lbuttonUp=0x0202
exec* -cmd::*1:CloseTotalcmdMsg -pid:Pid ret="C:\Users\Administrator\Desktop\tc1150x64_b1\INSTALL\TOTALCMD64.EXE" //替换成要打开的目标程序
exit
_sub CloseTotalcmdMsg
find --forpid:%Pid% --class:TNASTYNAGSCREEN --wid* Wid,
ifex $%Wid%>0,
{
set @@Visible=?%Wid%:OK
ifex $%OK%<1, exit
find --forpid:%Pid% --wid*@%Wid% Str,
sed -ex -ni ;;Line1=?,\bWindow\b\d%nl%,,Str
ifex $%Line1%>0,
{
read -*,%Line1%,ButtonStr1,Str
mstr* * ButtonId1=<8>ButtonStr1
sed -ex -ni ;;Line2=?,\bButton\b&%ButtonId1%%nl%,,Str
ifex $%Line2%>0,
{
read -*,%Line2%,ButtonStr2,Str
mstr* * ButtonId2=<2>ButtonStr2
set @@postmsg=%ButtonId2%;%wm_lbuttonDown%;0;0
set @@postmsg=%ButtonId2%;%wm_lbuttonUp%;0;0
wait 500
kill *force *%__pid% //自杀,领盒饭
}
}
}
_end
|
评分
-
查看全部评分
|