Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.32 KB | None | 0 0
  1.         int PrevTime = System.Environment.TickCount;
  2.         public override void Pulse()
  3.         {
  4.             if (System.Environment.TickCount-PrevTime >= 1500; // miliseconds
  5.             {
  6.                 Lua.DoString("RunMacro('MacroNameHere')");
  7.                 PrevTime = System.Environment.TickCount;
  8.             }
  9.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement