|
本帖最后由 yangfusheng 于 2013-12-10 04:39 编辑
int xiancheng
function init()
xiancheng =0
endfunction
//开始
function btnBegin_click()
if(xiancheng!=0)
button.settext("btnBegin","开始F键")
thread.closethread(xiancheng,0)
xiancheng=0
else
button.settext("btnBegin","停止F键")
xiancheng=thread.beginthread("线程测试.F","")
endif
endfunction
function F() while(true)
keyboard.keypress(70,1)
endwhile
endfunction
|
|