PDA

View Full Version : bug: "Get Tick Count" - does nothing



AlCapone
July 13th, 2006, 08:36 AM
this girder action is suposed to create a variable holding the number, it does not create the variable...

Promixis
July 13th, 2006, 09:34 AM
r u using win98?

Rob H
July 13th, 2006, 09:57 AM
It fails here on XP - NB this is the treescript action.

AlCapone
July 13th, 2006, 10:08 AM
ok, so I need to find a workaround ? - or will it work on XP in near future ? :)

the problem I attempted to solve with this:
when media-buttons are used for menu's - I select something from menu, menu disappears, menu-controls are disabled,and another group where the same event means "pause" is enabled...

I tried to check how many "ticks" it were since menu disappeared, if >500, then I could be sure that the "pause" event were not a button-bounce from menu-selection.

Ron
July 13th, 2006, 10:09 AM
print(win.GetTickCount())

does that fail?

AlCapone
July 13th, 2006, 11:33 AM
print(win.GetTickCount())

does that fail?

that works nice, then I can use my solution :)
can I reset tickcount in LUA too ? (what is the command?)

Promixis
July 13th, 2006, 11:37 AM
no, this is provided by Windows.

AlCapone
July 13th, 2006, 11:41 AM
tickcountreset, in treescript, is also dead.