Platforms to show: All Mac Windows Linux Cross-Platform

/MacOSX/Global Idle Time
Feedback.

Function:
You find this example project in your Plugins Download as a Realbasic project file within the examples folder: /MacOSX/Global Idle Time
This example is the version from Mon, 3rd Jan 2010.
Notes: Last modified: Mon, 3rd Jan 2010
Class App
Inherits Application
// Constants
Const kFileQuitShortcut = Ctrl+Q
Const kFileQuit = &Beenden
Const kEditClear =
End Class

Class Window1
Inherits Window
// Controls
ControlInstance
Sub Action() Handles Event
update

End Sub
End ControlInstance
ControlInstance
End ControlInstance
ControlInstance
End ControlInstance

// Event implementations
Sub Open()
update

End Sub

// Methods
Sub update()
dim n as Double = MacGlobalIdleTimeMBS

StaticText1.text = "User idle for "+Format(n/1000000000.0,"0.00")+" seconds."

End Sub
End Class





Links
MBS Realbasic Plugins - Jugendzentrum Nickenich