Mouse click control on non-LabVIEW Windows

I'm using an ActiveX interface to talk to Opus spectrometer software. I can pass data around and start acquiring just fine but each time I run my acquisition LabVIEW software I get a little "ok" popup message from Opus that wants me to confirm acquisition. Is there anyway I can programmatically click this box so it will go away? It is running in a different process than LabVIEW so I didn't know if that kind of mouse control was possible.

Just check out if pressing Returen (Enter) key closes the dialog?
If yes then download the llb located at
http://forums.lavag.org/index.php?act=attach&type=post&id=91
in this llb file you will get the VI to simulate the keypress.
then as you launch application wait for some time and then simulate keypress and go ahead
Note: This may not be very robust solution as the keypress will not work if somebody clicks somewhere on screen and application in focus is changed.
but its quick solution
Tushar Jambhekar
[email protected]
Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

Similar Messages

  • Using Firefox 3.6 after a few mouse click/ keyboard input the firefox window is no more active, mouse click and keyboard input is inactive ; then I click on the taskbar and the keyboard is active again during a few click then it stops again etc.

    Using Firefox 3.6 after a few mouse click/ keyboard input the firefox window is no more active, mouse click and keyboard input is inactive ;
    to solve it I click on the taskbar and the keyboard is active again during a few click then it does not work any more and I click again on the task bar etc.
    after several repetitions, I have to call the task manager alt+del+ctrl, then come back to the firefox window to be able to use keyboard and mouse again

    Attaching the picture for the tab shape I want...

  • Changing mouse click text select in term windows

    Minor nit/question -
    When you click on text in the terminal window, it only selects up to a non-word character (i.e. it stops selecting at punctuation, so trying to click on Foo::Bar to select it all, it goes first to Foo (stopped by the ':') and then selects the entire line on the next click.
    Most Linux flavors seem to go by whitespace - first click selects everything that is between whitespace, even if it includes non-alpha characters (thus you get Foo::Bar with one click); then the next click selects the whole line. Having gotten used to that, the Mac behavior is... annoying.
    So - how does one change it? Can it be user-config'd?
    Thanks for any assistance.

    I have actually found out what the issue is. I have called a javascript method onblur of the text element which is present in the suggest region. This onblur method is interfering with the mouse click event of the auto complete suggestions shown. If i remove the onblur method, everything is working fine. I have simulated the issue in the html file present in the compressed folder attached herwith. In that i am actually throwing an alert on blur where as in real scenario i have some other functionalities to be handled on blur.
         For clarity i will explain the real scenario as well. When the user selects a suggestion from the auto complete div, the value will be placed in the text box and on blur of the text box, the dataset will be filtered based on the value in the text box.  Few pointers on this issue:
    The on blur functionality does not interfere when we select a suggestion using down arrow in key board.
    If i use mouse click to select then i have to wait for few milliseconds extra with the mouse clicked on the value before releasing it, so that the selected value is available in the textbox. Within this few milliseconds, the onblur function gets executed and then self.nodeClick is executed thus placing the value in the textbox. But forcing the user to keep the mouse clicked on the value for sometime will not sound good.
         Kindly advise as to how this issue could be handled.

  • Itunes search pop-up not selectable by mouse. (clicking selects objects in main window).

    When making a search, the window pop-up can not be selected by the mouse. It stays there, but any click results in selecting the main window (for example the normal song list). Even when just highlighting the mouse over the pop-up you can see the active window for the mouse is the main window because the icons that appear when hovering a song show for the main window only.
    Any ideas how to fix it?
    Specs:
    Windows 7 Ult.
    Itunes 11.0.5.5 (the latest).

    No luck. Even with newer updates, the issue still persist. Also, I have found about 4-5 other threads with the same issue that have popped up and not one has an answer.

  • Trackpad / mouse click control degrades or corrupts within an hour or longer

    Basically, over an hour, sometimes longer - the click of the mouse / trackpad ceases to have any effect.  Using an external mouse, the left-click also has no effect.  Right-click on the external mouse / Ctrl-click on the trackpad generally continues to work. I have generally been in the middle of something so I would proceed as far as I could using only the right-click.
    (Of interest, sometimes - like in this forum - the right-click on my mouse and the ctrl-click on the trackpad do not do exactly the same thing - but I think that is just how the page has been coded.)
    I am still able to move the pointer anywhere on the screen, that does not seem to be a problem.
    I have tried to open the system preferences to see if something was odd in the mouse settings but have been unable to get to the specific panel without the click function.
    This is the second time I have drafted this post.  The first time, the problem occurred and I was unable to click the "post message" button at the end of the form.
    The only way I can find to fix the problem is to restart my Macbook.  But the problem can recur in less than an hour - I had just restarted before I started the first draft of this post.
    Has anyone else seen this behaviour?  Any ideas or help would be greatly appreciated.
    Thanks in advance.
    W

    Hi Barney, thanks for the response.
    I went through the "resetting the SMC" troubleshooting before resetting the SMC.  The very last thing they suggested I try was shutting down the MacBook and removing and then replacing the battery.
    I could not do that.  As soon as I lifted up the MacBook to get at the battery bay, I could see that the battery was swollen to the point that it (the battery) was no longer sitting flush with the bottom of the Macbook.
    I have seen this before it happened when my MacBook was still under AppleCare - that time I discovered it while dusting off my computer area.  That time, they just replaced the battery.
    I remembered having read something about the battery swelling recently, and scanned the SMC resetting article several time before returning to your response, where of course I found it.
    Seems like you hit on the issue right away: swollen battery which is (I am assuming) placing pressure on the trackpad which is eventually malfunctioning.
    My MacBook's AppleCare has expired.  How do I assess whether to buy a replacement battery or just bite the bullet and get another computer - obviously an unplanned computer purchase wouldn't be a thrilling option, but I also don't want to waste money on a battery just to be forced to purchase another computer soon anyway :-/
    W

  • How can I get handle(s) to and poll non-LabVIEW window(s)/application(s) from LabVIEW?

    Want to launch EXE from LabVIEW, wait for user to finish with EXE's UI, and once they closed it, return execution flow in LabVIEW. Cool, no problem.
    Used the System Exec VI and with the "wait until completion" = TRUE the EXE never launches. Not sure why.
    With the "wait until completion" = FALSE, the application runs with no problems, but now LabVIEW no longer waits.  Can't tell when user is done.
    Work around idea... Once the Sys Exec VI launches the EXE, wait and poll some Windows API call to see when the window for the specific EXE closes. Cool.
    I know G and no C.  What I would ideally like is a DLL, that I can wrap with the DLL Import Wizard.  Of course best would be a VI and the wrapped API call.
    Any ideas?
    Scott Rogers
    Sr. DSM
    Western NY

    You could try it with a pipe. With a pipe you can open an exe, and interact
    with it through a read and write reference. Although in your case the exe
    might not start, since the normal sysexec doesn't start it...
    http://forums.ni.com/ni/board/message?board.id=170&message.id=270461&requireLogin=False
    Regards,
    Wiebe.

  • How do I keep the front panel on top of every windows (including non-LabVIEW windows)?

    The question above states it all.  Basically I have a progress bar the tells the user to wait and I want it to remain in front of anything that pops up while it is running.  My program opens up and deploys a VeriStand project and while it is doing that I dont' want the user to be able to do anything in the front panel that launches it.  When VeriStand launches it goes in front of the status window and you can't see it anymore.  I want to prevent this from happening and keep it in front of any VeriStand windows that pop up when I call the executable and the deploy an SDF.  I did take a look at the WINUTIL.llb but it keeps either 1) giving me errors or 2) not keeping it on top of anything but the main front panel.
    Any fixes or alternative solutions would be much appreciated.  Thank you.

    I did read that earlier and I just think I don't know enough of what I'm doing with library calls to make it work.  I kept getting errors and gave up on at the end of the day yesterday.  I'm working on other problems since this isn't a major one and figured I'd post it and see if anyone already had a solution to it.
    Thanks for the help though, it's appreciated.

  • Automator - How do I: Mouse Click, Move Windows, and more

    Hello,
    I am attempting to create my own Automator programs and for a while I had some that worked nicely. I have recently been tweaking my iMac so that it can "think" on its own (by automator of course) and do things for me. However, I've run across a block with Mavericks (I believe it's due to Mavericks).
    1. How can I get Automator to register a mouse click? "Watch me do" does not seem to want to work for me at all. I also would prefer if it would just be a registered mouse click, but not actually use the mouse (I know this is possible) so that if I'm doing something and it runs, it won't disturb my mouse and I can keep working.
    2. How can I register a keyboard stroke? Same as above
    3. How can I have automator move windows? I have two monitors and there are times when I may want it to move a window from one mintor to another
    The following is a list of all the things I'm attempting to accomplish at the moment (with other things when I think of them) with automator (either through applications, folder actions, or ical actions):
    1. Register a mouse click at a given area or on a given element in a safari page
    2. Register a keyboard stroke in a given program (be able to focus on a program and then do the keystroke)
    3. Move windows from one location to another
    4. Full-screen and Un-full-screen iTunes at certain times of day
    5. Download all purchased items on iTunes that aren't on the computer (sometimes iTunes doesn't download stuff if it was downloaded on my MacBook Pro first)
    6. Automatically voice read reminders (that I've set in Reminders) each day at a given time (I can use loop to repeat it to make sure I hear it all)
    I'll think of more of course, but the mouse click, keyboard stroke, and moving windows is the big thing I'm trying to figure out how to do. Can anyone help?
    Also, I am not a computer tech. I am tinkering with this because it's fun and helpful, but an answer of "just use applescript" or "just use java" will likely just give me a headache. I know that it's going to be one of those codes, but I'm hoping someone has a "base" code that can be copied and pasted that's just a standard click that I can adjust for where I need to click and what process I need to click on.
    If there is an Action Pack that includes a "Register Mouse Click" and/or "Register Keyboard Stroke", then that would work great, but the only action packs for automator I've seen that work with Mavericks is for photoshop.

    You're asking for a lot in one post.  It would be better to break your requests down a bit. 
    For example, to deal with mouse clicks, you can use the Automator Action Run Shell Script with this python script:
    import sys
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
            theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
            CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
            mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclick(posx,posy):
            mouseEvent(kCGEventLeftMouseDown, posx,posy);
            mouseEvent(kCGEventLeftMouseUp, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # Click the "Apple"
    mouseclick(25, 5);  
    # 1 second delay       
    time.sleep(1);        
    # Restore mouse position
    mousemove(int(currentpos.x),int(currentpos.y))
    It will look like this in Automator:
    To drag something (i.e. a window, a file icon) from position 40,60 to 60,300:
    import time
    from Quartz.CoreGraphics import *
    def mouseEvent(type, posx, posy):
               theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
               CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
               mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclickdn(posx,posy):
               mouseEvent(kCGEventLeftMouseDown, posx,posy);
    def mouseclickup(posx,posy):
               mouseEvent(kCGEventLeftMouseUp, posx,posy);
    def mousedrag(posx,posy):
               mouseEvent(kCGEventLeftMouseDragged, posx,posy);
    ourEvent = CGEventCreate(None);
    # Save current mouse position
    currentpos=CGEventGetLocation(ourEvent);
    # move mouse to upper left of screen
    mouseclickdn(40, 60);
    # drag icon to new location
    mousedrag(60, 300);
    # release mouse
    mouseclickup(60, 300);
    # necessary delay
    time.sleep(1);
    # return mouse to start positon
    mouseclickdn(int(currentpos.x),int(currentpos.y));
    For keystokes in AppleScript (which can be added to Automator with the Run Applescript Action) see: http://dougscripts.com/itunes/itinfo/keycodes.php

  • Mouse clicks on windows without focus

    Is there a way to recognize when a user is clicking on a defocused JFrame, to bring it to the front, as opposed to clicking to set a text cursor position within the JFrame? For example, if I click on a terminal emulator I've developed, the text cursor within the emulation window goes to the click, even if the emulator is only being clicked to give it focus. (I've also noticed a similar phenomenon with JBuilder, by the way.)
    By comparison, look at any native Windoze or Macintosh application; very few (if any) behave that way.

    This must be very hard for LabView to do.  I just need to use LabView to run another application. Then have labview emulate a mouse click on that application. I have found out the windows message using Spy++ for the mouse click.  Now in LabView I need to move the mouse to a certain position on that application.  How could LabView know where to move the mouse cursor.  I found some move cursor vi on this forum, then the coordinate of the position on the application (the active window) is not known.  Do I need to map out the position in advance using Spy++?  That seems not reasonable as later on the position may change. 
    LabView is indeed good for Hardware automation and data acquisition, but when it comes to performing some software automation tasks (i.e., runing a couple of other applications automatically), it doesn't seem to be powerful at all, unless the other applications are ActiveX capable, or you have their code to build Dlls.  Most of time, one only need to automate the process of running a couple of other programs, then have data presented.

  • TestStand sequence launchs Labview Window

    When I open a sequence in TestStand 3.5 consequently Labview is opened. But I have a test bench where this doesn't happen. (note: the bench are software and hardware identical, but assemblied in different moment). Moreover, when I launch my testing application (that recalls a teststand sequence), on the first bench appears always the labview window, while on the second bench none labview window is opened.
    I'd like to reproduce the second behaviuor: none labview window is opened.
    There is a particular setting in teststand to block the labview window?
    Note: the testing application and sequences are the same on the two benchs. The bench setting are identical. I controlled every setting between the two benchs.
    Solved!
    Go to Solution.

    There is a setting that I just found out about in the LabVIEW.ini file.  It disables the Getting Started Window dialog on LabVIEW 8.6.  It might work on LabVIEW 7.1 and may be present on one of your two test computers.
    Can I Disable the LabVIEW Getting Started Window On A Macintosh?
    The setting is "showNoNavDialog". Look on your computer that is behaving as desired and see if this setting was added (would be set to TRUE).
    \Program Files\National Instruments\LabVIEW x.x\LabVIEW.ini
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Trigger event on mouse click over image window

    How can I use an event structure to pick up on a mouse click on an IMAQ window in Labview. Specifically, I want to pick up a click with the 'select point' tool.

    To work in a Winddraw window, will not want to use the Event Structure, but instead the WindLastEvent. This will allow you to capture the events that occur in the Winddraw window. Attached are two examples, one I wrote using events so users can set up ROI's and the other is using events in LabVIEW with a picture control on the front panel so user can select an ROI.
    I hope this helps!
    Chris D
    Ni Application Engineer
    Attachments:
    Line_Profile_of_Live_Image.vi ‏145 KB
    ROI_from_Picture_Control_using_Events.vi ‏111 KB

  • QuickTime 10.1 does not seem to be compatible with OSX Lion  - clicking on the displayed file window switches to another displayed app, doesn't play or control the video.

    If I open a movie file (appears to be any type - .mov, m4v, mv4) it displays on the desktop, but when clicked, the Mac reverts to another open application (immediately UNDER to point of the mouse click) and not the displayed movie file.  It appears the screen mapping is flawed...
    Anyone else have this problem? (does not appear to be a problem with QT7)  Running OSX Lion 10.7.3 and QT Player 10.1 (501.8) - all most current as far as I can tell...

      Yes, same problem. The active clickable area appears to be shifted down and to the right as if it is the shadow mask (to make it look like layers in the display) that is responding. Means you can't move the control palette to the top of the window (to not block security video with time track at bottom) or even close the window. The X in the bubble appears when moused over but the click goes through it.
      Most obvious if you open more than one movie at a time and they cascade. You can't get at the ones underneath until a few down the stack and it gets an upper wrong one.
      Who's testing these things?
      For comparison testing to recreate problem: Mac Pro (System Information has also been dumbed down from System Profiler, push System Report for the useful stuff) with an ATI Radeon HD 5770 driving two displays.
       Also viewing desktop of another computer on the network is slower and, for instance in World of Warcraft, the hand pointer flickers.
      And finder windows can't be narrowed as much any more to show only a list of file names for drag and drop sorting.
      Was hoping that by 10.7.3, it would be safe to jump, since several posts told me how to Terminal > networksetup -setv6off Ethernet to fix iTunes streaming to expresses and other dumb bugs.

  • Running bootcamp and right mouse click on windows

    Hi all, I was just looking to setup WinXP on my machine and wanted to know how my macbook pro laptop mouse would deal with the right mouse click on windows? If I dont have an external mouse plugged into the laptop is there no right mouse click available?
    Thanks!

    Download a program called AppleMouse at http://www.softpedia.com/get/Desktop-Enhancements/Other-Desktop-Enhancements/App le-Mouse-Utility.shtml. Unzip it the copy-and-paste "applemou.exe" to this directory through Windows Explorer: C:\Documents and Settings\YOUR USER NAME\Start Menu\Programs\Startup. Once copied, restart your computer back into Windows and login. You'll be able to right-click by holding down the control (ctrl) button and clicking.
    MacBook Pro 17" 2.16GHz, 120GB, 2GB, Matte, 120GB USB Western Digital HDD   Mac OS X (10.4.6)   Windows XP Dual-Boot, Toasting Over 189.6 degrees Fahrenheit in CoreDuoTemp

  • How can i open a link in new window (shift + Mouse Click) while not switching to the new window

    I want to open a new window (shift + Mouse Click) while not switching to the newly opened window. The focus should remain on the window from where i have opened the link.

    You can do that with tabs, but not with windows AFAIK.

  • I went to import special characters in imovie '11 and now the character window comes up on every application, yet won't open in iMovie at all, it flashes across every screen on each key/mouse click

    I went to import special characters in imovie '11 and now the character window comes up on every application, yet won't open in iMovie at all, it flashes across every screen on each key/mouse click, stops the other software from running, and won't shut off, ever.

    Try trashing the .plist in Home/Library/Preferences which has CharacterPalette in its name.

Maybe you are looking for

  • Am not able to run the java program - pls help

    1. I installed java in the below path      c:\program files\java\jdk1.5.0      c:\program files\java\jre1.5.0 I set the path in      User variable i. variable name: path           ii. variable value: c:\program files\java\jdk1.5.0\bin when I compile

  • Question about UTL_FILE_DIR - Errors

    I have read several other postings about the error I am getting with UTL_FILE DIR: Cause: FDPSTP failed due to ORA-20102: Invalid Operation ORA-06512: at "APPS.XXHH_PAY_OUT_PS16", line 424 ORA-06512: at line 1 We have setup the parameter in V$Paramet

  • HT1925 I receive error code 2349   when trying to install iTunes.  Any idea what that code means and how to correct?

    receive error code 2349   when trying to install iTunes.  Any idea what that code means and how to correct?

  • Time Machine format?

    Hi there. Quick one for you today. Since I had to reformat my hard drive to reinstall OSX... before realising I could just system restore direct from the hard drive i've noticed something strange. My Timemachine backup is no longer taking place. If I

  • How do I upgrade OS 10 (10.5.8) to Lion on My Imac?

    Have an IMac whose purchased date may extend back 4-5 years. Currently running 10.5.8 and am trying to update the OS so I can run the current version of VM Software (ver 5) that I found out only runs on the more updated Mac OS's. The serial number of