Page 1 of 1

request:example kymacro script

Posted: Mon Jun 14, 2010 6:30 am
by Death_Master
plz give me example script for keyboard macro which can

if the_key pressed then loop until the_other_key pressed
in loop
send key_0 to active window
sleep 1sec
send key_1 to active window
end of loop

I think it's easy for those who write scripts(but not for me)...

Re: request:example kymacro script

Posted: Mon Jun 14, 2010 10:45 am
by Administrator

Code: Select all

setStartKey(key.VK_WHATEVER1);
setStopKey(key.VK_WHATEVER2);

function main()
  while(true)
    keyboardPress(key.VK_0);
    yrest(1000);
    keyboardPress(key.VK_1);
    yrest(1000);
  end
end

startMacro(main);
This is all covered in the wiki manual.

Re: request:example kymacro script

Posted: Thu Jun 17, 2010 3:14 am
by Death_Master
Thanks!!