版权声明:转载请声明原文链接地址,谢谢! https://blog.csdn.net/weixin_42859280/article/details/84404061
F5:
set wshshell=wscript.createobject("wscript.shell")
WshShell.AppActivate"666"
for i=0 to 400
WScript.Sleep 30000
WshShell.SendKeys"{F5}"
WshShell.Sendkeys i
Next
计算几秒钟:
#include<iostream>
using namespace std;
int main()
{
int a,b,c;int s,z;
cout<<"请你输入离开时间(小时):";
cin>>a;
cout<<"请输入分钟:";
cin>>b;
cout<<"请你输入离开时间(秒数):";
cin>>c;
s=a*60*60+b*60;
z=s/c;
cout<<"你离开时间的总秒数:"<<s<<endl;
cout<<"你需要输入的次数:"<<z<<endl;
system("pause");
}