Change Mouse Pointer Shape

Is there any way to change the shape of the cursor by using applescript?
My script is doing some work wich can require a number of seconds to complete. I would like the user to be informed by changing the shape of the pointer to the standard waiting animation used by OS X.
Thanks in advance

If you are referring to the spinning rainbow wheel, that is not a wait cursor, that is "the application is not responding" indicator. To follow Apple's Human Interface Guidelines, you should use a progress indicator - my preference is the BP Progress Bar.

Similar Messages

  • Mouse pointer shape changing

    Hello....
    I have a panel . on this panel a rectangle is drawn by using 2D graphics... i want to change the mouse cursor when the mouse is in the middle of the rectangle and also change when the mouse is on a side of the rectangle. to show user that when he/she take the mouse pointer at the side of the rectangle then it will be drag mode..please give a example code...thank you

    It sounds like you'll need to use the setCursor method of your JPanel along with a MouseMotionListener to pick up when the cursor is moved over the drawn rectangle.

  • Change mouse pointer over selected text

    I have a JTextArea and i want to change the default mouse pointer to the arrow pointer when the user points to a selected text. Just like the way JCreator works.!
    Thanx

    Try this :
    Cursor textCursor = new Cursor(Cursor.TEXT_CURSOR);
    Cursor arrowCursor = new Cursor(Cursor.DEFAULT_CURSOR );
    textArea.setCursor(textCursor);
    textArea.addMouseMotionListener(new MouseMotionAdapter() {
         public void mouseMoved(MouseEvent e) {
              int location = textArea.viewToModel(e.getPoint());
              if (textArea.getSelectionStart()<=location && location<textArea.getSelectionEnd()) {
                   if (textArea.getCursor() != arrowCursor) {
                        textArea.setCursor(arrowCursor);
              else {
                   if (textArea.getCursor()==arrowCursor) {
                        textArea.setCursor(textCursor);
    });I hope this helps,
    Denis

  • How to change mouse pointer

    I would like enlarge or change the color of the mouse pointer.  Can anyone help

    No, they didn't. I am running 10.7.3.

  • How to change mouse pointer to Arrow?

    When we move the mouse over any component in preview (or in SWF file), mouse pointer changes to u201Chandu201D. Is it possible to keep the mouse pointer to Arrow or any other custom mouse pointer in Xcelsius 2008 SP 4?
    Thanks

    Mouse over cursor is set to ARROW if the component is not selectable
    Eg:pie chard which has no drill down or no furthur selection is enabled then the mouse over by default is ARROW.
    If you have enabled any furthur selection for that component the by default mouseover is HAND .
    This holds good for all the components in Xcelsius (even in sp4) Except for tab set container component where the selection of tabs is displayed with Arrow  symbol.
    New features that sp4 provides is 1)Waterfall chart 2)Alerts are  supported for spreadsheet tables, and for
    combination charts.
    @Sri

  • Changing mouse pointer using setCursor()

    Hi- I've got a single threaded JFrame-based application in which I want to change the mouse pointer to indicate 'busy' when it's doing stuff eg. loading a file. So within my extended JFrame method for handling menu selections I've got:
    public class Layout extends JFrame
        // For items in the main menu
        // (the sub-class contains either a JMenuItem or JCheckBoxMenuItem).
        abstract class MenuItem implements ActionListener
            abstract JMenuItem menuItemAbs(); // get the menu item component
            abstract void handlerAbs(); // perform the menu's action
            // Menu item has been selected.
            public void actionPerformed(ActionEvent e)
                Cursor cursor = Layout.this.getCursor();
                Layout.this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                handlerAbs();
                Layout.this.setCursor(cursor);
            }But the mouse pointer doesn't always change. If handler() just does some processing without user interaction, the pointer does change. But in the case of loading a file, where first the user selects the file using a JFileChooser, it doesn't.
    Is this because JFileChooser does its own setCursor()? But even if it does, presumably it does another setCursor() to restore my WAIT_CURSOR before it returns, so why don't I see the WAIT_CURSOR while the file is loading (which takes seconds)?
    Cheers
    John
    EDIT: BTW running under Linux, Java v6 update 7
    Edited by: matth1j on Nov 12, 2008 2:15 AM

    Ok, thanks - full demo program below.
    When you hit the ok button (just 5 second sleep), the mouse pointer changes to 'busy'. It reverts to normal if you move the pointer off the frame, but goes back to 'busy' if you move it back onto the frame.
    When you hit the bad button (brings up file chooser, then does 5 second sleep), the pointer changes to 'busy' while the pointer is over the frame, and reverts to normal when the pointer is moved off the frame. But if you select a file or cancel the file chooser and move the pointer back into the main frame before the 5 seconds is up, the pointer doesn't go back to 'busy' again. I would expect it to show 'busy' while over the frame until the 5 seconds is up.
    Any ideas?
    package test;
    import java.awt.Cursor;
    import java.awt.EventQueue;
    import java.awt.event.*;
    import javax.swing.*;
    public class Main
        public static void main(String[] args)
            EventQueue.invokeLater(new Runnable()
                public void run()
                    new Test();
    class Test extends JFrame
        public Test()
            super();
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
            JPanel panel = new JPanel();
            panel.add(new Button("ok"));
            panel.add(new Button("bad"));
            add(panel);
            pack();
            repaint();
            setVisible(true);
        class Button extends JButton implements ActionListener
            Button(String text)
                super(text);
                addActionListener(this);
            public void actionPerformed(ActionEvent e)
                Cursor cursor = Test.this.getCursor();
                Test.this.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                if (!e.getActionCommand().equals("ok"))
                    (new JFileChooser()).showOpenDialog(null);
                try
                    Thread.sleep(5000);
                catch (Exception ex)
                    ex.printStackTrace();
                Test.this.setCursor(cursor);
    }Edited by: matth1j on Nov 12, 2008 2:44 AM code tidy
    Edited by: matth1j on Nov 12, 2008 2:45 AM code tidy

  • Changing mouse pointer

    I would like to be able to change my mouse pointer to something
    other that what set_application_property cursor_style can do for
    me. I would like to be able to call a mouse pointer from the
    file system and replace the the pointer in my forms app.
    Thanks in advance for any direction that can be given.
    Roland

    If your Mouse cursor is in a DLL you can do:
    Set_Application_Property(CURSOR_STYLE,'<DLLNAME>cursorname');
    For this to work you have to load the above DLL first using
    ORA_FFI.LOAD_LIBRARY().

  • Change mouse pointer for Assessment Simulation

    Hi there-
    I have an assessment simulation - and I need the users mouse
    pointer to change to a crosshair (I think that's what it's called)
    when the mouse is over a certain area on the screen. Is there
    anyway to do this? I know it can be done in a demonstration for the
    pointer in the demo.
    Lynn

    Authorware allows access to the system's mouse 'library', but
    it also
    allows full Windows File System access too...which could have
    security
    issues. So it's certainly possible...but, agreed, who knows
    whether such
    functionality would be integrated into CP.
    Erik
    CatBandit wrote:
    > Can't be done, Lynn, but what a great idea for a new
    feature!!
    >
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform&product=15&6213=9.[/
    > b]
    >
    > The way I see it, you could select the mouse-pointer
    you want displayed on the
    > user's machine from the mouse-properties dialog. But
    wait! Now that I' said
    > that, it occurs to me that any security program worth a
    hoot might
    > automatically block this, as it requires access to
    Windows system files . . .
    >
    > Well, it's still worth requesting, and I think the
    developers could figure a
    > way around the security problems if there are any. Have
    a great day!
    > .
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - Authorware
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    samples, tips, products, faqs, and links!
    *Search the A'ware newsgroup archives*
    http://groups.google.com/group/macromedia.authorware

  • Change Mouse Pointer Look

    Hi,
    I have a show/hide layers behavior setup on an image - when
    the image is clicked. It works just fine. However, when you hover
    the mouse over the image, the mouse pointer doesn't change to the
    hand, like it would with a link. Is there any way to get the mouse
    pointer to change to the hand when it is hovering over the image?
    Thanks,
    Lynn

    Open the page in DW. Select the image and look at the
    behaviors panel.
    Change the Event from onClick to <A> onClick, using the
    drop-down list of
    events in the behaviors panel.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "L Gamble" <[email protected]> wrote in
    message
    news:e7hifj$6r6$[email protected]..
    > Hi,
    >
    > I have a show/hide layers behavior setup on an image -
    when the image is
    > clicked. It works just fine. However, when you hover the
    mouse over the
    > image, the mouse pointer doesn't change to the hand,
    like it would with a
    > link.
    > Is there any way to get the mouse pointer to change to
    the hand when it is
    > hovering over the image?
    >
    > Thanks,
    > Lynn
    >

  • Lenovo G550 - Keyboard/Mouse/Pointer Issues - PLEASE HELP Tech suppport couldn't.

    I spent over an hour on the phone with Lenovo tech support last week to try to solve this issue and it is not solved. The guy had never heard of it and kept researching how to fix it.  I personally  have this feeling that it's a very very simple issue but I can't figure out how to correct it.  I've changed mouse/pointer settings and it still isn't working.  I love my new laptop in every other way but i'm getting so frustrated with it I'm ready to send it back because of the problem with the mouse/pointer.  So if anyone could help me I'd appreciate it greatly.
    I will be typing and out of nowhere the cursor will move to wherever the mouse is...or it will highlight everything I just typed and delete it.  I've had to type much slower and keep moving the mouse but when i'm working on my projects and typing away and highlighting/editing, I get into the work and it's a pain in the rear when the cursor suddenly moves a paragraph up and I am still typing away and sometimes don't realize it until i've typed another two sentences.  Hence the typing slower.
    Today it deleted discussion posts I had typed up for my online classes before I had hit submit. Causing me to waste another 30 minutes trying to retype what I'd already done.  I was ready to throw this laptop in the garbage.
    I decided to not do that and post in this forum in the hopes that someone will be able to help me.
    Thank you,
    Komal

    @ shelagh
    try to un-install touchpad drivers,restart your computer and check if issue persists.
    and/or try to flash bios update ( for bios update, read readme file first )
    http://consumersupport.lenovo.com/us/en/DriversDownloads/drivers_list.aspx?CategoryID=600154

  • Mouse pointer rather slow

    After changing mouse pointer acceleration in control panel to maximum, mouse pointer is faster, but still rather slow. At least slower, than it is with windows7. In windows7 it´s one move from left to right. In Windows10 I have to move twice. It´s an asus
    notebook with mouse-pad.

    Hi poet-man,
    If you mean the mouse-pad device, I suggest you check if there are any latest driver for it.
    If you upgrade from previous operating system, it is recommended to uninstall the device from device manager restart your PC to check how it works.
    Alex Zhao
    TechNet Community Support

  • Why the mouse pointer in Logic Pro does not change shape during work in OSX 10.9.1?

    I've a MacBook Pro Retina 15-inch Late 2013 and I'm using two external displays. One connected to to the HDMI port (display 1) the other to thunderbolt (display 2). The MacBook display is closed. I’m working with Logic Pro 9.1.8 (32bit) with OSX 10.9.1
    Why the mouse pointer in Logic Pro does not change shape during work???
    It was already difficult with OSX 10.9 but now after upgrading to 10.9.1 it's game over!
    At least before I could select which display use Logic Pro to have all the shape functions of the pointer. Not in both displays, so to be forced to edit in ONLY ONE of the two displays using this workaround: (right click on Logic icon in Dock: Option --> Desktop on Display 1). Now or I select “Option --> All Desktops” or does not work. However, by selecting all displays you say goodbye to Mission Control. This can’t be a solution!!!
    The amazing thing is that Nuendo has no problem while Logic Pro, Apple's native software, it can't!
    With Nuendo it’s indifferent in which display you are working, the shape of the mouse pointer changes shape depending on the requirement in both displays.
    This thing drives me crazy!
    Solutions?
    Here some ideas in other foums:
    http://www.logicprohelp.com/forum/viewtopic.php?f=1&t=86264
    But this aren't really solutions but workarounds. Use Logic in all desktops makes Mission Control useless!!

    I installed all over again by formatting as suggested by the genes of pro application support. Each plug-in, each virtual instrument, a job that lasted 3 days. And as suggested for each new plug-in I proceeded to check the proper functioning of Logic Pro and did each time a back up with Time Machine.
    The Result:
    Logic works as it should ONLY on the primary monitor and ONLY on the first desktop.
    BUT
    Reason and Nuendo dont' have this issue !!
    I believe that Apple developers are thinking only to mobile phones and things like messages or face time.
    And that's not all!
    After a few weeks, perhaps by installing a version of Adobe Acrobat, I say maybe because I'm not sure, logic has stopped working properly. Again problems with the mouse pointer.
    Luckily I had a back up! But now I'm terrified to install new programs. Thanks Apple!

  • Mouse pointer has lost its place in the shapes list

    Suddenly, my mouse pointer exhbits a mismatch of shape and current context.
    Examples:
    On the compose page of ASC, placed in the left or right margin, or anywhere from the to of the screen to the space below the grey bar of buttons that starts with the apple and ends with the search box, the pointer has the expected black arrow shape.
    Hovered over Apple Support Communities, New, Your Stuff, History, Browse, or in the spaces along that line, it changes to a cross with centred dot similar to the drawn shape below:
    Placed in or beside the formatting controls above the compose box, it returns to the expected black arrow shape, whether over the grey area or the cfomatting buttons.
    In the text entry area, whe're back to the cross, very difficult to pick out on the page, especially when it's somewhere in the text.
    The cross remains as I move the pointer down the page. There's a quick flash of the arrow to the left and slightly above the cross as the pointed moves downward across the word Categories, and across the words in the list of categories below, and from there to the bottom of the page.
    The cross gets substituted for other pointer shapes as well—On Google Maps, the cross shows until I press the mouse button to grab the map, then changes to the enpected closed hand when I drag the map in any direction. In Sreet view, I get the arrowm the cross, or an I beam in the circle that indicates where a click will move the viewpoint, or a cross in the circle that indicates the center of a magnified view.
    Questions: What's happening? How do I fix it?
    Comments and suggestions apreciated.
    Regards,
    Barry
    MBP with Retina, mid 2012, 2.3 GHz Core i17, 8 Gb, OS X v10.8.4 (12S55)

    Hi Linc,
    Thanks for the pointer. Neither of the Adobe plug-ins mentioned in the linked discussion are installed on my MBP; in fact the only one installed is the Google Earth We Plug-in.
    In the meantime, the mouse pointer has gone back to behaving normally. The only significant action I can think of is that the MBP was shut down for a little over 10 hours today. I had restarted it a couple of times last night, but had not let it sit for any extended time.
    Still a mystery.
    Regards,
    Barry

  • T43p - Mouse pointer freezes after changing the battery to a new one

    Hello,
    I have bought a new battery for my IBM Thinkpad T43p. In the description of the new battery I have seen that this battery is compatible with T43 series. Battery details are: DC 10.8V 5200mAh/56Wh. Replace: 08K8214.
    My problem is:
    I have ordered a new battery for my Thinkpad T43p but when I turned off  the notebook and replace the old battery with the new one the notebook became strange. I use Windows XP Prof on this computer and when the login screen appeared and during I was typing my user name and password the mouse pointer was freezed and I had to turn off the computer. It was happened within approx 1 minute after the Login screen appeared. The symptom was the same with or without plugged in AC charger. I have tried several times and the same behavior was happened. When I changed back the old battery the computer became normal again without any freezing. The fan was working properly in both cases. The symptom is the same if I change the battery during AC charging and using Windows. 
    I don't have an idea about the reason of it. Can you help me with ideas?
    Thanks in advance,
    Slider

    Pull the battery out and run the machine on AC only. Does it freeze now?
    If it doesn't, the "new" battery needs to be replaced.
    Good luck.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    The answer helped me.But still, what are the settings that I have to change for the behavior of the mouse pointer towards finder? Also the mouse pointer sometimes  doesn't accept my command and start clicking itself.what is the problem and how to fix it?

    If the mouse clicks something on its own then it looks like you have a hardware problem with the trackpad or possibly the battery that is right underneath the trackpad.
    I have read that the battery can swell and that would put pressure on the trackpad.

Maybe you are looking for

  • Adobe cloud has lost connection with the server

    Adobe cloud has lost connection with the server, can't get adobe cloud to work so I can re-install photoshop to fix a corrupted DLL file.

  • Time offset problems with file i/o

    Hello everyone, I'm having a problem with the file i/o VI's. I require my application to save serial data at constant five minute intervals. The problem I'm currently seeing is that on each save to a file a time offset is being added which eventually

  • Convert date/time to Unix epoch

    I have thousands of date time stamps I would like to convert to Unix epoch ten-digit strings. That is, take some thing like: Dec 9, 2005 10:24 AM and convert to 1234567890 (only in the correct unix epoch time) What formula can I use? I've found that

  • Using airplay

    I am away from home, and brought my AppleTV with me. I've properly hooked it up to the TV, now how do I get airplay to work through it? I do it all the time at home, I have things playing on my iPad that I want to project through Apple TV to the regu

  • Choice of web browser for MacBook

    I switched from a 20" iMac to a MacBook. I needed a portable. I noticed that on the smaller screen, the default fonts displayed by Safari were too small in some sites. If I made the text bigger, other sites looked odd because it was too big. The solu