Read Bar Code Data Behind The Scenes?

Oct 13, 2011

I have an Argox Barcode Scanner with a USB port, which inputs data like a keyboard wedge. I've tried scanning barcodes with it with notepad open, and it just dumps the values as plain-text into notepad on a new line every time.

I am creating an application which controls some custom electronics, and displays data on-screen at the same time. This application does not have any user-input on the entire form, except for a button which when clicked, takes the user to a login-form, and then onward to an admin control panel to change the way the program behaves. Everything is going to be set up on a PC which behaves like a kiosk, which means there will be no windows interaction by the user, and he will not be allowed any kind of usage on the machine even if he tries to use his keyboard/mouse all he can, except for reading data presented on-screen as interfaced with our custom electronics, or to use the mouse to press the button which invokes the login screen.

Now in this situation, I need to work in a barcode scanner behind the scenes. What I need to do is a user scans a barcode using the reader, and the scanning of the barcode should trigger some code in the background (which does some checking against a database, and then activates something in our electronics, and so on). After the user scans the barcode using the scanner, there is still supposed to be no user-interaction with the program itself.

how I might accomplish this? I have already thought of using a hidden text-box on the form, but that sounds like a temporary work-around rather than a professional solution. Not to mention if the user were to accidentally click anywhere on-screen with the mouse, or click on the login button, it would take focus away from the hidden text-box, and bringing focus back to it each time programatically is quite a task.

View 1 Replies


ADVERTISEMENT

Password Loop Textbox - Code Works To Read The Entry Data And To Recognise The Correct Data, And The Incorrect

Apr 16, 2012

CODE:

That code works to read the entry data and to recognise the correct data, and the incorrect. However, even if entry is correct, the error msgbox will appear (x times of how many records there are in file), despite being navigated to the menu. Anyway that the Else isn't triggered when data is correct. Also for it to appear just one instead of (x times of how many records there are in file.)

View 2 Replies

Add Code To Read And Use The Data From The Sales.txt File?

Jul 12, 2009

