马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
大家好
我照著前辈的方法设置热键,但是似乎在process.openprocess("test.Fight") 这边没有发生作用
请问是哪里出错了呢?
谢谢
- namespace test
- int prcNum
- bool runSec
- function bool Fight()
- int i, cnt
- i=0
- cnt=convert.strtoint(edit.gettext("edit0"))
- while(i<cnt)
- mouse.mousemove(960,520)
- help.sleep(1000)
- mouse.leftclick(1)
- help.sleep(1000)
- keyboard.keypress(9,1)
- help.sleep(1500)
- keyboard.keypress(49,1)
- help.sleep(1500)
- keyboard.keypress(50,1)
- help.sleep(1500)
- keyboard.keypress(51,1)
- help.sleep(1500)
- keyboard.keypress(52,1)
- help.sleep(1500)
- keyboard.keypress(53,1)
- help.sleep(1500)
- keyboard.keypress(54,1)
- help.sleep(2000)
-
- i=i+1
-
- endwhile
-
- return true
- endfunction
- function bool hotkey0_onhotkey()
- prcNum=process.openprocess("test.Fight")
-
- return true
- endfunction
- function bool hotkey1_onhotkey()
- process.closeprocess(prcNum)
- return true
- endfunction
- function bool start_click()
- prcNum=process.openprocess("test.Fight")
- test.Fight()
- return true
- endfunction
- function bool exit_click()
- help.exit()
- return true
- endfunction
- endnamespace
复制代码 |