[MPlayer-cygwin] Stopping the screensaver in windows

Anton Ragnarsson anton at infeline.org
Thu Aug 11 12:50:45 CEST 2005


>> >another way of doing it. However, I would still find it interresting if
>> >anyone knows how
>> >to simulate keyboard input..
>> 
>> Windows API provides a way, as I remember in the form of a single api
>> call to insert keystokes into the event input buffer. I don't have my
>> win32api.hlp on this machine, but I've read in there, and the help said
>> it is a way to simulate keystrokes. Sadly I don't remember which api
>> functions was it but feel free to search for in on msdn :)))))
>> I hope you can use this little info...
> 
> I believe you can just send events to a window handle.  But this may or
> may not inhibit screensaver, since it is really just one app passing a
> message to another. (or to itself?)  Anyhow, this all seems moot.  What
> VO needs this keyboard simulation?
> 
> --Joey

None of the VO's need the simulation, since this is not mplayer's problem.
I asked because I need it in another program that is controlled via IR,
which is not treated as "user activity" by windows..

.anton




More information about the MPlayer-cygwin mailing list