I've got two differently named objects. One is a clock with a second hand whose position is updated by a timed event. The other is a gauge with a pointer whose position is updated by a timed event. The timers have different names. When the gauge script is active the clock's hand 'stutters'. if I disable the gauge script, the clock hand works fine.
The following is the clock hand script:
'Called when the script is executed
Sub Object_OnScriptEnter
object.SetTimer 3333,1000
End Sub
Sub Object_OnTimer3333
Object.Rotation = Second(Now)*6
End Sub
'Called when the script is terminated
Sub Object_OnScriptExit
End Sub
The following is the gauge pointer script:
'Called when the script is executed
Sub Object_OnScriptEnter
Object.SetTimer 10, 100
Dim CPULoad
Dim NeedleDestination
End Sub
Sub Object_OnTimer10
On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colItems = objWMIService.ExecQuery("Select LoadPercentage from Win32_Processor",,48)
For Each objItem In colItems
CPULoad = objItem.LoadPercentage
Next
NeedleDestination = 235+(CPULoad*2.5)
Object.Rotation = NeedleDestination
End Sub
'Called when the script is terminated
Sub Object_OnScriptExit
Object.KillTimer 10
End Sub
Why do they interfere with each other?