B
Benjamin Lukner
Hi!
I've found some code using the mouse_event function to prevent the
PocketPC from falling asleep:
Private Declare Sub mouse_event Lib "coredll.dll" ( _
ByVal dwFlags As Int32, _
ByVal dx As Int32, _
ByVal dy As Int32, _
ByVal dwData As Int32, _
ByVal dwExtraInfo As Int32)
Private Sub oTimer_Tick( _
ByVal sender As Object, _
ByVal e As System.EventArgs _
) Handles oTimer.Tick
mouse_event(&H1, 0, 0, 0, 0)
End Sub
It works fine on PocketPC 2002, but my PocketPC 2003 still switches to
standby after a few minutes. Has anyone an idea how to fix it on PPC2003?
Kind regards,
Benjamin Lukner
trinomix GmbH
I've found some code using the mouse_event function to prevent the
PocketPC from falling asleep:
Private Declare Sub mouse_event Lib "coredll.dll" ( _
ByVal dwFlags As Int32, _
ByVal dx As Int32, _
ByVal dy As Int32, _
ByVal dwData As Int32, _
ByVal dwExtraInfo As Int32)
Private Sub oTimer_Tick( _
ByVal sender As Object, _
ByVal e As System.EventArgs _
) Handles oTimer.Tick
mouse_event(&H1, 0, 0, 0, 0)
End Sub
It works fine on PocketPC 2002, but my PocketPC 2003 still switches to
standby after a few minutes. Has anyone an idea how to fix it on PPC2003?
Kind regards,
Benjamin Lukner
trinomix GmbH