How to capture mouse envents outside VI window?

Hello,
       I want to capture mouse envents occured outside the VI window. I searched in NI web and only found that has example capture the mouse envents inside the VI window. If anyone can help me please email to [email protected] or [email protected]
Thanks and Best Regards

By the way, I'm using LabVIEW 6.1 PDS..

Similar Messages

  • Capture Mouse Position outside an applet

    Dear All,
    I'm working on an applet that needs to know the actual position of the mouse cursor outside its area
    (i.e.: else where on the screen), is that possible?
    Thank you in advance.

    As far as I know, no. Applets know about the mouse only when it's inside the applet area.

  • How to capture Mouse Down event outside a control?

    Mouse Capture doesn't work:
    public partial class MainWindow : Window
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    Mouse.Capture(button1);
    button1.PreviewMouseDown += Down;
    private void Down(object sender, MouseButtonEventArgs e)
    MessageBox.Show("Hello World!"); // doesn't show

    Hi Ziya,
    the Capture-method returns a bool whether the capture was successful or not. So when you do this, you'll see that your capture didn't work:
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    var success = Mouse.Capture(button1);
    if(!success)
    MessageBox.Show("Not captured");
    button1.PreviewMouseDown += Down;
    The problem with the code above is that your Window is not loaded at that time when the code in the constructor is executed. And as long as it is not loaded, there's nothing to capture. :-)
    So you should do your capture-logic in the Loaded-event of the window. That event occurs after the Window has been loaded. So the code below will work for you:
    public MainWindow()
    InitializeComponent();
    Button button1 = new Button();
    button1.Width = 50;
    button1.Height = 20;
    this.Content = button1;
    this.Loaded += (s, e) =>
    var success = Mouse.Capture(button1);
    if (!success)
    MessageBox.Show("Not captured");
    button1.PreviewMouseDown += Down;
    Thomas Claudius Huber
    "If you can't make your app run faster, make it at least look & feel extremly fast"
    My latest Pluralsight-courses:
    XAML Layout in Depth
    Windows Store Apps - Data Binding in Depth
    twitter: @thomasclaudiush
    homepage: www.thomasclaudiushuber.com

  • How to capturing Mouse double click action?

    Hi all,
    how can we identify the "mouse double click" action?
    MouseListener has methods for only mousePressed,released,clicked (single).
    Thanks in advance..
    Regards
    Sojan

    Hi,
    Thanks it worked ..
    e.getClickCount() value increases if we keep on clicking on the component, is there anythning wrong by interpreting double click as
    "e.getClickCount() >=2 "?
    Regards
    Sojan

  • Capturing Mouse Events On MediaPlayer

    Hi,
    I have created a video conference application based on JMF. In this application I am using MediaPlayer control to play the rtp stream. Now I want to capture Mouse Events like MouseClick and MouseMove. But sorry to say that I am not getting any event on MediaPlayer control. I have tried this on other controls and successful. Can anybody tells me how to capture mouse events on MediaPlayer.
    --ibrar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Mouse Events may only be capture INSIDE the java application frame. SO, if your desktop is not a java component, you will not be able to capture the events.
    However, you could maybe use JNI to use native methods so as to get the location of the mouse...
    vincent

  • How can flex tell if  it's a mouseup event when the user releases the mouse button outside the flex application?

    how can flex tell if it's a mouseup event when the user
    releases the mouse button outside the flex application? Say for
    instance mousedown was done within a 500x500 embedded flex app but
    mouseup is outside or relased on the HTML background. One more
    thing, when we have something draggable, Flex doesn't execute the
    stopDrag() when the user releases the mouse button outside the
    embedded swf or fles app. Pls. help me with this. Thanks!

    I don't think the flex app can tell what happens outside the
    app. But it can detect when it leaves the app, so I have found the
    following line works fine inside initApp():
    this.stage.addEventListener(Event.MOUSE_LEAVE, yourFunction);
    and you have to:
    import flash.display.Stage;
    Doug

  • How can I capture mouse click events on BSP or Web Dynpro ABAP Screen

    hi Guys,
    Currently we have a user inactivity problem,
    the requirement is: if user is clicking on BSP/Web Dynpro ABAP screen, he/she is considered active. so we need an mechanism to capture the mouse click event.
    Using Firebug, we found that this js is in the iframe which contains BSP/web dynpro scrren: /sap/public/bc/ur/nw5/js/languages/urMessageBundle_en.js
    we want to find this js file & put in some javascript code to track user's mouse click, but i cannot find it on server.
    while in ie if we type http://host:port/sap/public/bc/ur/nw5/js/languages/urMessageBundle_en.js
    this file can be downloaded, means this file is there.
    Any one can help on this issue? find the js file or another way to capture the mouse click event.
    Thanks a lot with points!

    Hi  Feng Guo,
                        We can not capture mouse click events on Web Dynpro ABAP Screen . I am not sure about BSP. But as for as I know the portal keep active the iViews until unless mouse clicks happens.
    But for your problem I think you can get solution by setting iView Expiration to some more time period.
    Regards,
    Siva

  • How do you Capture Mouse?

    I'm new at Flex and trying to make a graphics editor for which I need the user to be able to resize the graphs the same way most graphics editors do - with a resize box. So what I'm making now is a class (that extends UIComponent) that have 4 little squares (that extend UIComponent too) at the corners that the user should use as handles to resize something. So I all need to do right now is to make them react properly to mouse inputs: the one at the top right should have the same "x" position as the one at the bottom right if the user is moving the bottom right one and so on. What I do is call startDrag in the MOUSE_DOWN event for each square and then in the MOUSE_MOVE event I move the others squares accordingly. The problem is that the square being dragged moves faster than all the others. If I could just capture mouse and then do all the dragging stuff myself that would make it a lot easier. But it seems that they didn't implement that function so, does anyone know any other possible way to do what I'm trying to do?

    Solved my problem. Here's the code in case is useful for anyone:
    // Make an event listener like this for every mouse event
    public function OnMouseDown(event:MouseEvent):void
         if(event.target is DisplayObject){
              if(!MouseOwner.contains(DisplayObject(event.target))) event.stopPropagation();
         else event.stopPropagation();
    public function CaptureMouse(Element:DisplayObjectContainer):void
        this.addEventListener(MouseEvent.MOUSE_DOWN, OnMouseDown, true);
        // Keep adding listeners for every mouse event
        MouseOwner = Element;

  • How do you customize the toolbar in Windows XP?

    How do you customize the toolbar in Windows XP? When I right click on the menu bar the "Customize..." option is there but it does absolutely nothing.
    Which brings me to the rhetorical question as to why it was necessary to shuffle everything around, was it broken? Did it not work? Since 2006 I've moved my mouse pointer almost instinctively to the left side of the screen, now all of a sudden I have to go right, is there a point?
    This is like supermarkets that as soon as you have figured out where everything is, they shuffle everything around and now you are stuck in mystery shopping. At least they have economic reasons. Meanwhile Firefox seems disposed to make itself look more like Chrome, but hey if I wanted Chrome I'd get it.

    Nope... Thanks, but Safe Mode does not do the trick. Oh sure you can move the buttons around and rearrange things to your liking, unfortunately it does not stay that way once you get out of Safe Mode.
    I guess if you use an XP machine you are doomed to use FF's interpretation of what it should look like, which is ass backwards from what it has been for the past FIVE YEARS!!! Why not? It seems XP users are now the Freddo's of computing.
    Someone should go to you developer's homes move everything around, forks in the basement, beds in the bathroom, TV up in the attic with the mice, dining table outside on the porch, see how you like it.

  • Locking a mouse to within a window?

    What's the best way to lock a mouse within a window?
    I've tried using Java.awt.Robot, but whenever I try to contain it within the window, the mouse movement looks jagged. Essentially, Robot won't act fast enough and the mouse will escape for a split second. Is there a way to make a sort of "hard" boundary" for a mouse?
    The only option that I have yet to play with is to lock & hide the mouse at the middle of the window (with Robot), and translate any mouse movement events onto a "fake" mouse on screen. However, I have my doubts on how well this will translate. Any missing mouse movement events or mistranslations would be pretty unacceptable.
    Edited by: davidliu on Feb 21, 2008 4:14 PM

    The application itself is realtime, with the mouse as the main source of input. The main reason why I want to encode hard boundaries is because of a principle that was taught in class, and something I encounter firsthand because of my use of multiple monitors.
    Fitt's Law:
    http://www.asktog.com/columns/022DesignedToGiveFitts.html
    Essentially, Fitt's Law states that: "The time to acquire a target is a function of the distance to and size of the target." The thing to realize is that by adding hard boundaries, any point that lies on the edge of a window is essentially infinitely deep, because no matter how fast the mouse is going, it'll stop at that edge. I use multiple monitors, and the most annoying thing about them is the fact that I can't swing my mouse straight to the upper-right hand corner to close a window if it was any monitor other than my rightmost one. I now have my monitors jagged, just so that there's a little space that my mouse can "hook" on to.
    There are other times when I'm using a full-screen application, and I'd rather not have the mouse swinging outside that monitor, and into the next. If I accidentally bring up another window that's lying behind it, then this new window will block my view of the application I was trying to see. You have to consider that the program in question is something that would require the full real time attention of the user, not a time when the user would (or could) be checking his e-mail, or other tasks. Essentially, it's lowering the usability of the system as a whole so the usability of the application can increase. You may consider this as somewhat selfish, but the user environment of the project allows for it.
    However, I'd much rather get to the matter at hand and find a solution to my problem though. If there's any qualms about forcing a user to conform to a program's model, just consider me as the only user, and I want it to be that way.
    /edit: The principle I talk about is actually in the link you gave me. You can find it at:
    http://www.joelonsoftware.com/uibook/chapters/fog0000000063.html
    Edited by: davidliu on Feb 25, 2008 11:23 AM

  • How to capture Wnidows(OS) event from Java program

    Hi,
    I am developing one application , in that if the user didn't do any thing in 15 mins,i need to log out from my application(not windows).Here i need to check Java event as weel as windows(OS) events also.Any one knows how to capture the OS events??

    I want to know the status of mouse and keyboard(Windows 2000).If the status of the mosue or keyboard doesn't change from 15min i need to log of the java application.

  • Capture mouse in a component

    May I capture the mouse in a window?
    In a simple application, I want to capture the mouse in the window. That is, when I move the mouse, there are no MouseEvent.MOUSE_MOVED, but MouseEvent.MOUSE_DRAGGED. So I can get the position of the mouse even the mouse position is out of the window. Just like when we press the leftbutton and move it (in this case, you may find you can get the events of the mouse even in the window even the mouse 's position is out of the window )
    In Windows system, the function is SetCapture and ReleaseCapture
    But in Javva, how can I do it?

    I don't think there is a way to set capture. You just have to look for MouseEvent. MOUSE_DRAGGED which will be sent when you start dragging.

  • Color Sampler not working outside my window! Urgent, please help!

    I just installed Photoshop on my Surface Pro 3. I am doing a presentation in a few hours where I will need to be able to demonstrate the use of the Color Sampler outside the window. It doesn't work. It goes up to the edge of the workspace but does not sample beyond that. I've tried using the pen, the trackpad and the mouse. None of them work. If I try to do it on my Windows 8.1 desktop, it works fine. Help!

    Just looked into this and have found a resolution. Always learning new tricks!! So forgive me I was wrong in the first post.
    You CAN do it by clicking within the workspace and then dragging outside so continually holding down then letting go outside the workspace.
    Colour sampling outside Photoshop | Shape Shed
    Hope this helps!

  • Zooming image from mouse position(like in  windows vista photo gallery)

    hello all;
    here's my situation, hope someone can help..
    i wanna Zoom an image, which zoom from my mouse position
    like in windows photo gallery in windows vista
    so i do this..
    g2.translate(iMoux,iMouy);       
            g2.scale(zoom, zoom);       
            g2.translate(-iMoux,-iMouy);       
            g.drawImage(icon.getImage(), iSposx, iSposx, d.width/2-iValue, d.height-iBawah, null);
            g.drawImage(icon2.getImage(), d.width/2, iSposy, d.width/2-iValue, d.height-iBawah, null);the problem come when i move my mouse to the different location (like from top right to bottom left)
    the zoom image displayed in the screen like jump from latest location to new location
    anybody can help me...a clue how to do that?
    thx appreciate your help guys
    mao
    Edited by: KingMao on 31 Mei 08 14:27

    Hi Frank.
    Thanks for the response.
    Agreed, the pertinent question is why can't my colleague edit the JPG exported by Aperture. It's probably also worth pointing out, the same problem occurs with JPGs exported from iPhoto.
    The Windows software usually plays nicely with JPGs by all acounts, just not the ones I send - which I do via eMail or my public space on Mobile Me incidently.
    So, another key question is: all settings being equal (color profile, quality, etc.) are the JPGs as produced by iPhoto and Aperture indistinguishable from those produced by other apps on other platforms - i.e. does the use of JPG enforce a common standard?
    If that is the case, I suspect ours might be a permissions issue.
    According to the Microsoft support page on editing in Windows Live Photo Gallery, the inability to edit a picture is commonly caused by unsupported file type, or read-only attribute set on the file.
    Unfortunately, he and I are not in the same place, and he's not particularly au-fait with this type of problem solving. Hence, before involving him, I'd like to know:
    1. it's possible (i.e. someone else does it), and,
    2. what's involved (at my end and/or his).
    Thanks again,
    PB

  • How to Capture the parameter?

    Hi All,
    I am doing Level based reports which displays table in each level with link to url in specific column. 
    Ex:  1st level -  say business unit as link to url.  clicking on this will open a 2nd level explorer  window which displays table related to that particular business unit. 
    In this level 2 page I should make some different column as my link to url column.  For this I need to check whether it is a 2nd level or not. 
    How to capture this level number?  Can anyone explain ?
    Hope I am clear with my requirement.
    Regards,
    Subashini.

    Hi Subashini,
    As you are using link to url and opening in new window. so you can create a new view.
    means create a new view for each levels. on your
    link to url just make sure that your application will open that view.
    If you want to use just one view. then create diff tables for diff views. to distinguish between levels
    and if your application have too many levels then try tree element. and open corrsponding report in same window alongside of tree or below the tree.

Maybe you are looking for