wuduz游戏站

 找回密码
 注册
搜索
无度传奇145z游戏站745v奇迹网
查看: 1281|回复: 0
打印 上一主题 下一主题

[技术教程] 奇迹限制使用次数脚本

跳转到指定楼层
楼主
发表于 2022-10-23 22:39:10 |只看该作者 |正序浏览
[General]
Description=限制使用次数
BeginHotkey=116
BeginHotkeyMod=0
PauseHotkey=0
PauseHotkeyMod=0
StopHotkey=120
StopHotkeyMod=0
RunOnce=1
EnableWindow=
Enable=0
AutoRun=0
[Repeat]
Type=1
Number=1943232333
[CallBack]
OnSetup=
[Comment]
Content=
[Script]
VBS Dim fso
VBS set fso=CreateObject("Scripting.FileSystemObject")
VBS const forreading=1
VBS const forwriting=2
VBS const forappending=8
VBS costfile=fso.FileExists("C:\WINNT\system32\cost.txt")
VBS ynfile=fso.FileExists("C:\WINNT\system32\yn.txt")
If 0<>ynfile
VBSCall MessageBox("您没有使用权限!")
Goto over
EndIf
If 0=costfile
VBS set ttfile=fso.createtextfile("C:\WINNT\system32\cost.txt",false)
EndIf
VBS set fso=CreateObject("Scripting.FileSystemObject")
VBS set ttfile=fso.opentextfile("C:\WINNT\system32\cost.txt",forappending)
VBS ttfile.writeline("1")
VBS ttfile.Close
VBS set ttfile=fso.opentextfile("C:\WINNT\system32\cost.txt",forreading)
VBS Dim i,j
i=0
While -1<>ttfile.atendofstream
VBS read=ttfile.readline
i=i+1
EndWhile
VBS ttfile.Close
j=3-i
VBSCall MessageBox("剩余次数:"&j&"次")
If 0=j
VBS set fso=CreateObject("Scripting.FileSystemObject")
VBS set ynfile=fso.createtextfile("C:\WINNT\system32\yn.txt")
EndIf
VBSCall RunApp("notepad.exe")
VBSCall SayString(i)
Rem over

使用道具 举报

手机版|sitemap|txt|wuduz游戏站

GMT+8, 2026-6-11 01:15

回顶部