Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
newbie...Want to loop statements until <time>
#1
i have 2 questions...

I have programmed in Visual Basic and this languages seems to be missing some functions i have used before like Do Until, While, etc...  I am trying to create a loop that runs until a specific system time is reached, say, 3:00 PM.  

also, is there a way to attach a "exit macro" keyboard shortcut to stop a macro from running? if not what is best practice..

thanks on both questions...
#2
Macro Macro99
Code:
Copy      Help
DateTime t.FromComputerTime
t=t.GetDatePart
t.AddStr("15:00")
;out t.ToStr
rep
,DateTime tt.FromComputerTime; if(tt>=t) break
,
,out "loop"
,0.5

;press Pause to end this macro


Forum Jump:


Users browsing this thread: 1 Guest(s)