keeping communicator active

K

krazymike

I want to write code to make OC 2007 think I'm still active. I have a
program which keeps the screen saver from popping up by raising mouse
events every 10 minutes. This isn't enough to fool Office
Communicator. Anyone know what type of event will fool it?
 
R

RDub

K

krazymike

This appears to work:

Private Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long,
ByVal dX As Long, ByVal dY As Long, ByVal dwData As Long, ByVal
dwExtraInfo As Long)

Private Const MOUSEEVENTF_LEFTUP = &H4 ' left button up

Public Sub Click()
Call mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0)
End Sub
 
J

jddixon

Krazymike,

I have downloaded the 2007 Microsoft Communicator SDK. I would like to find
out from you where you placed this event. Thank you.
 

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