; Every 2 seconds it checks if the current playing track number has changed, 
; if it has, the track has changed. I'm sure you can lower the checking 
; interval a bit and decreasing the delay without having to worry about 
; loosing to much resources. But I haven't really tested it.

; Paste the below alias into aliases and run "/wacheck on" , everytime the
; track changes mIRC automatically runs the "/wa stats" alias (Included in the
; WA_Link script) You can then always run "/wacheck off" to stop
; checking for track changes. This is just a sample, but I hope you get the
; idea.

/wacheck {
  if ($$1 == ON) {
    if (%WA.Check.No == $null) { 
      set %WA.Check.No $dll($shortfn($mircdirWA_Link\WA_Link.dll),WA_Link_Raw_Stats,TRACKNO) 
      echo -a 4WA Check enabled for $chan $+ . Type /wacheck off4 to stop checking 
    }

    if (%WA.Check.No == $dll($shortfn($mircdirWA_Link\WA_Link.dll),WA_Link_Raw_Stats,TRACKNO)) {
      set %WA.Check.No $dll($shortfn($mircdirWA_Link\WA_Link.dll),WA_Link_Raw_Stats,TRACKNO)
      .timerWACHECK 1 2 wacheck ON
    }
    else {  
      wa stats
      set %WA.Check.No $dll($shortfn($mircdirWA_Link\WA_Link.dll),WA_Link_Raw_Stats,TRACKNO)
      .timerWACHECK 1 2 wacheck ON
    } 
  }
  elseif ($$1 == OFF) {
    .timerWACHECK off
    unset %WA.Check.No
    echo -a 4WA Check disabled. Type /wacheck on4 to start checking 
  }
}

; Made by the bASE Crew http://www.base.is/thecrew/