[fpc-pascal] Windows API SendMessage()

2017-08-09 Thread James Richters
I'm trying to use SenMessage() to turn the display on or off under program control of a console application.I got the function to work, and it turns off the display, but then the program just hangs. Does anyone know what I am doing wrong? Here's my sample program Program Displaycontrol;

Re: [fpc-pascal] Windows API SendMessage()

2017-08-09 Thread Cyrax
On 10/08/17 04:27, James Richters wrote: I'm trying to use SenMessage() to turn the display on or off under program control of a console application.I got the function to work, and it turns off the display, but then the program just hangs. Does anyone know what I am doing wrong? Here's