I
Iowna Uass
Hi,
I have an application that is using a barcode scanner for input. The barcode
scanner is usb, but is using the "Symbol USB Com Port Emulation" driver and
I'm using a module coded to communicate with the app using a com port. The
application is coded in VB .net 2008.
I am having an issue with de-activating the screen saver when the user wants
to initiate input using the scanner. I have an event that when the com port
recognizes "input" data I need the screen saver to de-activate to show the
interface. Turning off the screen saver in the control panel is not an
option, I can never guarantee if it would be turned on again.
There is no keyboard or mouse involved here, and all I want to do is wake
the computer from it's screen saver state.
I've considered using SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE,
0, 0) turn the screen saver off and calling the SystemParametersInfo
procedure with a true flag to turn it back on after, but I'm looking for a
more elegant way that can be done in the framework.
Any suggestions?
I have an application that is using a barcode scanner for input. The barcode
scanner is usb, but is using the "Symbol USB Com Port Emulation" driver and
I'm using a module coded to communicate with the app using a com port. The
application is coded in VB .net 2008.
I am having an issue with de-activating the screen saver when the user wants
to initiate input using the scanner. I have an event that when the com port
recognizes "input" data I need the screen saver to de-activate to show the
interface. Turning off the screen saver in the control panel is not an
option, I can never guarantee if it would be turned on again.
There is no keyboard or mouse involved here, and all I want to do is wake
the computer from it's screen saver state.
I've considered using SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, FALSE,
0, 0) turn the screen saver off and calling the SystemParametersInfo
procedure with a true flag to turn it back on after, but I'm looking for a
more elegant way that can be done in the framework.
Any suggestions?