mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2004
Posts: 33
M
Mc_Fly Offline OP
Ameglian cow
OP Offline
Ameglian cow
M
Joined: Mar 2004
Posts: 33
Try this code:
Code:
dialog test3 {
  size -1 -1 100 100
}
on *:dialog:test3:init:0:echo INIT
alias test3 {
  echo $str(=,100)
  .timer -o 1 0 echo TEST3
  var %0 = $dialog(test3,test3,-1)
}


You should get :
INIT
TEST3
But sometimes you will get:
TEST3
INIT

The timer is executed before the event on *:dialog:init ! Bug ?

Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
You're creating a 0 second timer (Instant), what makes you think it's bug that it triggers before the dialog opens? Even hi-resolution timers (/timer -ho) trigger before the dialog opens.


New username: hixxy

Link Copied to Clipboard