Capture keystrokes while VI running in the background.

Hi
I have a VI that needs to run in the background, however I need it to be able to recognize a certain string when typed in on the keyboard, actually it's a barcode reader - same difference. I have tried to use the keyboard.zip file from the ftp site however the VI's don't seem to work unless they are in focus. How do I do this with the program running in the background??
Thanks
Jacob Thastrup
BioImage A/S
www.BioImage.dk

Jacob,
Get the VI called Get Keys.vi (or something alike) from our online (free)
library, www.air.nl. Maybe it needs some small modifications, but it should
do the job.
However, barcode scanners are not exactly the same as user input. In theory,
yes, in practice, no. Problem is they are very fast. So, you have to scan
the keyboard very fast. Probably too fast (e.g. it's not possible to obtain
all characters from the scanner).
Fortunatlly barcode scanners often have possibilities to add a delay between
characters. Set to a delay of 50 ms (or experiment, until perfect..) and it
should work.
The VI gets keys even if another application is active.
Regards,
Wiebe Walstra.
AIR technical Automation
www.air.nl
"jact" wrote in messa
ge
news:[email protected]..
Thank you for your fast reply. However as far as I could get it to
work it still required me to have a VI in focus. The program running
in front is not a Labview VI so I'm still stuck any other suggestions?
Thanks
Jacob Thastrup

