mIRC Home    About    Download    Register    News    Help

Print Thread
#240086 24/12/12 09:16 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Is there any limits on how fast a alias can be triggered with a timer? I testing to use a timer, but i cant to be able to use speeds like 500 down to 100. But there is no difference even if i change the value down to 5.

timermoo -m 0 5 fill_bar

I using the timer to fill a progressbar, but depending on what i will use the progressbar to i want to change the speed of it, a big dialog take longer time, and a small one takes less time. Or do someone have any bether idea on the code i using for now?
Code:
alias fill_bar {
  inc %x
  xdid -v progressbar 1 %x
  if (%progressbar) { xdid -i progressbar 1 %progressbar }
  if (%x >= 100) {
    .timermoo off
    xdid -i progressbar 1 Completed ...
    unset %x , %progressbar
    .timer -m 1 500 dialog -x progressbar progressbar
    .timer -m 1 500 check-started
  }
}

check-started is used to launch the dialog that should open.
Code:
alias check-started {
  if (%plaunch == theme) { unset %plaunch , %progresstime | if (!$dialog(theme)) { dialog -m theme theme } } 
}


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Apr 2012
Posts: 48
Ameglian cow
Offline
Ameglian cow
Joined: Apr 2012
Posts: 48
First of all sorry for my english ... I did not understand the question ... if it was a question, in any case want to show an example of how it is applied via an alias timed dcx.dll
...Lag alias from my script obviously LoL

Code:
 

alias -l tool2_init_dcx {
 .timerreload_tool2 -mo 0 1000 reload_tool2 
}


alias reload_tool2 {    
  if ($status != connected) {
    xdid -v tool2 1001 0
    xdid -i tool2 1001 N/A
    xdid -T tool2 1001 N/A
  }
  else {
    xdid -i tool2 1001 $calc(%lag / 1000)   
 
; xdid -r tool2 1001 0 1000  --> 0 100 or 0 1000 or 10000... ;                     
    xdid -r tool2 1001 0 1000
    xdid -v tool2 1001 %lag
    xdid -T tool2 1001 Lag is %lag ms 
  }
}
on ^*:pong: { if ($gettok($2,1,46) == lag) { set %lag $calc($ticks - $gettok($2,2,46)) | halt } }
on *:connect: { .timerlag 0 5 vlag }
alias vlag { if ($server) { !ping lag $+ . $+ $ticks } }  
 


A Creative & Interactive mIRC Scripting

Link Copied to Clipboard