Keep PPC on with mouse_event fails on PPC2003

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
 
B

Benjamin Lukner

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top