request:example kymacro script

You may request or share scripts for MicroMacro in this forum.
Post Reply
Message
Author
Death_Master
Posts: 2
Joined: Mon Jun 14, 2010 6:22 am

request:example kymacro script

#1 Post by Death_Master » Mon Jun 14, 2010 6:30 am

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)...

User avatar
Administrator
Site Admin
Posts: 5307
Joined: Sat Jan 05, 2008 4:21 pm

Re: request:example kymacro script

#2 Post by Administrator » Mon Jun 14, 2010 10:45 am

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.

Death_Master
Posts: 2
Joined: Mon Jun 14, 2010 6:22 am

Re: request:example kymacro script

#3 Post by Death_Master » Thu Jun 17, 2010 3:14 am

Thanks!!

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests