on *:START: {
  var %ticks $ticks
  progbar -l Startup
  ;Checks version and if OS is XP makes mIRCTurk.exe.manifest and restart script
  if ($version < 6.01) { _echo -adv euphoria! $_vers won't work with mIRC older than 6.01. Script will be automatically closed in 10 seconds. Upgrade your mIRC version on www.mirc.com | .timer 1 10 exit }
  progbar -a 10 Checking Version ...  
  if ($os == XP) && (!$isfile(mIRCTurk.exe.manifest)) {
    write mIRCTurk.exe.manifest  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    write mIRCTurk.exe.manifest  <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
    write mIRCTurk.exe.manifest  <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name="mIRC.mIRC.mIRC" type="win32"/>
    write mIRCTurk.exe.manifest  <description>Internet Relay Chat Software</description>
    write mIRCTurk.exe.manifest  </assembly>
    .run $mircexe
    .timer 1 2 exit
  }
  progbar -a 15 Checking Manifest ...  
  progbar -a 100 Startup Complete ...
  startup.draw $calc($ticks - %ticks)
  .timer1 -m 1 500 progbar -c
}
