Applescript help pt 2...Mouse Clicks & Click Lock?

Hi all,
Second challenge for me, it would be great to be able to use voice commands for mouse clicks. Most specifically I would like to be able to do a click-lock so that I can draw with a trackball and not have to hold down the button. It would be nice as well to be able to single and double click...
I tried to figure it out based on the help I got in the last thread but could use a nudge in the right direction.
Thanks!!!

I suggest you take a look at this it has an example of the Systems Events 'click'
I actually had seen this but it ties the click event to a specific button. When I tried to program just a click event w/o a button or target specified it did not seem to work.
I would need something like "click current mouse position"....
You should also re-think the click and hold idea. A click/hold/drag/release, is really just a select/copy/paste if done with menus.
What I need to do click lock for is to control drawing in Adobe Illustrator. I need to be able to use alternative tools to the Wacom Pen, because no matter how good a tool is if you use it enough hours you will get hand fatigue. I want to be able to draw part of the time with a large trackball, and in order to make that work the mouse button has to be held down continuously while drawing.
Message was edited by: V Silly

Similar Messages

  • Hello, I need help with my macbook pro. It looks like I cannot install anything anymore. Everytime I try to install a new software, use the migration assistant or click the lock to make changes, it simply does not react.

    Hello, I need help with my macbook pro.
    It looks like I cannot install anything anymore. Everytime I try to install a new software, I simply get stuck during the installation type process. I put in my password, it does accept it, but it does not go any further.
    I tried to reset the password, put no password, repair the permissions, the disk but nothing will do. I nearly got stuck with the log in screen but finally succeeded in disabling it.
    So I thought I might try to create a new account but I cannot click the lock to make changes. It simply refuses to react.
    I am now thinking about using the migration assistant to save all my settings, data and so fourth, but again I get stuck when I have to type in my password. It accepts it but nothing happens...
    I guess it has something to do with the authorization process, but can't find anything on the internet about it... Can you help me out?
    I am running Lion 10.7.3.
    Regards,
    Nicolas.
    (I apologize if any grammatical/structural mistakes were to be found, english is not my mother-tongue. )

    You probably won't like this suggestion, but I suggest you reinstall Lion.
    First, backup your system. Next, reboot your system, press/hold the COMMAND-R keys to boot into the Recovery HD. Select 'Reinstall Mac OS X'. If you purchased Lion as an upgrade to Snow Leopard, the reinstall process will install Lion 10.7.3. If your system came preinstalled with Lion, you might still get Lion 10.7.2. Both installs are a total install of the OS. None of your apps or data will be impacted. Just the OS.

  • Firefox will not let me use the mouse to click on a product so i am having to use the tab key. Please help me to be able to use my mouse to click the box.

    Firefox will not let me use the mouse to click on a product so i am having to use the tab key. Please help me to be able to use my mouse to click the box.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • My keyboard Clicks and Lock click has suddenly disappeared. Help?

    I woke up today and my KeyBoard Clicks and Lock sound is GONE on my iphone 5. I checked in setting and everything states it is ON, but the clicks are gone.  Help??

    try this
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for device to restart (no data will be lost).

  • Clicking the lock does not work HELP

    clicking the lock at any kind of program does not work at all, not working in system pref,
    not working at ''get info'' window, not working in any other kind of lock, i tried defragging via idefrag but that couldn't work because it needed a lock to be opened as well, i can't move my files to some folders, getting the ''The operation can’t be completed because an unexpected error occurred (error code 100022).''
    plus when i log out, cannot log in because when i type my password it accepts it but then nothing happens, i had a root account as well but i can't enter it and can't create again because of the lock, but when i log in with guest account(no pass required) i can make changes via clicking the lock and filling in admin username and password in system preferences. and i created a new admin account in guest account by filling admin info for authorization in system preferences > users&groups , set no password, logged out but could not log into that account as well. my system is set to login to my account when the system starts. so thats how i can use the computer

    Back up all data if you haven’t already done so. There are ways to back up, even if you can’t log in. Before proceeding, you must be sure you can restore everything to the state it’s in now. If you’re not sure you can do that, STOP.
    Briefly, you need to delete the following file:
    /var/audit/current
    If you already know how to do that, you can skip the rest of this message. Do it, and try again to log in.
    Step 1
    Boot in single-user mode by holding down the key combination command-S at the startup chime. If you’re using an external USB keyboard, it must be plugged directly into a built-in port on the Mac, not into a hub. Release the keys when you see a black screen with scrolling white text. In this mode, there’s no graphical interface; just a command line. Initially, you can’t make any changes to files.
    Step 2
    When the text stops scrolling, and you see a line ending in a pound sign (“#”), type the following command:
    rm /var/audit/current
    You must type the command exactly as given. If you don’t feel able to do that, STOP. At this stage, no harm will be done if you make a mistake, but later, it will be.
    Press the return key. You’ll get an error message about a “read-only filesystem” below what you entered. There must be no other error message. If there is, try again until you get it right. You’ll continue to get the read-only error.
    You might get the error “No such file or directory,” even if you entered the command correctly. If you’re sure that’s the case, stop and post again.
    Step 3
    Once you’ve taken steps 2, and received the expected error messages, enter the following command:
    mount -uw /
    Again, you must get it exactly right. This time, there should be no output at all. If there is, you mistyped the command, or something else is wrong.
    Step 4
    When you’ve taken step 3 with no error message, press the up-arrow key until the command from step 2 (rm …) reappears. If you got everything right on the first try, you’ll need to press the key twice. Make sure the command is correct, then press return again. There should be no output. If there is any, make a note of it and post a reply.
    Step 5
    Enter the command:
    exit
    Press return. The text will start scrolling again, and then the system will reboot. Try again to log in.
    Credit for this solution is due to ASC user AnthonyTW.

  • Click the lock to make changes is not working. Lion 10.7.2

    I cannot make any preferences' changes that require clicking on the lock. When I try to click on the lock it simply does nothing and remains locked. I've tried doing a permission repair using disk utility and I cannot create another admin account because that requires opening the lock in Users&Groups. Also, when I login into root, then the lock is also locked.
    The problem began when I updated to Lion.
    I've had no luck finding a solution in forums.

    i have the same issue,
    summary : at mine clicking the lock at any kind of program does not work at all, not working in system pref,
    not working at ''get info'' window, not working in any other kind of lock, i tried defragging via idefrag but that couldn't work because it needed a lock to be opened as well, i can't move my files to some folders, getting the ''The operation can’t be completed because an unexpected error occurred (error code 100022).''
    plus when i log out, cannot log in because when i type my password it accepts it but then nothing happens, i had a root account as well but i can't enter it and can't create again because of the lock, but when i log in with guest account(no pass required) i can make changes via clicking the lock and filling in admin username and password in system preferences. and i created a new admin account in guest account by filling admin info for authorization in system preferences > users&groups , set no password, logged out but could not log into that account as well. my system is set to login to my account when the system starts.
    so this is what i get with the clean display in console, opening system pref, then clicking users&groups, then clicking the lock. this is system.log
    Jun  6 04:46:06 idiyot System Preferences[4902]: kCGErrorIllegalArgument: CGSDeviceCreate: Invalid window
    Jun  6 04:46:06 idiyot System Preferences[4902]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
    Jun  6 04:46:06 idiyot System Preferences[4902]: Failed to create window context device
    Jun  6 04:46:06 idiyot System Preferences[4902]: CGWindowContextCreate: failed to create window context delegate.
    Jun  6 04:46:06 idiyot [0x0-0x90090].com.apple.systempreferences[4902]: Jun  6 04:46:06 idiyot.local System Preferences[4902] <Error>: Failed to create window context device
    Jun  6 04:46:06 idiyot [0x0-0x90090].com.apple.systempreferences[4902]: Jun  6 04:46:06 idiyot.local System Preferences[4902] <Error>: CGWindowContextCreate: failed to create window context delegate.
    Jun  6 04:46:06 idiyot System Preferences[4902]: _initWithWindowNumber: error creating graphics ctxt object for ctxt:0x16bdb, window:0x0
    Jun  6 04:46:06 idiyot System Preferences[4902]: CGPixelAccessLock failed!
    Jun  6 04:46:07 idiyot System Preferences[4902]: Error loading /Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin/Contents/MacOS/TASCAM_US 122L_US144:  dlopen(/Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin/Contents/MacOS/TA SCAM_US122L_US144, 262): no suitable image found.  Did find:
                        /Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin/Contents/MacOS/TASCAM_US 122L_US144: no matching architecture in universal wrapper
    Jun  6 04:46:07 idiyot System Preferences[4902]: Cannot find function pointer CreateAudio for factory DB8AEA2A-E42F-11DA-B71D-000A95B009DC in CFBundle/CFPlugIn 0x400b38f00 </Library/Audio/Plug-Ins/HAL/TASCAM_US122L_US144.plugin> (bundle, not loaded)
    then after, i do the same with var/log/secure.log
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in od_record_check_pwpolicy(): retval: 0
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in od_record_attribute_create_cfstring(): returned 2 attributes for dsAttrTypeStandard:AuthenticationAuthority
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Establishing credentials
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Got user: alicankaralar
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Context initialised
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Got euid, egid: 0 0
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done getpwnam()
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done setegid() & seteuid()
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): pam_sm_setcred: krb5 user alicankaralar doesn't have a principal
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done cleanup3
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done seteuid() & setegid()
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): Done cleanup4
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): pam_sm_setcred: ntlm
    Jun  6 04:48:29 idiyot authorizationhost[5064]: in pam_sm_setcred(): pam_sm_setcred: no domain found skipping
    Jun  6 04:48:29 idiyot com.apple.SecurityServer[29]: UID 501 authenticated as user alicankaralar (UID 501) for right 'system.preferences.accounts'
    i tried repairing disk, permissions, both in system and recovery volume, and i just upgraded to 10.7.4, but the problem was present in 10.7.3, i noticed it two days ago and i just upgraded hoping that would solve the problem.
    edit: i have found out that my problem is best described here, not the real concern of the OP but at the 4th option they say its a netinfo database problem, and diagnostics are the same problems that occur to me of that option but the system they're talking about is 10.1.5, i guess things have changed since then, but the problem is the same . http://macosx.com/forums/mac-os-x-system-mac-software/20630-cant-click-click-loc k-make-changes-button-when-installing.html
    hope you can help
    thanks in advance

  • Mouse wheel click doesn't open new tabs correctly?

    Since upgrading to FF4, whenever I mouse click a bookmark on my bookmark toolbar, it will open a blank new tab with the URL in the address line, but will not load the page. I have to select the URL in the address line and press enter, or press the green arrow button. Shouldn't web pages automatically load once I mouse wheel click on a bookmark?
    any suggestions?

    Alan McClean has alluded to the cause of this behaviour but I think others would benefit from a full explanation because it doesn't appear to be documented. I might add that Business Objects support were no help at all on this (they suggested I had a problem with my mouse, PC or network which I don't).
    Normal response to a mouse double-click on a document name in InfoView XI3:
    The double-click action performs the default action on the right-click list. This is the option you see in bold when you right-click on a document name. The default action is 'View' document. So when you double-click on the document it opens for viewing.
    In CMC, under Applications>InfoView if you set 'Default viewing action on listing page:' to 'View the latest successful instance of the object' then the double-click behaviour changes:
    The double-click action now tries to open the latest successful instance of a document. I found that any document in my Inbox or any document with instances (e.g. scheduled report) will still open for viewing using the double-click. For any other document the double-click fails silently. I assume this is because there simply isn't a latest instance to open.
    Conclusions:
    1. Don't use the 'View the latest successful instance of the object'. I have reset my CMC setting back to 'View the object'.
    2. I think Business Objects should change the double-click behaviour so that rather than fail silently it opens the document.

  • How to activate mouse right click in JTexhArea

    Hi Swings Expert!
    I've a problem to get action mouse right click in JTextArea for example to cut and paste selected text from textarea into another textarea.
    If I want to copy and paste text from textarea, Ive to use Ctrl C for copy
    and Ctrl V for paste the selected text.
    Is there a way to activate mouse right click in JTextArea?
    any help.....Thanks a lot.

    Here are the basics:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    public class PopupMenuTest extends JFrame implements MouseListener
         public JPopupMenu popup;
         public PopupMenuTest()
              popup = new JPopupMenu();
    //          popup.add( new DefaultEditorKit.CutAction() );
              JMenuItem item = new JMenuItem( new DefaultEditorKit.CutAction() );
              item.setMnemonic('C');
              popup.add( item );
              popup.add( new DefaultEditorKit.CopyAction() );
              popup.add( new DefaultEditorKit.PasteAction() );
              JTextField textField = new JTextField("Right Click For Popup");
              textField.addMouseListener( this );
              getContentPane().add(textField);
         private void checkForPopup(MouseEvent e)
              if (e.isPopupTrigger())
                   popup.show(e.getComponent(), e.getX(), e.getY());
         public void mousePressed(MouseEvent e)
              checkForPopup( e );
         public void mouseReleased(MouseEvent e)
              checkForPopup( e );
         public void mouseClicked(MouseEvent e) {}
         public void mouseEntered(MouseEvent e) {}
         public void mouseExited(MouseEvent e) {}
         public static void main(String[] args)
              PopupMenuTest frame = new PopupMenuTest();
              frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
              frame.pack();
              frame.setLocationRelativeTo( null );
              frame.show();
    }

  • My iMac mouse right click does not work now

    Hi all,
    My iMac mouse right click does not work now.  It was fine a couple of days ago. 
    Right click is definitely enabled, I have checked it several times.
    A Google search revealed that in Firefox it could be that I'm not using the latest version of Firebug.  I have auto updates on and Firebug is the latest version 1.11.3
    I use right click for correcting spell checked words, instead of a suggested correct spelling I get the 'open in a new tab' menu.
    In Firefox when I right click to open in a new tab I get the menu but it does nothing.
    It is driving me mad
    Any help will be greatly appreciated,
    Thank you
    P.S. thought it was suddenly working when I did the spell check in this post but it was the left click doign it....

    I don't use Firefox so I can't test it, but it might be something to do with a preference setting. Have a look at this link (ignore all the instructions), just look at the image of the preferences, there appears to be a setting in Javascript preferences relating to contextual menus. Check to see what your settings are:
    http://stackoverflow.com/questions/16377381/disable-firefoxs-silly-right-click-c ontext-menu

  • Thunderbird Crashes on selection +"ctrl+c" or mouse right click

    Whenever I attempt to copy text from within a mail message, by selecting text & pressing ctrl+C TB crashes,
    or Just on Mouse Right Click TB Crashes

    So, I finally did a fresh install of OSX on iMac, and the right click came back.
    I think there was something corrupted on the system that somehow showed up after Adobe CS2. I reinstalled CS2 but up to now, no problems at all.
    Thanks all for the insights, they all helped a lot!

  • Magic Mouse-Right click and left click reversed?

    Hello! Thanks in advance for any info you can provide regarding my problem. My wireless keyboard and magic mouse recently has been disconnecting from Bluetooth. A few days ago they both quit, and after a call to apple tech support, I tried everything, including re-loading my system software(Mac Pro, Snow Leopard 10.6.2) When my keyboard and mouse finally came back up, when I de-selected the right click, the mouse wouldn't click. The cursor moves around, but no click. I have to plug in another mouse and select right click, and then the mouse will click, but the right and left click are reversed.
    At one point, when plugging in an old wired mouse, I was able to select whether I wanted to enable the right or left click, and when I selected left click, the mouse quit clicking. I can't seem to get thatoption now with a wired mouse, and that might not even be related.
    Can anyone help! I'd like to get my Magic mouse working correctly!
    Thanks for all your help!
    Mark S.

    Hello ms:
    Welcome to Apple discussions.
    Try trashing a preference file (com.apple.bluetooth.plist) and restarting.
    Barry

  • Windows 8 mouse auto clicking everything

    Ever since I have had my lenovo laptop with windows 8 installed I've had a problem with the mouse (touchpad) clicking on everything that I dont choose to click on (auto clicks). I've spoken to friends who have different laptops but have windows 8 installed
    so it isnt a problem with the laptop but with the windows 8 software. Is there anyway to turn this off? it is incredibly annoying when doing work and it ruins it by clicking on things I do not want. I've also seen other forums about contacting the laptop company
    or going onto mouse properties and i have tried this yet no results so please do not give me this information but USEFUL INFORMATION TO FIX THIS PROBLEM.
    Thanks.

    seen other forums about contacting the laptop company or going onto mouse properties
    Lenovo would have your user guide and be able to help interpret it for you.  You haven't even given us your product number so anyone here would have to guess about that but Lenovo apparently use both Synaptics and Elan touchpads which would make such
    guessing even more problematic. 
    In other manufacturers the feature you would be trying to toggle is called "Tap to click".  E.g. on my TouchSmart a Notification Area item could be used to toggle that. 
    Also, many laptops feature a method of toggling off the Touchpad completely, e.g. either with a hardware switch, a keyboard shortcut, or Properties option or perhaps at worst a BIOS switch.  Again, your user guide would probably help you with that
    option too.
    FYI
    Robert Aldwinckle

  • Magic mouse rt click stopped working

    My magic mouse right click is not working. I have looked and the box is checked in the preferences but still not RT click. Please advise

    Hi there
    Yes the preferences does not help with this issue I have done everything to get my right click back but no joy. Until now this is a kind of fix for it. If you go to google and search magicprefs it is a free download and it basically lets you pick and choose what your mouse gestures  does for you when you swipe ,click and tap your mouse thus you can click on the right mouse gesture and voila you have right click back.
    Hope that is a help I know how frustrating it has been.

  • Swap Mouse Button Click

    hi, I am working on some application and i got this problem, i have this EventHandler class and all my application event pass through this class, now what i want to do is, i want to swap the events on mouse click, like when user press mouse left click i want to change this even as right click, this will basically depands on user choice, so is there any possible way to change the event behaviour or to sawap mouse right click as in left and left as in right?
    here is my code,
    public class MyEventQueueHandler extends EventQueue {
      private boolean MacOs  =  Myapp.macOS();
      protected void dispatchEvent(AWTEvent event) {
        if(MacOs) super.dispatchEvent(event);
        else
        if(event instanceof KeyEvent) {
          if(System.currentTimeMillis() - ((KeyEvent)event).getWhen() <= 1000)
          super.dispatchEvent(event);
          else ((KeyEvent) event).consume();
        } else
        if(event instanceof MouseEvent) {
            if(SwingUtilities.isRightMouseButton((MouseEvent)event))
                  if(pref)
                ///here i wants to do something ,which passes this is as mouse  left event                
          if(System.currentTimeMillis() - ((MouseEvent)event).getWhen() <= 1000)
          super.dispatchEvent(event);
          else ((MouseEvent) event).consume();
        } else
        super.dispatchEvent(event);
    if anyone can help with this thing...many thanks.

    could be a simple as separating the code from the event and using
    the various conditions to call the approriate code?
    something like this (mouse click in the panel)
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    class Testing
      JLabel label = new JLabel("");
      boolean swapButtons = false;
      public void buildGUI()
        JPanel p = new JPanel();
        p.add(label);
        p.setPreferredSize(new Dimension(600,400));
        JPanel p1 = new JPanel();
        final JCheckBox cbx = new JCheckBox("Swap Buttons");
        p1.add(cbx);
        JFrame f = new JFrame();
        f.getContentPane().add(p,BorderLayout.CENTER);
        f.getContentPane().add(p1,BorderLayout.SOUTH);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
        p.addMouseListener(new MouseAdapter(){
          public void mousePressed(MouseEvent me){
            if(SwingUtilities.isRightMouseButton(me)){
              if(cbx.isSelected()) leftClickCode();
              else rightClickCode();
            else if(SwingUtilities.isLeftMouseButton(me)){
              if(cbx.isSelected()) rightClickCode();
              else leftClickCode();
      public void leftClickCode()
        label.setText("leftClickCode");
      public void rightClickCode()
        label.setText("rightClickCode");
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Robot mouseClick with mouse right click

    I try to capture mouse right click and fire mouse right click event in robot.mousePress or mouseRelease.
    does anybody know how to do this?
    Thanks.

    rocketlad
    Welcome to the forum. Please don't post in threads that are long dead. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
    I'm locking this thread now.
    db

  • Mouse/mousepad clicks and taps not always recognised.

    I've noticed recently that I have an issue with both my magic mouse and my mouse pad, effecting both left and right clicks on the mouse and mousepad, and taps on the mousepad too. I've noticed the issue across many of the main applications I use, such as Mail, Adium, but is more apparent in Safari, or other browsers, where mouse clicking is used more.
    The issue is that not all mouse/mousepad clicks and taps are recognised on the first click, even when the mouse icon changes with link rollovers etc. It is more apparent when changing between application windows or after opening a new window/tab/page in Safari. Closing/minimising windows is effected etc, as is selecting items on the Dock. In all cases when this happens, a second click/tap always works.
    I'm guessing that it is a problem with Finder, maybe caused by another program or something. It's really annoying actually!
    Any ideas?

    ChloeHeather wrote:
    The mouse has fresh batteries is fully connected to the computer and the cursor moves as normal. 
    But when I click (either right or left) the computer ignores me. 
    I can only assume that:
    * mouse is somehow broken - although clicks feel okay, or
    * computer is somehow broken and can't tell clicks are being made
    So, what do I do?
    Buy a new mouse for £50?  Or adjust something in the computer?   No idea which is best, and HP won't help as the computer is just over one year old. 
    Try moving the USB receiver closer.
    You could also try uninstalling and reinstalling the drivers from Device Manager, then the original driver then the updated driver from your Update page on the HP Website.
    Also try running a virus scan using Malwarebytes if you can, Malwarebytes Home Page
    I have more HP devices than you'd expect.
    1 HP TouchPad 32 GB with Android
    2 HP Touchsmarts (310-1000z and IQ527)
    2 HP Printers (J6480 and J5750)
    1 Laptop (HP DV6253CL)
    Have at least some experience in each of those devices, and i'll do my best to help you.
    Kudos if I helped!

Maybe you are looking for