Interrupt screen saver in vb

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?
 
S

sheik

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?
 
F

Family Tree Mike

Iowna Uass said:
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'm sure there is a very simple answer to this that I am over looking, but I
will ask. If there is no keyboard nor mouse, what will the user do once the
barcode is scanned?

Mike
 
H

HardySpicer

Iowna said:
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?

Who needs screen-savers with LCD screens.

Hardy
 
M

Mike Williams

Who needs screen-savers with LCD screens.

The politicians would have you believe it's people who want to save the
planet, but then the same politicians think nothing of having people drive
them around in gas guzzling limos :)

Mike
 
I

Iowna Uass

I'm sure there is a very simple answer to this that I am over looking, but
I
will ask. If there is no keyboard nor mouse, what will the user do once
the
barcode is scanned?

Mike

The system is a dedicated barcode scanning unit that will be deployed to a
shop floor.
The user will have a series of barcodes that they can select from to record
work order info and labor. There will be no keyboard or mouse interaction
for any of this.
 
I

Iowna Uass

Who needs screen-savers with LCD screens.

Hardy

I'm not just concerned with terminating the screen saver, but waking up the
monitor from being turned off.

And I pity the fool who thinks people won't use a screen saver on an lcd
monitor, you need to account for all scenarios.
 
I

Iowna Uass

Iowna Uass said:
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?

It appears that Monday has better suggestions than this group.
I tried a different approach to googling and stumbled upon this kb.
I'll be penning a little dll to plug into my app that should do the trick.
 

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