Set mouse position

hi,
i'm not able to set the mouse cursor to a defined position in a picture.ctl when loading the picture. i think it must be possible. i'm new in labview and would thank for help.

"Hello
Just try this Example Vi, You can set the X and Y Position
Regards~
[email protected]
[email protected]
Attachments:
Mouse_Position.zip ‏61 KB

Similar Messages

  • Setting mouse position

    Imagine that I want to move the mouse/cursor 100 pixels to
    the left.
    Properties mouseH and mouseV are read-only, so I don't know
    how to move the mouse with Lingo.
    Any idea?

    > But, if I use Shockwave in a browser, must the user
    install something else?
    Whether it's in Shockwave or not, the end-user will need an
    xtra
    available for you to place the cursor where you want it. The
    only
    difference with Shockwave is that you'll have to choose an
    xtra that is
    marked as SW-safe, has packages available for auto-download,
    and is
    cross-platform. In this case Buddy API won't do, but the
    MoveCursor xtra
    will:
    <
    http://www.director-xtras.com/xtra-move_cursor.html>

  • MAC OS X + stage.fullScreenSourceRect + renderMode set to GPU = problem with mouse position

    When setting stage.fullScreenSourceRect, stage.displayState to StageDisplayState.FULL_SCREEN_INTERACTIVE; and renderMode to GPU, mouse position is read incorrectly. This is not only for mouseX and mouseY position, but also all the mouse interactions with Sprites, Buttons etc are not working correctly.
    Anybody know a solution for this issue?
    Here is the bug reported, but there is no response yet.
    https://bugbase.adobe.com/index.cfm?event=bug&id=3486120
    Greg.

    Bump up.
    Anybody has the same problem and have an idea how to fix it? Or please just check if you have the same problem.. I'm going to submit my game "Amelia and Terror of the Night" (successfully added to iOS store) to MAC App Store but can't do it while this problem appears.
    I am disappointed nobody  even verified the bugs I submitted at  the bugbase.adobe.com for AIR 3.5 and 3.6
    thanks
    Greg

  • With Standard Labview 6.1, is there a way to set (x,y) cursor-mouse position?

    I am working on a project in standard Labview 6.1 that receives images from a webcam. This image array will then be analyzed to determine the position of a black dot on a white background. This dot will then correspond to an (x,y) coordinate point. We will then feed these coordinates into a program that will set the cursor mouse position to this point. However, we are uncertain on how to interface Labview with the computer mouse controls and are in need of assistance.

    If you are simply wanting to set the coordinates of an existing cursor on a LabVIEW graph, then you can do that using Property Nodes. I have attached an example of this which you could take a look at.
    J.R. Allen
    Attachments:
    SetCursor.vi ‏32 KB

  • 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

  • Control position vs mouse position

    I want to create a tooltiptext for example. I have the mouse postion, the buttonposition and the window-position. So if I'm moving the mouse-cursor over the button, a light needs to go on. To find the position of the button in function of the X-axis is no problem, but from the top I can't find. My conclusion --> The "top button position" is not right.
    Attachments:
    delme.vi ‏34 KB

    You didn't include handy\mouse.vi, so we can't see how you're reading the mouse position. Functions that read the mouse position often report it relative to the current window. You then need to add the window position to it.
    FYI: Tooltips are included in LabView 6.x. Instead of just being able to set the description of a control, on the same screen you can set the tooltip text. Just one minor reason of many reasons to upgrade.

  • Bitmap Rotation According to Mouse Position?

    Hi,
    I am working on a 2d computer graphics project, and I need a good function to rotate a Bitmap 360 degree according to my mouse position.
    for example: 

    Hi,
    I am working on a 2d computer graphics project, and I need a good function to rotate a Bitmap 360 degree according to my mouse position.
    for example: 
    Hello,
    To rotate that image, we need to deal with the following tips.
    1. The image size.
    If the area for that image rotated is not big enough, it will just lose some parts of that image.
    Here is a nice code shared in this thread
    http://stackoverflow.com/questions/5199205/how-do-i-rotate-image-then-move-to-the-top-left-0-0-without-cutting-off-the-imag/5200280#5200280.
    private Bitmap RotateImage(Bitmap b, float Angle)
    // The original bitmap needs to be drawn onto a new bitmap which will probably be bigger
    // because the corners of the original will move outside the original rectangle.
    // An easy way (OK slightly 'brute force') is to calculate the new bounding box is to calculate the positions of the
    // corners after rotation and get the difference between the maximum and minimum x and y coordinates.
    float wOver2 = b.Width / 2.0f;
    float hOver2 = b.Height / 2.0f;
    float radians = -(float)(Angle / 180.0 * Math.PI);
    // Get the coordinates of the corners, taking the origin to be the centre of the bitmap.
    PointF[] corners = new PointF[]{
    new PointF(-wOver2, -hOver2),
    new PointF(+wOver2, -hOver2),
    new PointF(+wOver2, +hOver2),
    new PointF(-wOver2, +hOver2)
    for (int i = 0; i < 4; i++)
    PointF p = corners[i];
    PointF newP = new PointF((float)(p.X * Math.Cos(radians) - p.Y * Math.Sin(radians)), (float)(p.X * Math.Sin(radians) + p.Y * Math.Cos(radians)));
    corners[i] = newP;
    // Find the min and max x and y coordinates.
    float minX = corners[0].X;
    float maxX = minX;
    float minY = corners[0].Y;
    float maxY = minY;
    for (int i = 1; i < 4; i++)
    PointF p = corners[i];
    minX = Math.Min(minX, p.X);
    maxX = Math.Max(maxX, p.X);
    minY = Math.Min(minY, p.Y);
    maxY = Math.Max(maxY, p.Y);
    // Get the size of the new bitmap.
    SizeF newSize = new SizeF(maxX - minX, maxY - minY);
    // ...and create it.
    Bitmap returnBitmap = new Bitmap((int)Math.Ceiling(newSize.Width), (int)Math.Ceiling(newSize.Height));
    // Now draw the old bitmap on it.
    using (Graphics g = Graphics.FromImage(returnBitmap))
    g.TranslateTransform(newSize.Width / 2.0f, newSize.Height / 2.0f);
    g.RotateTransform(Angle);
    g.TranslateTransform(-b.Width / 2.0f, -b.Height / 2.0f);
    g.DrawImage(b, 0, 0);
    return returnBitmap;
    2. The location of that control which displays that image.
    If we use a picturebox, and set its sizemode to autosize like the following line, then if you just want to rotate that image to show, and you don't want to that affects the original image, then we need to keep its center point.
    this.pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
    We could add resize event handler after we set image for that picturebox.
            Point pOrign;
            Size sOrign;private void Form1_Load(object sender, EventArgs e)
    this.pictureBox1.SizeMode = PictureBoxSizeMode.AutoSize;
    Image img = Image.FromFile(@"D:\Documents\New folder\New folder\TestImage.PNG");
    this.pictureBox1.Image = img;
    this.pictureBox1.InitialImage = img;
    pOrign = new Point(this.pictureBox1.Left , this.pictureBox1.Top );
    sOrign = new Size(this.pictureBox1.Width, this.pictureBox1.Height);
    this.pictureBox1.BorderStyle = BorderStyle.FixedSingle;
    this.pictureBox1.Resize += pictureBox1_Resize;
    private void pictureBox1_Resize(object sender, EventArgs e)
    this.pictureBox1.Left = this.pOrign.X + (this.sOrign.Width - this.pictureBox1.Width) / 2;
    this.pictureBox1.Top = this.pOrign.Y + (this.sOrign.Height - this.pictureBox1.Height) / 2;
    3. The angle between that center point and your mouse postion.
    We could get that value inside the picturebox's container's mouse_move event.
    Double angleNew ; private void pictureBoxContainer_MouseMove(object sender, MouseEventArgs e)
    angleNew = Math.Atan2(this.pOrign.Y + this.sOrign.Height / 2 - e.Y, this.pOrign.X + this.sOrign.Width/2 - e.X) * 180.0 / Math.PI;
    But when to start rotate that image, it should be your chooice, and you could decide when rotate that image with the following line.
    this.pictureBox1.Image = (Image)RotateImage(new Bitmap(this.pictureBox1.InitialImage), (float)angleNew);
    If you just want to save that change to that image, then you could save that bitmap to file directly.
    Happy new year.
    Regards.
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Cursor to mouse position

    I am wondering if there is a function or way that allows one to record the position of your mouse on the graph.  Currently I'm trying to reposition the X and Y cursors to where I double click on the graph.  I know how to set the position of the cursors using SetPostion().  The problem I'm encountering is that I can record the position mouse using OnMouseUp() but the coordinates do not relate to the scale of my graph.  Does anyone have any suggestions for me?  Thanks.

    R0B3RT,
    You didn't say what programming language you were using in your program, so I can't provide a specific example of doing this.  But if you are using the CWGraph ActiveX Control, you can use KB 11H7EH1J: Using the ComponentWorks Graph Cursor Events.  If you are using one of the .NET controls, let me know which language you are programming in, and I'll be able to help more.
    Josh W.
    National Instruments
    Applications Engineer
    Josh W.
    Certified TestStand Architect
    Formerly blue

  • Rotate matrix by mouse position.

    Hey guys I have been banging my head against this problem for the past few hours.  I have a rectangle object created, I want the rectangle's rotation to follow my mouse cursor. ( I am easily able to do this).  Where things get hard is that I want the rectangle to rotate around it's bottom right corner, to do this I've found that I need to use a matrix transformation.  At this point I am able to have my rectangle rotate around the bottom right point, but I cannot figure out how to have it follow my mouse cursor as well while rotating.  The reason being that with a matrix you can only tell it a amount of radians to rotate (matrix.rotate) rather than just being able to set its current rotation.... Here is my code
    var point:Point=new Point(myRectangle.x+myRectangle.width/2, myRectangle.y+myRectangle.height/2);
    function rotateObject( event:Event ):void
              var m:Matrix=myRectangle.transform.matrix;
                                  m.tx -= point.x;
                                  m.ty -= point.y;
                                  m.rotate (45*(Math.PI/180));
                                  m.tx += point.x;
                                  m.ty += point.y;
                                  myRectangle.transform.matrix=m;
    addEventListener( Event.ENTER_FRAME, rotateObject);
    So with the current code it is constantly rotating around the bottom right corner, I have tried changing the "45" to "Math.atan(mouseX/mouseY), but again it seems that would only work if i could set the rotation of the matrix to that rather than telling it how much to rotate by....
    Any thoughts or ideas would be much appreciated, thanks!

    can you not calculate the new rotation based on the mouse position and the rotate by the difference with the current rotation on your rectangle?
    function rotateObject( event:Event ):void
              var newRot:Number = Math.atan(mouseX/mouseY);
              var rotationDelta:Number = myRectangle.rotation - newRotation
              var m:Matrix=myRectangle.transform.matrix;
                                  m.tx -= point.x;
                                  m.ty -= point.y;
                                  m.rotate (rotationDelta*(Math.PI/180));
                                  m.tx += point.x;
                                  m.ty += point.y;
                                  myRectangle.transform.matrix=m;

  • How to set mouse listener for title bar of JFrame ?

    Hi, all
    How to we can set mouse listener for title bar of JFrame ?
    Please help

    Again, why did you not state this in your original
    question? Do we have to ask you every time what your
    actual requirement is?
    As I said in your last posting, if you don't give us
    the reuqirement in you question we can't help you.
    Sometimes your solution may be on the right track
    sometimes it isn't. We waste time guessing what your
    are trying to do if you don't give us the
    requirement.
    I gave you the answer in your other posting on this
    topic. The AWTEventListener can listen to events
    other than MouseEvents.
    The Swing tutorial has a list of most of the events.
    Pick the events you want to listen for:
    http://java.sun.com/docs/books/tutorial/uiswing/events
    /handling.htmlthe first, i am sory because my requirement not clear so that it wasted everybody time.
    The second, thank for your answer
    The third, AWTEvenListener do not support listener event on title bar
    but ComponentListener can know when we can change frame position.
    please see below that ComponentListener can handle action:
    public void componentHidden(ComponentEvent e) {
            displayMessage(e.getComponent().getClass().getName() + " --- Hidden");
        public void componentMoved(ComponentEvent e) {
            displayMessage(e.getComponent().getClass().getName() + " --- Moved");
        public void componentResized(ComponentEvent e) {
            displayMessage(e.getComponent().getClass().getName() + " --- Resized ");           
        public void componentShown(ComponentEvent e) {
            displayMessage(e.getComponent().getClass().getName() + " --- Shown");
        }Thanks for all supported your knowledge, you are great !

  • Mouse position based alpha

    The script is little buggy and cant seem to figure it out.
    When I mouse over set boundary of x,y, mouse position triggers
    easing alpha from 0 to 100%.
    Following bugs seems to happen:
    - On continuous mouse over with in that position, it fades
    away on its own and ceases to work until i go in and out of that
    area repeatedly.
    - On mouse out, there is a pause that depends on how long I
    have I have it mouse over.
    - Sometimes, after mouse over, it doesnt fade away on mouse
    out.
    I have made the links absolute so i could control multiple
    movie. And with in these movies, there are buttons that has its own
    separate actions (loadmovie).
    take a look at the script and let me know of any suggestions.
    Thank you
    speed = 30;
    testmovie.onEnterFrame = function() {
    if (_root._xmouse>20 && _root._xmouse<150
    && _root._ymouse>290 && _root._ymouse<327) {
    testmovie._alpha += speed;
    } else if (testmovie._alpha>0) {
    testmovie._alpha -= speed;
    };

    Try this, you keep adding to the alpha value on your mouse
    over even when it is past 100.
    testmovie.onEnterFrame = function() {
    if (_root._xmouse>20 && _root._xmouse<150
    && _root._ymouse>290 && _root._ymouse<327) {
    if(testmovie._alpha< 100){
    if((testmovie._alpha + speed) > 100){
    testmovie._alpha = 100;
    } else {
    testmovie._alpha += speed;
    } else if (testmovie._alpha>0) {
    testmovie._alpha -= speed;
    };

  • Quartz Composer Photo Booth initialize mouse position or number slider

    I am new to this forum so I hope this is the correct place to ask this question.
    I am trying to develop a quartz composition for a Photo Booth effect that uses the mouse position or the numeric slider (see the 'Dent' effect in Photo Booth). I have been able to access data created by the mouse or the slider, my problem is that Photo Booth seems to 'reset' the mouse position or slider position to .5 (in a range from 0 to 1) when you first select the effect. I need to figure out if there is away to set the default from .5 to 0.
    An example would be if I selected an effect in Photo Booth, I want to have the slider appear all the way to the left (0) as apposed to being in the middle (.5)
    Thanks for any help.

    I am new to this forum so I hope this is the correct place to ask this question.
    I am trying to develop a quartz composition for a Photo Booth effect that uses the mouse position or the numeric slider (see the 'Dent' effect in Photo Booth). I have been able to access data created by the mouse or the slider, my problem is that Photo Booth seems to 'reset' the mouse position or slider position to .5 (in a range from 0 to 1) when you first select the effect. I need to figure out if there is away to set the default from .5 to 0.
    An example would be if I selected an effect in Photo Booth, I want to have the slider appear all the way to the left (0) as apposed to being in the middle (.5)
    Thanks for any help.

  • How to set the position in SAP Script

    Hi Professionals,
    Can anyone tell me that How can I set the position of an bitmap Image (after inserting) in SAP Script ?
    by default position is in Left, I need to align it in center or somewhere else.
    Anybody knows, kindly reply!
    Thanks
    Devinder

    Hi,
    But Can we assign a window under another window. Because I want to insert a bmp picture on particular position.
    example:- there is a digital signature and wanted to insert upon a name.
    So, there is a text (which is customer name) and digital signature (in bmp picture format) upon it.
    Thanks
    Devinder

  • System not sensing mouse position

    Starting today, my computer (iMac G5 PPC) no longer senses the position of my mouse pointer. For instance:
    - The dock doesn't magnify when the mouse is in it
    - None of the corners activate things like screensaver, expose, desktop
    - When I select a menu in the menu bar, moving the mouse over another menu item doesn't open that menu.
    In other words, OSX simply has no clue where my mouse pointer is located as I move it for all those neat automatic things. Yet, I can still use the mouse to click on items to make them work, then OSX knows where the mouse is.
    I've rebooted several times to no effect, but did notice something. As apps start up, the instant a window opens, OSX will sense the mouse position for that brief moment. For example, putting the mouse over the dock doesn't magnify, but when an app window appears, the dock will magnify that very instance. Moving the mouse out of the dock area doesn't unmagnify the dock, it's stuck in that state until either another window opens, causing OSX to sense the new position, or I click any mouse button which all gets OSX's attention and senses the mouse position.
    The pointer never changes when I'm over things like Links.
    Strange stuff. The mouse moves fine, it's just not being detected as it moves.
    Now, yesterday I installed a new ScanSnap scanner with the ScanSnap Manager software and Acrobat Standard ver. 7. But the mouse didn't have this behavior yesterday, or even this morning. This strange problem just appeared out of the blue mid-day today.
    I've since used Disk Utility and Onyx, and re-installed the 10.4.9 update. I switched to another user account, no difference, so it's definitely system wide.
    This doesn't stop me from using my iMac, but I just don't know how to fix this mouse issue besides a OSX re-install.

    Ok everybody, I finally got proper behavior, it's just too bad I'm not sure of the procedure.
    When I go to bed I usually run the mouse pointer to the upper left corner to activate the screensaver. Of course it didn't work. But I also knew that clicking a button causes the mouse to be sensed, so I was pushing some of the buttons while in the corner to see if I could get the screensaver going.
    Well, after doing this, everything is back to normal operation again. So, I fixed it totally by accident. Makes me wonder if there's some features that are turned on and off somehow by doing whatever it was I did up in that corner.
    Just so you know, I use a Logitech Cordless Optical Trackman. I swapped to the original Apple corded mouse but that made no difference.
    I never had a chance to try the suggestions since I just read them before posting this.
    Anyway, I hope I don't do again whatever it was that caused the behavior, but I am going to store this info in DEVONthink just in case something like this happens again.
    Anyway, it would still be interesting if someone could shed some light on this fix I accidently found. Perhaps some hidden capabilities/features? Or just dumb luck?

  • I need to set the position of components on a page that contains a MenuBar,

    I need to set the position of components on a page that contains a MenuBar, but MenuBar does not provide a getPreferred size method.
    How can I get the MenuBar's size in AWT?
    Thanks.

    A menubar is not a general component that is added to a frame like any another. It is the specific responsibility of the setMenuBar/setJMenuBar methods to deal with this.

Maybe you are looking for

  • Unable to open message. Format not supported.

    This problem has already  been discussed here however I can provide some more detailed information. Our company runs a network of automatic telemetry stations. The stations send short messages containing some data to the users. Even though the messag

  • Iphone Sync deleted all contacts on google, Mac Address Book and Itunes

    I have my phone synced to my google contacts. I did a sync trying to sync itunes, google and my address book and now everything has been deleted. I created a back up a month ago but when I do a restore from back up, it still does not give me my conta

  • Transport Error while moving BI objects to quality

    Hi All, I have the followinng landscape. Source system :- Dev ECC 100(config) and Dev ECC 200 (data is present here). Since for my BI implementation, I need data. I have created requests i.e for activating datasources in Dev ECC100 and then copied th

  • My brandnew earpod's controller doesn't work on my ipod touch.

    So 3 days ago I bought earpods, when i got home and tried them on the controller didn't work so today I went to exchange them but the controller still doesn't work. I tried them on my ipad 2 and the controller works fine. Is there a way to install th

  • Sun Ray error when connecting to Oracle VDI - No Kiosk Sessions Available

    When the Sun Ray DTUs go to connect to the Oracle VDI cluster at times they will throw the error "Error starting Kiosk session: No Kiosk accounts configured." We have tried going through the steps to confirm that the Kiosk sessions are configured on