954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Serial input to an app running in background

Hi,

I'm not sure if there's another topic about this but couldnt find it with the searchoption..

I'm creating an app which uses a cardreader, it works perfectly.. but now i have to let the app run in the background, but the cardreader still has to work, when a card is swiped it still has to bring the string to the app (for instance when another application has focus). How can i make it work in background without having to use directx?

Is it even possible??

Thanks,

San

(by the way, i'm using Visual Basic 6)

Sannn
Newbie Poster
3 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

I don't see the problem.... VB is reading data from the serial port right? So should it matter if the form's .visible property is true or false?

Comatose
Taboo Programmer
Team Colleague
2,910 posts since Dec 2004
Reputation Points: 361
Solved Threads: 215
 
I don't see the problem.... VB is reading data from the serial port right? So should it matter if the form's .visible property is true or false?



the problem is i cant seem to monitor the com port the reader is connected to because i get the message the comport is being used, so i have to use a textbox which has focus all the time (when the app is on focus).

Sannn
Newbie Poster
3 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 
I don't see the problem.... VB is reading data from the serial port right? So should it matter if the form's .visible property is true or false?

I wonder is it possible the application doesn't have a proper hook on the serial port? Is a third party control being used or windows API?

agrothe
Junior Poster
153 posts since Jun 2006
Reputation Points: 37
Solved Threads: 18
 

problem solved, i found out that windows accessabilities tools was using that port for serial input devices. turned it off and it works properly.

thanks all

Sannn
Newbie Poster
3 posts since Jun 2006
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You