无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

Ghub lua 腳本更新

2023-06-14 20:19 作者:喂魚柯基  | 我要投稿

新增功能: playmarco執(zhí)行時(shí),受到倒計(jì)時(shí)器或者終止鍵的鉗制,觸發(fā)后立即停止執(zhí)行,并可按預(yù)設(shè)繼續(xù)執(zhí)行其他腳本、宏。

請按照我《居然能讓一只鼠標(biāo)搭載999999個(gè)待用宏?》內(nèi)的vscode設(shè)置,將代碼復(fù)制到vs的ide當(dāng)中,以便用更優(yōu)雅、易懂的方式修改。


全量代碼如下:


--聲明一些global變量(全球變量,部分變量必須在代碼開始時(shí)聲明,不然報(bào)錯(cuò))

Marco_Point = 0

guaji_Point = 0

timer = 0

exit_key = 0


function OnEvent(event, arg)

? ? --OutputLogMessage("Event: " .. event .. " Arg: " .. arg .. "\n")

? ? --OutputLogMessage("Marco_Point : " .. Marco_Point .. "\n")

? ? if (event == "MOUSE_BUTTON_PRESSED" and arg == 6 and Marco_Point == 1) then

? ? ? ? timer = 0

? ? ? ? exit_key = 0

? ? ? ? Sleep(50)

? ? ? ? PlayMacro("eee")

? ? ? ? repeat

? ? ? ? ? ? timer = timer + 1

? ? ? ? ? ? Sleep(500)

? ? ? ? ? ? if IsMouseButtonPressed(3) then --304鼠標(biāo)右鍵ghub lua中代碼為3

? ? ? ? ? ? ? ? exit_key = 1

? ? ? ? ? ? end

? ? ? ? ? ? -- OutputLogMessage(" ?timer : " .. timer .. "/20 ?exit_key : " .. exit_key .. "\n")

? ? ? ? until (exit_key == 1 or timer > 2 * 10)

? ? ? ? Sleep(100)

? ? ? ? AbortMacro()

? ? ? ? Sleep(100)

? ? ? ? -- OutputLogMessage("done: " .. "\n")

? ? ? ? PressKey(1) ? --模擬按下esc,個(gè)別游戲內(nèi)需要按一下esc,以便暫停游戲。

? ? ? ? Sleep(100)

? ? ? ? ReleaseKey(1) --模擬抬起esc

? ? ? ? Sleep(100)

? ? end


? ? if (event == "MOUSE_BUTTON_PRESSED" and arg == 2) then --304鼠標(biāo)-普通右鍵超級終止

? ? ? ? Sleep(50)

? ? ? ? Marco_Point = 0

? ? ? ? guaji_Point = 0

? ? ? ? exit_key = 1

? ? ? ? AbortMacro()

? ? end


? ? if (event == "MOUSE_BUTTON_PRESSED" and arg == 5) then --304鼠標(biāo)-前進(jìn)側(cè)鍵增加計(jì)數(shù)器甲計(jì)數(shù)

? ? ? ? Sleep(50)

? ? ? ? Marco_Point = Marco_Point + 1

? ? end


? ? if (event == "MOUSE_BUTTON_PRESSED" and arg == 4) then --304鼠標(biāo)-前進(jìn)側(cè)鍵增加計(jì)數(shù)器乙計(jì)數(shù)

? ? ? ? Sleep(50)

? ? ? ? guaji_Point = guaji_Point + 1

? ? end

end



Ghub lua 腳本更新的評論 (共 條)

分享到微博請遵守國家法律
扶沟县| 旌德县| 舞钢市| 西藏| 淳安县| 长沙市| 阿勒泰市| 长兴县| 湖州市| 常熟市| 东明县| 赤峰市| 阳谷县| 马龙县| 黎川县| 宜黄县| 古田县| 独山县| 玉林市| 彭山县| 河津市| 建阳市| 桦川县| 通化市| 五家渠市| 辽源市| 桑植县| 光泽县| 色达县| 遂溪县| 富锦市| 阆中市| 西盟| 北安市| 金寨县| 大名县| 惠水县| 布拖县| 寿阳县| 彝良县| 陆良县|