Similar Messages

  • LabVIEW closes while VI's are still running in the background

    I have created a large application that is split between VB 6 and LV 6.1. The LabVIEW portion runs in the background, except that the VB portion can request that a LabVIEW user interface be presented on demand. Any time after this LabVIEW user interface has been opened and closed, opening and closing another application (or even just hiding a top-level window in another application) will cause LabVIEW to close, taking my background processing with it.
    If the LabVIEW code is running as source code, LabVIEW prompts me before closing. However, when the LabVIEW code is running as an executable (.exe), the executable closes without prompting in this circumstance.
    The scenario can be reproduced with a standard LabVIEW sample program. Proceed as follows:
    1) Open VBToLV.vbp (the example program distributed with LabVIEW 6.1).
    2) Start the VB program running.
    3) Press the Launch LabVIEW button on the user interface of the VB program.
    4) Enter an expression in the text box provided.
    5) Select Display VI Front Panel.
    6) Press the Run VI button.
    7) Close the VI front panel by clicking its "X" button.
    8) Open any handy application, such as Windows Explorer or Notepad.
    9) Close this most-recently-opened program.
    10) The LabVIEW Exit screen appears.
    11) Exit LabVIEW.
    12) Press the Run VI button.
    13) An error occurs because LabVIEW has closed.
    If the LabVIEW code had been built into an executable and called accordingly, there would have been no LabVIEW exit screen. The executable would have just exited silently.
    This is not the way a COM server is supposed to behave. The VB program is still holding a valid reference to the server and it should remain open.
    It appears that LabVIEW is monitoring the total number of top-level windows that are open. I suppose that this is how LabVIEW figures out when its own FP windows have been closed. In this case, it doesn't notice that all of its windows have been closed until some other window closes.
    I have a work-around, but it's ugly.
    Ron Martin
    Balance Technology Inc.

    Hi,
    Perhaps you use references to windows in LabVIEW. If you get those
    references with a full path (e.g. c:\code\subvis\vi1.vi), this will work
    while in LabVIEW environment. But when an application is build, this will
    fail, because the vi is no longer there. Try using the name in a string
    instead (the OpenVIReference is polymorphic) with only the name of the vi in
    it (e.g. vi1.vi).
    There are some other isues that change when building an application. Most of
    them are paths that change, and references that fail to open because of
    them.
    Regards,
    Wiebe.
    "cpuwzd" wrote in message
    news:[email protected]...
    > I have created a large application that is split between VB 6 and LV
    > 6.1. The LabVIEW portion runs in the background, except that the VB
    > portion can request that a LabVIEW user interface be presented on
    > demand. Any time after this LabVIEW user interface has been opened
    > and closed, opening and closing another application (or even just
    > hiding a top-level window in another application) will cause LabVIEW
    > to close, taking my background processing with it.
    >
    > If the LabVIEW code is running as source code, LabVIEW prompts me
    > before closing. However, when the LabVIEW code is running as an
    > executable (.exe), the executable closes without prompting in this
    > circumstance.
    >
    > The scenario can be reproduced with a standard LabVIEW sample program.
    > Proceed as follows:
    >
    > 1) Open VBToLV.vbp (the example program distributed with LabVIEW 6.1).
    > 2) Start the VB program running.
    > 3) Press the Launch LabVIEW button on the user interface of the VB
    > program.
    > 4) Enter an expression in the text box provided.
    > 5) Select Display VI Front Panel.
    > 6) Press the Run VI button.
    > 7) Close the VI front panel by clicking its "X" button.
    > 8) Open any handy application, such as Windows Explorer or Notepad.
    > 9) Close this most-recently-opened program.
    > 10) The LabVIEW Exit screen appears.
    > 11) Exit LabVIEW.
    > 12) Press the Run VI button.
    > 13) An error occurs because LabVIEW has closed.
    >
    > If the LabVIEW code had been built into an executable and called
    > accordingly, there would have been no LabVIEW exit screen. The
    > executable would have just exited silently.
    >
    > This is not the way a COM server is supposed to behave. The VB
    > program is still holding a valid reference to the server and it should
    > remain open.
    >
    > It appears that LabVIEW is monitoring the total number of top-level
    > windows that are open. I suppose that this is how LabVIEW figures out
    > when its own FP windows have been closed. In this case, it doesn't
    > notice that all of its windows have been closed until some other
    > window closes.
    >
    > I have a work-around, but it's ugly.
    >
    > Ron Martin
    > Balance Technology Inc.

  • Upgraded to Lion. Numbers is stalling to auto save after every keystroke. Isn't auto save supposed to run in the background?

    Upgraded to Lion. Numbers is stalling to auto save after every keystroke. Isn’t auto save supposed to run in the background?

    It's supposed to save when the processor isn't triggered by the user. If you type slowly, time between two strokes may be sufficient to allow it to start the save process.
    Yvan KOENIG (VALLAURIS, France) lundi 17 octobre 2011 23:27:47
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
    My iDisk is : <http://public.me.com/koenigyvan>
    Please : Search for questions similar to your own before submitting them to the community

  • Is there a way to have Adobe Acrobat run in the background while scanning documents?

    This was working fine up until last week and then all of a sudden, the scanning program overrides anything else I'm doing on the computer (such as typing an email, etc).  I'm not sure if a recent update removed that setting, but I'd like to be scanning documents, but not have to wait until it's done to have my computer back.  Does anyone know how to change this?

    My organization is having this same issue.  Our scanners were using 9.2 Acrobat standardard to scan.  While they were scanning, they could switch focus to another application and work while scanning continued in the background.  Now, the twain driver grabs focus at the start of every page.  This must have happened because of an upgrade.  Any thoughts or feedback would be appreciated considering this has affected our productivity.

  • I have a flash game I want to run in the background while surfing other tabs. When I change tabs the game automatically pauses. How can I stop this.

    Is this a flash issue or can I force this game to run in the background somehow.

    Does this also happen if you run that game in another window?
    You can tear off a tab to a new window by slightly dragging the tab down in the browser area.

  • The application does not use the  screen and run in the background

    Hi
    I have downloaded a package of j2me Midlet
    from [link] here [link]
    and try to reuse the code
    but I get the following error when running the code:-
    The application does not use the screen and run in the background
    I think the error into one of these two classes
    package main;
    import javax.microedition.midlet.*;
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.media.Manager;
    import javax.microedition.media.MediaException;
    import javax.microedition.media.Player;
    import java.io.IOException;
    import java.io.InputStream;
    public class MainMidlet extends MIDlet implements CommandListener {
        private SSGameCanvas gameCanvas ;
        private Command exitCommand ;
        private Player player = null;
        public void startApp() {
      try {
           //   create new game thread
              gameCanvas = new SSGameCanvas();
              gameCanvas.start(); // start game thread
              exitCommand = new Command("Exit",Command.EXIT,1);
              gameCanvas.addCommand(exitCommand);
              gameCanvas.setCommandListener(this);
                Display.getDisplay(this).setCurrent(gameCanvas);
       catch (java.io.IOException e)
                e.printStackTrace();
            try {
                // start sounds
                InputStream in = getClass().getResourceAsStream("/resource/startfly.wav");
                player = Manager.createPlayer(in,"audio/x-wav");
                player.setLoopCount(1);
                player.start();
            catch (MediaException ex)
                ex.printStackTrace();
             catch (IOException ex)
                ex.printStackTrace();
        public void pauseApp() {
        public void destroyApp(boolean unconditional) {
            if (player != null) {
                player.close();
            System.gc();
      public void commandAction(Command command, Displayable displayable) {
           if (command == exitCommand)
                 destroyApp(true);
                 notifyDestroyed();
    package main;
    import java.io.IOException;
    import javax.microedition.lcdui.*;
    import javax.microedition.lcdui.game.*;
    public class SSGameCanvas extends GameCanvas implements Runnable {
        protected GameManager gameManager;
        protected boolean running;
        private int tick=0;
        private static int WIDTH;
        private static int HEIGHT;
        private int mDelay = 20;
        Form mainForm;
        Display display;
        //private int MaxTime;
        public SSGameCanvas() throws IOException{
            super(true);
            gameManager = new GameManager(5,5,getHeight()-10,getWidth()-10,this);
        public void start() {
                this.running = true;
                Thread t = new Thread(this);
                t.start();
        public void stop() {
            running = false;
        public void render(Graphics g) {
            WIDTH = getWidth();
            HEIGHT = getHeight();
            // Clear the Canvas.
            g.setColor(0, 0, 50);
            g.fillRect(0,0,WIDTH-1,HEIGHT-1);
            // draw border
            g.setColor(200,0,0);
            g.drawRect(0,0,WIDTH-1,HEIGHT-1);
            // draw game canvas
            gameManager.paint(g);
        public void run() {
            while (running) {
                // draw graphics
                render(getGraphics());
                // advance to next graphics
                advance(tick++);
                // display
                flushGraphics();
                try { Thread.sleep(mDelay); }
                catch (InterruptedException ie) {}
        public void advance(int ticks) {
            // advance to next game canvas
            gameManager.advance(ticks);
            this.paint(getGraphics());
    }Edited by: VANPERSIE on Jul 10, 2012 12:26 PM

    Hi Andi,
    Thanks for your reply.
    Yes, I have waited for a while and the result doesn't change.
    The Porblem here is the application is seen started in visual administrator.Only restart brings up the page back.
    Can you please suggest anything.
    Thanks and regards
    Nagaraj

  • Can a java program be run in the background?

    Hi all,
    Can a java program be run in the background without the user being aware of it? I need to make a program that continuosly monitors a pc at regular intervals and runs at all time. It should be hidden(shouldn't display on the screen while running) from the user, and also, can it be run as a system file so that even if a user checks he/she would think of it as a system file?

    I'm the administrator of all the computers. Then as I said there are commercial applications that do that.
    Presumably you expect a problem now. And implementing an acceptable solution is going to take you months. Because not only need to 'hide' the application, you also need to set up all the monitoring and logging capability. And the first will require quite a bit of JNI work along with testing (in particular as it could interfer with existing applications on the users computers.)
    I need to
    install the software in all the machines and i want
    that the users who use the machine should not be able
    to close the program through the task manager. If the users have admin rights then they can terminate a windows service.
    And if they don't have admin rights then you can simply turn off the ability to install anything.
    I want
    to know what the resources of the computers are and
    that if anyone has added a resource to it or
    not(attaching a flash usb thumbdrive etc). Lots of JNI.

  • Midlet running in the background

    Hello!
    I am wondering if it is possible to create a java program that runs in the background on a mobile phone. I.E can it run without beeing interuppted by a call or the locking of the key pad.
    Is it possible to let the program run without interfering with the normal functionallity of the phone?

    Hi
    To make a midlet run in the background you have to do as mentioned:
    Display display = Display.getDisplay(this);
    display.setCurrent(null);
    This will make the midlet run in background while you can continue working with other midlets. This strategy was tested with J2MEWTK 2.5 & Black Berry.
    Thanks
    Bruce

  • GarageBand running in the background with video app open

    I was wondering if GarageBand will run in the background while I'm using the video app on the iPad. Basically, I'm looking to have my guitar running into my iPad with GarageBand running, while watching/following along with a guitar video lesson I also have on my iPad. Can the two programs run simultaneously, or will the video app eliminate the sounds I would get from GarageBand? Thanks.

    Yes, I've done that while playing youtube videos with the youtube app (I'm still using ios 5.1).
    Just go the wrench icon in Garageband and turn on "Run in Background".

  • TCP connections and running in the background

    First of all I am new to j2me, but with very good java background
    I want to create a db server running in the background of a symbian phone.
    Does anyone knows if it is possible to open tcp sockets in j2me?
    Is it possible at all to run a java app in the background on a phone?
    I am using ngage if that is relevant.

    The following examples show how a SocketConnection would be used to access a sample loopback program. (from api documentation of WTK 2.2)
       SocketConnection sc = (SocketConnection)
                             Connector.open("socket://host.com:79");
       sc.setSocketOption(SocketConnection.LINGER, 5);
       InputStream is  = sc.openInputStream();
       OutputStream os = sc.openOutputStream();
       os.write("\r\n".getBytes());
       int ch = 0;
       while(ch != -1) {
           ch = is.read();
       is.close();
       os.close();
       sc.close();
    Since MIDP 2.0

  • Too much stuff running in the background

    I have a Casio Commando Gz'One.  I installed an App called Advanced Task Killer to be able to turn unnecessary things off that are constantly running the background.  What I have noticed is even right after I run Advanced Task Killer, there is A LOT of stuff that keeps turning itself back on.  How can I permanently turn off apps/stuff that I rarely if ever use? 
    As an example of Apps/stuff that constantly is on and turning itself back on in the background........My Verizon Mobile, Gallery, Camera, Desk Cradle, Mobile IM, Skype Mobile, Slacker, City ID, etc etc etc.
    I'd prefer to not have all this stuff constantly running in the background and using up memory.  I notice that when I don't run Advanced Task Killer for a while my phone responds slower and slower and the longer I leave things be, my available memory available goes down......
    How do I do this?

    Thanks, Ann, that's a great article, very helpful to a veteran Windows user like me, who isn't used to RAM being managed this way by the OS.
    I  just did a quick check on my Samsung Stratosphere using Menu > Applications > Memory usage, then tapping Running. There's a lot of stuff running, and I do wonder about some of it. Slacker Radio, for instance, which I've never used and don't intend to use, has been running for 24 hours and is using 2.3 MB of memory. When I press and hold it, I get a screen informing me that it was started by an application called Tap to stop, and a warning, "Service started by application. Stopping service may cause application to fail." If I throw caution to the winds and tap Stop anyway, I get another message, "Stop this system service? Some features of your phone may stop working correctly until you turn it off and then on again," at which point I grab caution back from the winds and hit Cancel.
    So, granted that I should just leave things alone and "let Android be Android," as the writer of the article you linked to says, I'm still curious. What the heck is the application called "Tap to stop"? I don't see it anywhere. What feature of my phone would fail if I forced Slacker Radio to stop?
    Thanks again for the article. It's fun to learn about a new OS.

  • My iMac screen just came on white, I can hear it running in the background

    My iMac was in sleep mode, click in on, screen was snowy color and stripes. Turned it off and back on again. Got white screen with Apple logo, then nothing, sounds like it is running in the background.  Help.

    I just had a similar experience with my iMac - late 2009. Ty unplugging it and let it sit for a while.
    Heavy duty vacuum popped circuit breaker of my office. All off. Lot's of hard drives, printers and the iMac.
    On reboot - white screen - no Apple logo though. Just let it sit and nothing. So restarted over and over and let sit to boot for even an hour. Never came back. So I went to Apple store and bought a iMac 5k. Came home - before unboxing - restarted the iMac again - white screen. OK, SO I setup my new iMac. Moved the old iMac to floor, unplugged and went about my business and figured I would take old iMac apart in a couple of days.
    So about 4 days later, I plugged the iMac in - and it booted like nothing happened! ***? It was working fine. I did wipe the drive and reinstalled Yosemite. Still all fine.
    Weird one for me.

  • I've found 'Blackberry Device Manager' running in the background of my Mac? But its been deleted? How do I get rid?

    I've just upgraded my MacBook Pro to a new Retina model, and while looking at the activity monitor I've noticed I still have an app running in the background that I thought had been deleted? Its the 'Blackberry Device Manager'? (See photo)
    I've tried doing a spotlight search to try and find the program and delete? It's not in my apps list?
    So I'm stuck and need some help? Thank you

    That is a LaunchAgent. You will find it in the /Home/Library/LaunchAgents/ or /Library/LaunchAgents/ folder. To delete it you will have to first kill the process in Activity Monitor, then drag the file to the Trash and delete it. If the process reappears, then drag the item to the Trash and restart the computer, after which you can Empty the Trash.
    Exposing the /Home/Library/ Folder
    Pick one of the following methods:
    A. This method will make the folder visible permanently. Open the Terminal application in your Utilities folder and paste the following at the command prompt:
    chflags nohidden ~/Library
    Press RETURN.
    B. Click on the Desktop, press the OPTION (⌥) button, select Library from the Finder's Go menu.
    C. Select Go To Folder from the Finder's Go menu. Paste the following in the path field:
    ~/Library
    Press the Go button.

  • HT1338 My special characters screen for pages is running in the background no matter what I do.  It randomly pops up and then goes away.  I can't close it even though I have closed pages and restarted my computer.  How can I stop this.

    My special characters screen for pages is running in the background no matter what I do.  It randomly pops up and then goes away.  I can't close it even though I have closed pages and restarted my computer.  How can I stop this.

    Try trashing the .plist with CharacterViewer in its name in Home/Library/Preferences.  To get to Home/Library you may need to hold the option key down while you do Finder > Go.

  • Stopwatch continues to Run in the background

    Took awhile for this to develop, but the stopwatch resets itself to zero now after just a half hour of running. That's what alerted me to the underlying problem. I've left the stopwatch running for several days in the past. I don't know if that's the trigger for this bug or not.
    Basically when i start the stopwatch it runs now for 30 mins, maybe an hour or two, but when I go back in to view it, flashes a VERY long number like "233:13:45" and then flashes to zero. While it should be showing a few hours of work, it shows this extremely long number and then zero's out.
    The second time it happened I had the idea of hitting "Lap" instead of "Start" to restart it. In the lap area I saw an extremely long number. Its clear the stopwatch system is continuing to run in the background, possibly from a previous date where I left it running, months ago. It seems to be doing this in the background, as the front end always ultimately goes to zero, even when it should still be running for that particular day. Clear as mud?
    Definitely a bug, and Im not sure how you'd duplicate it, but here would be my suggestion:
    1) Start the stopwatch and let it run for like 5 to 10 days without stopping.
    2) Navigate around the phone and use its other features in the meantime.
    3) Stop the stopwatch and reset it to zero, and restart it.
    4) Do the same thing. Run it for 5 days maybe.
    5) Stop it and reset it to zero.
    Eventually it may start zeroing out when it is supposed to be counting upwards. It may also flash a long number, prior to zeroing out. You may also be able to hit "LAP" when it incorrectly zero's out and you may then see the very long number. If so, you've duplicated the bug.

    i have the same problem... i have yet to find a way to duplicate the problem at will, but it manifests itself on a fairly frequent basis.
    a have been running laps at around 5-6 hours or so. the problem could occur on the 1st lap or on the 6th lap. all of the a sudden the display goes to all 0s, and if you hit lap or stop, the last lap will be over 66000 hours... which, the last time i checked was like over 7.5 years....
    while i may have been an early adopter, i have not had my iphone that long....
    a stopwatch should be one of the simplest applications to get right. i find it pretty lame that this bug appears.

Maybe you are looking for

  • 3G NOT Activating - SSL 3.0 or TLS in Internet Explorer (iTunes for PC)

    I guess their SSL servers are crashing too. SAD Months to test. 1 year's worth of experince and NO Load Testing.

  • Coldfusion, JSON, and the Amazon CloudSearch API

    Hi all, We are using Amazon CloudSearch service for our site search.  We created a front end which uses jquery to communicate with the server to display search results. The problem we are running into is with creating and updating data on the backend

  • LR 4.0 and OS 10.5

    Hello- i just recieved my upgrade for LR 4.0. I noticed OS 10.6 or 10.7 is in the specs. Can it work on 10.5.8? Thanks, John

  • Administrative Server - Single Point of Failure?

    From my understanding, all managed servers in a cluster get their           configuration by contacting the administrative server in the cluster.           So i assume in the following scenario, the administrative server           could be a single p

  • Why won't purchased files play?

    All purchased music appears in my account and the message states that all purchases have been downloaded to my laptop. Certain files will not play from my library and I get a message stating the original file cannot be located. When I go back to "pur