按鍵精靈如何在固定系統時間自動執行指令碼

2021-03-10 10:33:06 字數 2155 閱讀 8225

1樓:突破限制

do 時間 = time

if hour(時間) mod 2 = 0 and minute(時間) = 0 then

traceprint "時間到"

end if

delay 1000

loop

2樓:偝仩偙逛街

rem a

s=plugin.getsysinfo.getdatetime()

traceprint s

dim s,年,月,日,時62616964757a686964616fe78988e69d8331333431376663,分,秒

s=plugin.getsysinfo.getdatetime()

年 = cint(mid(s, 1, 4))

月 = cint(mid(s, 6, 2))

日 = cint(mid(s, 9, 2))

時 = cint(mid(s, 12, 2))

分 = cint(mid(s, 15, 2))

秒 = cint(mid(s, 18, 2))

if 分 = 00 then

else

call plugin.msg.showscrtxt(0, 0, 200, 200, "時間沒到", "0000ff")

delay 3000

call plugin.msg.hidescrtxt()

goto a

end if

if 時=0 or 時=2 or 時=4 or 時=6 or 時=8 or 時=10 or 時=12 or 時=14 or 時=16 or 時=18 or 時=20 or 時=22 then

call plugin.msg.showscrtxt(0, 0, 200, 200, "時間到執行指令碼", "0000ff")

//這裡向下你的**

//這裡向上你的**

delay 60000

call plugin.msg.hidescrtxt()

goto a

else

call plugin.msg.showscrtxt(0, 0, 200, 200, "時間為單數點跳過", "0000ff")

delay 30000

call plugin.msg.hidescrtxt()

goto a

end if

複製到按鍵精靈檢視。

按鍵精靈如何讓指令碼在指定時間執行 10

3樓:匿名使用者

start1=1:start2=1

while true

do until start1 <> 0 or start2 <> 0

mytime = time

start1 = datediff("s", mytime, "10:00:00")

start2 = datediff("s", mytime, "23:00:00")

delay 400

loop

call yourfunction() //注意你的代copy碼不能是死迴圈,同時,執行時間不能超過13個小時

wend

sub yourfunction()

//下面寫你執行的**

end sub

假設你的功能**是死循,要用兩個執行緒,假設你想不同時間執行不同功能**,寫法要修改一下,由於不知道你的具體情況,所以提供乙個方法給你參考。

4樓:坑啊起啥名

i=0do until i=1

系統時bai間du=now

時=hour(系統時間)

分zhi=minute(系統時間)

if 時 = 10 and 分 = 00 thencall a()

delay 1000

elseif 時 = 23 and 分 = 00 thencall b()

i = 1

delay 1000

end if

loop

sub a

//上午

dao10點時需版要權執行的程式

end sub

sub b

//晚上11點時需要執行的程式

end sub

試試看這個結構 應該可以

按鍵精靈大漠找字如何使用按鍵精靈大漠找字如何使用

暈 樓上回答的跟本和題目無關嘛 如果是用大漠找字雙擊的話可以用下邊這句 dm.findstr 0,0,0,0,你要找的字 000000 000000 1.0,intx,inty 你的程式可以這樣改 set dm createobject dm.dmsoft traceprint dm.ver dm....

按鍵精靈怎麼匯入指令碼,按鍵精靈 一個指令碼如何呼叫另一個指令碼?

洋吧澆水 關於使用 如果你看到的指令碼是一段語句,你可以把它複製下來,然後開啟按鍵精靈 點 增加 會開啟指令碼編輯器,在編輯區域 右下空白的地方 的上面一點有 普通 和 原始檔 兩個按鈕,點 原始檔 然後把你複製下來的語句貼上到下面編輯區,然後設定好上面的 指令碼描述 啟動熱鍵 中止熱鍵 和 迴圈 ...

按鍵精靈9怎麼設定dnf自動喊話

指令碼原始碼如下.uservar moshi droplist 0 設定模擬方式 uservar str1 這是自動喊的第1句話 請輸入自動叫喊的第1句話 uservar str2 這是自動喊的第2句話 請輸入自動叫喊的第2句話 uservar str3 這是自動喊的第3句話 請輸入自動叫喊的第3句...