Programming/nexacro

넥사크로 시간마다 함수 실행시키기 (onTimer/setTimer/killTimer)

감성적인 개발자 2024. 4. 8. 14:35

화면 구성

버튼 구성

 

Script 

//좌측버튼
this.ExecSetTimerButton_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){
	console.log('>> setTimer function');
	this.setTimer(1, 1000);
};

//우측버튼
this.ExecKillTimerButton_onclick = function(obj:nexacro.Button,e:nexacro.ClickEventInfo){
	console.log('>> killTimer function');
	this.killTimer(1);
};

//ontimer 함수
this.화면ID_ontimer = function(obj:nexacro.Form,e:nexacro.TimerEventInfo){
	console.log('>> ontimer function');
};

콘솔창