All pastes #806681 Raw Edit

Runescape Auto Typer

public text v1 · immutable
·published 2007-12-05 20:46 UTC
rendered paste body
menu * { 
  Auto Typer: 
  .On: atcom 
  .Off: .timerat off 
  .Settings 
  ..Time:set %att $$?"Second(s)" 
  ..Text:set %ats $$?"Text" 
} 
alias atcom { 
  if (%att) && (%ats) && (!$1) { 
    echo 2 -at *** Go to your Runescape Window
    .timerat 0 %att atcom send 
  } 
  elseif (!%att) && (%ats) { 
    set %att $$?"Second(s)" 
    echo 2 -at *** Go to your Runescape Window 
    .timerat 0 %att atcom send 
  } 
  elseif (%att) && (!%ats) { 
    set %ats set %ats $$?"Text" 
    echo 2 -at *** Go to your Runescape Window
    .timerat 0 %att atcom send 
  } 
  elseif (!%att) && (!%ats) { 
    set %att $$?"Second(s)" 
    set %ats $$?"Text" 
    echo 2 -at *** Go to your Runescape Window
    .timerat 0 %att atcom send 
  } 
  elseif ($1 == send) { 
    .comopen x wscript.shell 
    if (!$comerr) { 
      noop $com(x,sendkeys,3,bstr,%ats {ENTER}) 
    } 
    .comclose x 
  } 
}