Keep PPC on with mouse_event fails on PPC2003

  • Thread starter Thread starter Benjamin Lukner
  • Start date Start date
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
 
Chris Tacke, eMVP wrote:

[...]
maybe it's a super secret?

Obviously you have a good time ;-)
Anyway, HAPPY NEW YEAR!

@Lisa:
Don't you even have a little hint for me?


Benjamin Lukner
 
Back
Top