Change mouse position

Hello
I´d like to know if it´s possible to change the position of the mouse pointer.
I mean that with two numerical controls (x,y) you can change the
position of the mouse pointer without moving the mouse, of course.
Thank you.

You can find a sample VI in this thread.
Ah, the power of searching.

Similar Messages

  • How to change mouse position

    i wan to change my mouse coordinate
    to x->0, y ->0, possible?

    The only way to do it is to move the mouse to those coordinates.  mouseX/mouseY are read-only properties.

  • 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?

  • Hwo to "track the mouse position"

    I m a java newbie, and need to write a small program to track the mouse position.
    basically, it opens a small window, and tell you the current mouse x, y coordinate. when mouse moves, hte x, y changes...
    by the way, how can i compile it to .exe file, after i finished coding.
    i try this way, but so many errors.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    public class mouseWin {
    public static void main(String[] args)
              protected int last_x=0, last_y=0;
              mouseMoved(MouseEvent e);
    JFrame frame = new JFrame("Mike's Mouse");
    JLabel X = new JLabel("x: " + last_x + "y: " + last_y);
    frame.getContentPane().add(X);
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
         public mouseMoved(mouseEvent e)
              last_x = e.getx();
              last_y = e.gety();

    please help.
    i rewrite the code, but still cannot get it work
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.EventListener;
    public class mouseWin implements MouseMotionListener
    public static void main(String[] args)
                   int last_x;
                   int last_y;
                   last_x = 0;
                   last_y = 0;
                   JFrame frame = new JFrame("Mike's Mouse");
                   JLabel X = new JLabel("x: " + last_x + "y: " + last_y);
              frame.getContentPane().add(X);
                   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   frame.pack();
                   frame.setVisible(true);
         public void mouseMoved(MouseEvent e)
              last_x = e.getx();
              last_y = e.gety();
              JLabel X = new JLabel("x: " + last_x + "y: " + last_y);
    }

  • Load frames conform mouse position

    Hi.
    Look this site:
    www.perpendicular.tk
    This site use javascript to show image by image. It is not a 3D model, only images are showed one by one in relation position mouse.
    In actionscript, how Can I make this?
    I think that I need start putting the images in frames. After, Stop(). When Mouse clicked, I need to compare with the last position and verify the direction, if mouse direction is left ou right and gtonextframe.
    But how can I make this accelerate system. Look in site that the image are load more fast is mouse moviment is fast...
    Thanks and sorry for my english...

    Here, I have the side that my model is rotated, left or right and get the speed of mouse is moved. Speed like 5000 is vary fast. So in interval, I need to create a factor that go to increment the time until == 500 when the movieclip is total stop. If speed iguals 5000, so I start interval witth 10 miliseconds and increment to 15, 27,35 and so...But for this, I need create a factor, to multiply the 10 miliseconds and get the value to the next times...
    Realy, sorry my english, I try but I imagine the dificult to understanding that I write...
    var _oX:Number = stage.mouseX;//last mouse x position
    var _oY:Number = stage.mouseY;//last mouse y position
    var _velX:Number = 0;//velocity x per second
    var _velY:Number = 0;//velocity y per second
    var _speed:Number = 0;//change in position per second
    var _mouseTimer:Timer = new Timer(50,0);
    _mouseTimer.addEventListener( TimerEvent.TIMER, updateCurrentMouseVelocity);
    _mouseTimer.start();
    function updateCurrentMouseVelocity(e:TimerEvent):void
        var nX:Number = stage.mouseX;
        var nY:Number = stage.mouseY;
        var dx:Number = nX - _oX;
        var dy:Number = nY - _oY;
        _oX = nX;
        _oY = nY;
        _velX = dx * 1000 / _mouseTimer.delay;//per second
        _velY = dy * 1000 / _mouseTimer.delay;//per second
        _speed = Math.sqrt( _velX * _velX + _velY * _velY );
    trace(_velX);
    //desascelarating function
    var teste:Number = 0;
    //teste = setInterval(someFunction, (100));
    var sfunc_i:Number = 0;
    var timer:Number = 100
    function someFunction() {
    sfunc_i++;
        clearInterval(teste);
        teste = setInterval(someFunction, (timer));
    timer = timer + 100;
    mc.nextFrame();
    if (timer == 500){
       clearInterval(teste);
    this.addEventListener(MouseEvent.MOUSE_DOWN,mouseD);
    this.addEventListener(MouseEvent.MOUSE_UP,mouseU);
    this.addEventListener(MouseEvent.MOUSE_MOVE,mouseM);
    var factor = Number;
    var xmouse = 0;
    var initialPnt;
    var key;
    var keyAnt = 0;
    var actualFrame = 0;
    function on_enter(event:Event):void{
    if (testa == true){
        if(xmouse == 0){
          xmouse = mouseX;
        }else{
        if(xmouse > mouseX){
         trace("left");
         xmouse = mouseX;
         teste = setInterval(someFunction, (_velX));
        }else if(xmouse < mouseX){
         trace("right");
         xmouse = mouseX;
    var testa = false;
    function mouseD(e:MouseEvent):void{
    testa = true;
    function mouseU(e:MouseEvent):void{
    testa = false;
    function mouseM(e:MouseEvent):void{

  • How do you change the position of email sender so that it's on the left (sender[from], subject and date received)

    How do you change the position of email sender so that it's on the left (sender[from], subject and date received)

    In the Thread Pane where your messages are listed?
    You see that bar with the labels "From", "Subject", "Date" and so on? Well, they are buttons. You can click on them to sort your messages. You can also drag them with the mouse left and right to reposition them, and you can drag their ends to change the column widths.
    These are standard computer actions; you can do all of this in Windows Explorer ("My Computer") too.
    In Thunderbird, a right-click on any of these buttons will reveal a pop-up menu where you can select and deselect the columns to control what is shown.
    More here: http://www.ramsden.org.uk/8_How_to_sort.html

  • [svn:fx-4.x] 15097: Changing the position of drag proxy

    Revision: 15097
    Revision: 15097
    Author:   [email protected]
    Date:     2010-03-29 06:22:57 -0700 (Mon, 29 Mar 2010)
    Log Message:
    Changing the position of drag proxy
    QE notes:
    Doc notes:
    Bugs: FLEXDMV-2365 ( When layoutDirection is 'rtl', image of the chart item which is being dragged is seen away from mouse pointer)
    Reviewer:
    Tests run: checkintests
    Is noteworthy for integration:
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FLEXDMV-2365
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/datavisualization/src/mx/charts/chartClasses/Ch artBase.as
        flex/sdk/branches/4.x/frameworks/projects/datavisualization/src/mx/charts/chartClasses/Ch artItemDragProxy.as

    MoonSwan wrote:I've never heard of a validating editor but I was recently wondering what exists that could help me.  Aside from emacs, what should I search for to find one of these validating editors?
    You can use whatever tool you prefer - for someone already using emacs, emacs is a natural choice. Simple, easy to use online tools exist e.g. http://schneegans.de/sv/
    Just upload the file in question ('Validate by file upload' option) and click 'Validate':
    The '=' character cannot be included in a name. (723:10)
    <Terminal="Terminal">
    ^
    Googling 'xml validation' should give you some more tools / services if this one is not good enough.

  • 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.

  • Change Mouse Cursor Inside JTextPane

    Hello Everyone,
    I am trying to change the mouse cursor of a specific text of a JTextPane to:
    setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));This specific text is a hyperlink which its color is blue and it is underlined, so I want to have the mouse cursor changed to make clearer that you can click on it.
    I thought about trying to track the mouse position inside the JTextPane until it reachs the text position but I am not aware of any class that provides this feature. Does anyone know or have another ideia?
    Any help is appreciated,
    Thanks in advance
    Edited by: ZeroTodd on Aug 10, 2010 6:26 AM

    This specific text is a hyperlink which its color is blue and it is underlined, so I want to have the mouse cursor changed to make clearer that you can click on it.That's the default behavior (in the default Metal LaF, at least) when you setEditable(false). And IMO it doesn't make much sense to change the cursor or allow hyperlink navigation when the text pane is editable.
    db

  • 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;

  • Interesting way to detect array index from mouse position

    Ever programmed something and then been surprised it works? This was the first time for me. Wrote a bit of code with the intention of identifying the array index clicked from the mouse position for use in a 'mouse down?' event and it worked first time. Then I went back and realised I had been half asleep and it doesn't even use the mouse position- but as if by magic it works!
    VI snippet below. For some reason LabVIEW modifies the array reference when I create a snippet, so you'll need to change that array reference for one pointing to array 2. <= Anyone able to raise a CAR against this?

    In the past I've used this VI.  I think it is quite similar to yours and I could probably simplify based on what you have done.  One thing my VI does is it tries to take into account the scrollbar size if one is being shown for the array.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
    Attachments:
    Coordinates to Index.vi ‏20 KB

  • Mouse position gets reset randomly from slide to slide

    Hi,
    I have a software demo that I'm working on (Captivate 5). From slide to slide, usually Captivate uses the start position of the mouse based on the end position of the mouse on the previous slide. But sometimes it seems to lose that position, and starts the mouse at the top left of the screen. Is there any way to change that starting position, or fix this little bug?
    Thanks,
    Joel

    I'm having a similar problem.  I've found that my mouse position changes to top left on all slides immediately following a FMR slide.  I've tried to manually reposition the mouse origin by drag-and-drop and right-click/align to..., but neither work.
    I've installed the 12/10 patch.
    Any suggestions?
    Thanks.

  • How to Change the position of Column in ALV report

    Hi Follks,
        Is is possible to change the position of column in ALV report?.If yes then how?
        Basically my requirement is, that user want afacility where , he should be able to change the position
        of column aftre he runs the report.
        Eg: After running the report , user felt that column 5 should be at position 2 , in that case he should   
               be able to drag column 5 at position 2 and vice versa.
        Please help me, how to solve this issue.
        Note : I am using NW 7.0 SP 9
        Regards
        PG
    Edited by: PG on Apr 13, 2009 11:10 AM

    HI PG,
    do below whie filling the filed catlog
    wa_fieldcat-fieldname        = 'Field1".
    wa_fieldcat-COL_POS = '1',
    append wa_fieldcat to it_fieldcat.
    wa_fieldcat-fieldname         = 'Field2".
    wa_fieldcat-COL_POS = '2',
    wa_fieldcat-fieldname         = 'Field3".
    wa_fieldcat-COL_POS = '3',
    Thanks!

  • Is it possible to change the position of beining of text in a standard report

    Hi,
         I am wondering wether it is possible to change the position of the test (the starting point) in a standard report. I would like to print a label with different texts at different positions. If its not possible in a standard report is there any other way to do it.
    Thank you,
    Mudda.

    Hi Mudda, I don't see any way myself to set any particular starting position for your text. It looks like the best way to emulate this behavior would be to add a new line with lots of tab characters or spaces to place your new text at a specific offset from the left. You can also use Append Table to Report and wire in a 2D string array with only a few positions filled in with your various text labels as shown below. This will space text labels pretty well across the page. Try it out and see if it works for you. You could be more clever and build the 2D array programmatically if you wanted more control over position.
    Message Edited by Jarrod S. on 06-02-2006 05:37 PM
    Jarrod S.
    National Instruments
    Attachments:
    Set_Report_Position.JPG ‏69 KB

  • Change of Position in MSS with Process and Forms

    Hi,
    I'm trying to create authorizations for a change of position in Process and Forms, but every time that I choose a new position to the employee I get the error, No authorization, with this details:
    No authorization
    Message no. 5A277
    Diagnosis
    You are not authorized to perform this activity.
    System Response
    The system cancels the activity you have tried to perform.
    Procedure
    If necessary, you can maintain missing authorizations in Customizing. Please remember that both the standard authorizations and the structural authorizations are checked.
    I have managed to change the position and create positions in SAP with t-code PPOME, but in the MSS Portal it doesn't work.
    I use authorization with context ( S_ORIGINCON ) with a FM in the structural profile that returns my objects ( O, S, P ). I also have personnel planning authorization ( PLOG ) for the returned objects.
    Any help to overcome this problem will be greatly appreciated.
    Regards,
    Diogo Silva.

    Hi there,
    We stop using SAP code to manipulate the infotype 0001, and started using our own code throw generic services I guess (Not my part of the project).
    The problem was that in a change of position for a new created position or even for an existing position there was a need for access to the default position OBJID='99999999'. That's why when you give authorization for object OTYPE=' ' and OBJID = ' ' you will not get an error, because it gives authorization for all objects, witch defeats the purpose of security.
    If you debug the functions used by the portal (MSS or ESS) you will see that in some FM on the call stack there is passed a flag that controls wether or not there is a authorization check for that default position.
    Basically ww stop using the SAP code, and started calling this FM (BAPI, etc) ourselves, and them we manipulated that flag so that we could circumvent the error.
    I hope it was clear, sorry if it was not, truth be told it was a long time since I finish that project.
    If you need anymore help just let me know.
    Regards,
    Diogo Silva.

Maybe you are looking for