How do I (Add code to read and use the data from the Sales.txt file

2/1/07,Books,10.00
2/1/07,Games,29.99
2/1/07,Books,15.99

[code]......

View 10 Replies

Write A Code To Read Data From .gpx File?

Jul 5, 2011

I would like to write a code to read data from .gpx file, but I get stucked with classes: I have a problem with creating working array of objects in object and setting or getting data from it.

I wrote this:

Module Module1
Sub Main()
Dim i As Integer

[code]....

but I get always the latest values of points for all slots of array... Lets say we got 3 points as an input: 1. lon: 5, lat: 1; 2. lon: 2, lat: 3; 3. lon: 4, lat:9. I always get the same values for i = 0 to 2... lon: 4, lat: 9.

View 6 Replies

Import Objects Behind The Scenes?

Nov 23, 2010

I have some reports and queries that are going to be stored in 2 databases. One database 'client', will house the client specific queries and reports and the other database, 'all', will contain the application along with default reports and queries with the same names. The issue is that the clients will have their own specific queries/reports that when I install a new database to them it will eliminate their custom reports/queries.

What I want to is to be able to import these objects from 'client' every time the user logs in. This will ensure that I always have the correct information for the client.Here is my current code. (I know it may not be the best method but I am open to improvements.):

Private Function Insert()
Dim Custom
Custom = "some file location"[code]......

View 7 Replies

Code Read The Excel Cell As Null When It Contains Data?

Mar 29, 2012

Using VB.Net, I am reading an Excel spreadsheet does anyone know what might cause a cell to be read as VBNull when it contains data?the cell clearly contains data. and what is extra weird is all the same cells in the rows before and after the bad one have the little green triangle in the upper left corner, indicating an error - but they all read fine the cell that reads as NULL is the cell in row 4 above

View 1 Replies

Write Code That Will Control And Read Data From Applications?

Mar 22, 2010

I'm having difficulty figuring out how to run different programs with my VB program. Using Excel and other MS office programs is easy enough since I just add in the relevant COMs, but I can't for the life of me find out how to run other programs. I promise I spent many hours searching before bothering you kind folks here! I'd think this is a common issue so maybe I haven't been searching for the right thing.how to write code that will control and read data from applications.I know you can do "Process.Start" to open any application, and it looks like there are ways to determine the controls available on an open application, but I can't figure out how to do it. Is this possible? Or do I have to import a .dll file for every program I want to control? Or are both possible?

View 12 Replies

Regular Expressions - Behind The Scenes - Parse A String?

May 5, 2009

What happens exactly when you use a regular expression? How do they parse a string so quickly?

View 2 Replies

Write Code To Read Several NMEA Ports And Format Data For Archive

Apr 17, 2010

I'm VERY new to VB, and haven't coded since the TRS-80 days. I;m attempting to write code to read several NMEA ports and format the data for archive. When I execute the following on a port with the device turned off, the readline instruction hangs. can someone point me in the right direction to handle this exception.

View 1 Replies

PostMessage Mouseclicks - Click Behind The Scenes On "Pandoras Desktop App"

Mar 25, 2010

Ive looked everywhre for an example they all generally don't work. Im trying to click behind the scenes on "Pandoras Desktop App" Its powered by adobe air (i dont know if that makes much of a difference), i can get the hwnd properly, but after that im lost. ive tried Sendmessaging &H201 but it didnt seem to do anything. Also, for most examples they use notepad with the edit class, how would i get classes on pandoras app? or would i just send the mouseclick directly to the parentHwnd?

View 1 Replies

Reading And Writing Files On External Hard Drive, Code To Ensure SQL Or Data Read/write Execution In Case Of Periodic Drive Reconnect?

Dec 18, 2010

The drive is connected via USB and the problem I'm having is that, periodically, while my code is executing, the usb drive seems to disconnect and reconnect. (Nothing to do with the program, but the drive itself).I want to find a way to prevent these temporary drive reconnects from interrupting my code. IE, i want to insure that whatever read or write that is requested is actually executed even in the case of a temporary drive interruption.

View 1 Replies

Comm Port Read Hangs When Attempting To Read Data?

Apr 18, 2010

I;m attempting to write code to read several NMEA ports and format the data for archive. When I execute the following code:

Using Commportno As IO.Ports.SerialPort = _
My.Computer.Ports.OpenSerialPort(portName:=port)
Dim Incoming As String = Commportno.ReadLine()

View 5 Replies

HSD 32 Bit Data Bus To Serial Converter Via A Microcontroller - Data Sniffer To Read The Data Bus (32Bit)

Sep 3, 2008

Im working on a HSD 32 bit data bus to serial converter via a microcontroller. Now first I want to make a sort of data sniffer to read the data bus (32Bit) .All on the controller side is working and the stream of bytes are coming in via RS232 as 4 bytes in HEX like FD,A5,45,8B . I already converted the bytes in Dec and ASCII to determine what is passed true the bus and how fast and stuff.. Now that is all correct and working very well if the LSB (least significant bit) of the 32 data bus is Data line 0 and the MSB (most significant bit) is Data line 31 but if that is not the case I need to invert the 32Bits (like as I would invert the connector on the bus) . How do I best do this using the 4 bytes I send from the micro controller.

Example:

(MSB) 01001000 01100101 01101100 01110000 (LSB)
HEX= 48 65 6C 70
DEC= 72,101,108,112
ASCII= H E L P

I need to invert it with a button to:

(MSB) 00001110 00110110 10100110 00010010 (LSB)
HEX= 0E 36 A6 12
DEC= 14,54,166,18
ASCII= (SO) 6 : (DC2)

View 3 Replies

Read Data (read Only) From Excel Files?

May 27, 2011

I want to read data (read only) from excel files

I use this connection string

Con_BarCode = New ADODB.Connection
With Con_BarCode
.ConnectionString = "Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm,

[Code].....

View 1 Replies

Read XML File - Read The Data From ?

Feb 13, 2010

I have a fairly simple XML file that I just want to read the data from.

It has 3 levels, root, main section and items. There are no attributes. I want to go to the first main section by name, then read in all the items. The items all are named the same. I've seen this done before, so it should be ok. No writing will be done. Basically this is a static data file

File looks similar to the following:

CODE:

View 4 Replies

Read Data Of A SQLite Database File And Chart Data Using Basic Bars, Pies, Lines?

Feb 24, 2010

I'm only getting started with VB.Net, using VB Express 2008.Using the System.Data.SQLite wrapper, I need to read data off a SQLite database file, and chart data using basic bars, pies, lines, etc. Nothing fancy.

View 1 Replies

Vb Code To Read XML?

Jun 15, 2011

I'm having one hell of a time writing code to read my xml file. I have written the code to write it, but now need to read it. I would prefer some kind of a loop to read it. here's the xml..

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<AdvisorBuddy>
<BoxSet0>

[code].....

View 1 Replies

Another OPTIMIZING Macro Vba Code For Excel 2007 - The Code Is A Sort Of Transposer For Data

Sep 9, 2011

this code was not done by me originally and there are some thigns here i dont quite understand i have altered it a bit from my coworkers code to suit my data and it works. but too slow. and when i have 4000+kb excel files it might freeze altogether. ( I have checked tho that when and after this transposer runs it will still be within the excel row limit, i had done calculations before and made a macro to automatically split excel files based on number of columns and rows to make sure this is so ). This code seems to start out fast then goes slower the longer it runs. at least this is what it seems liek to me.

[Code]....

View 2 Replies

How To Read A Popup In Code

Feb 19, 2010

I have logged into a web site programically and caused an "Attach" button to be clicked. The result is a popup window and I need to be able to fill in the popup window textboxes. The popup is called from within the site's javascript code and the only thing I know is its URL. I need to insert data into the popup and click an accept button before I can continue.

View 2 Replies

IDE :: .net Will Read The Original Code?

Jun 10, 2009

I have a program that my boss ask me to add something on it for report generation but this is a finished program. My problem is if I add a script on this program and build and run using the debugger, the IDE will create a duplicate of my class and will read the original script. I copied the program and place it on a different drive so as I will still have a back-up of the original program at drive c:. And I tried to copy the program again and put it on a different folder but I still have the same problem.

View 1 Replies

Read A Website Source Code?

Dec 4, 2009

How can I show a website source code without the use of web browser. I only need the source code, i don't want to see the images or any other things.

More Info:Just like when you go to a website and if you are using Firefox you click CTRL+U and it will show you the page source code.

I want to read specific information from a website, but i don't want to the website to take longer on loading. (Because of Images)

View 5 Replies

Read Source Code From A Webpage?

Nov 21, 2011

I am trying to read product caracteristics from the source code of my supplier web page and store in my database. The code i created is just to show me the characteristics in a messagebox then i will store them in my DB. But i get an error in the If atrname.Count <> atrvalue.Count Then since values did not match titles count.[code]...

View 3 Replies

Search And Read Txt From The Source Code?

Jan 13, 2009

this is a code that read the source code and then show the source code on the txt box ...

i wold like to search in the soure code about a word ( ex. keyword , table , window ..) and after finding the word .. it show the word in the txt box

Dim http As New Chilkat.Http()
Dim success As Boolean
success = http.UnlockComponent("Anything for 30-day trial")
If (success <> true) Then

[Code]......

View 1 Replies

VS 2010 Using This Code To Read From A Txt File?

Jun 7, 2010

Currently I'm using this code to read from a txt file, but there is two problem with it.

Dim x As Long = 0
Dim SR As New System.IO.StreamReader("D:A.txt")
Dim line As String
Do

[code]....

It prints out the content of the txt file twice & I would like to read line by line and store the line in a string.In vb 6.0 I used a socket to create a server & client chat app.Is there some other possibilitys than to use a C4F P2P toolkit for Vb 2008?

View 4 Replies

How To Read From A Text File... -_-' - VB6 | Dream.In.Code

Jul 20, 2010

Basically, I need to open the file from Textbox1.Text(this stores the path) and dump all the text into the string 'File'.

Example code:
Sub Button1_Click
OpenFile(1, TextBox1.Text)

[code].....

View 9 Replies

Read A Singline Line Of HTML Code?

Sep 25, 2010

have problem with getting a single line text from html webpagei have searched for it but when i try that code:

Private Shared Function GetTitle(html As String) As String
Dim r As New Regex("<title.*?>")
Dim Title_start As Integer = 0

[code]....

View 8 Replies

Read The Text File And Display The Big 5 Code?

Jan 26, 2011

I want to write a small program which can be read the content of the text file or via the textbox and then displays the characters content into "Big5" code (Traditional Chinese Font coding).

View 9 Replies

VS 2005 Read The Source Code Of Webpage?

Nov 5, 2010

i try to read the source code of a web page but i have problem.When i use View Source from IE or FireFox i see all the code of the page.I try to take the code into a txt file with .NET 2005 Visual Basic because i have to read 900 pages.

the code i use

Dim myPageInfoPageURL As String
Dim myPageInfoPageResult As String
Dim myPageInfoPageHTTPWRQ As HttpWebRequest

[code]....

View 3 Replies

VS 2008 Read Source Code From A Webpage?

Oct 7, 2011

I need to get some parts of the source code (mainly product characteristics) from the web site and insert in my database:I need to get some parts of the source code in my db, which are the product characteristics and the it contains its value

Example of what i need is :
</div>
<div class="clear"></div>

[code].....

View 6 Replies

.net - Read A Specific Line From An Html Source Code?

Jun 25, 2012

I want to read a specific line from an html source code. Im storing the source into a string file and i want to read the line X.So im using this method that i found on net

Public Shared Function ReadSpecifiedLine(file As String, lineNum As Integer) As String
Dim contents As String = String.Empty
Try
Using stream As New StreamReader(file)

[code]....

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved