How to remap Ctrl + Mouse click

Hi, I searched but couldn't find an answer.
My kid tore a handful of keys out of my PowerBook keyboard. I fixed most of them (to my surprise), apart from the Ctrl key which was torn out 'with meat', so to speak — it now wobbles and falls off every time I press it.
How do I remap 'Ctrl + mouse click' to 'option + mouse click', for example? The list of keyboard shortcuts doesn't have this choice.
I'll bring it to repairs later on... but I need my machine for a whole week of high profile presentations starting tomorrow. Couldn't be the worst time for this.
Appreciate your help.

Ah, thanks goodness — I took my keyboard apart and fixed the button. It's now just a bit raised over the rest of the keys but it's operation is back to normal.
Sheesh — I was almost 'forced' to switch to MBP ahead of my plans!

Similar Messages

  • Using CTRL+Mouse Click as Action

    I recorded a s/w simulation where I want the user to follow a sequence of keystrokes to ensure comprehension. I came across one sequence which I cannot get to work. I go into properties of the click box and select Actions>Shortcuts to record the key sequence CTRL + Left Mouse click but it does not record the CTRL key when combined with the mouse click. If I use CTRL plus some other keyboard key it works fine. Currently using the mouse click alone will allow the user to go to the next step but in the s/w this will not work so could be misleading.
    Does anyone know how to overcome this hurdle or if it is a s/w limitation do you have any suggestions to mitigate it? I was thinking of having the key sequence as a test question to ensure those taking the course absorbed the information.
    I found another thread a couple of years ago where it sounded like it was not possible but was curious if things have changed as I am using Captivate 5.
    Thanks
    Roshan

    Hi Roshan,
    The "CTRL+Mouse Click " can't be used as shortcut key for a click box in Captivate 5.
    Thanks,
    Subhransu

  • How can i call mouse click event from keypress event???

    How can i call mouse click event from keypress event???
    I want same GUI changes to be occured at key press.....i.e . button going down & comming up.....
    for calculator

    Put all the code that happens on those events into a method. Then call that method from both events.

  • Ctrl + Mouse Click to Advance - Possible?

    In the course I'm working on, I want the user to select several options from a list and it uses typical Windows behavior - the user would click and hold ctrl and left mouse click each option.  When I recorded the screen in Captivate 7, the dialogue box states this instruction but when I test it, i can advance by only using the mouse.  Is there a way to force the user to use both the ctrl key and mouse to advance or else get a failure caption?
    Thanks!

    First of all, i couldn't figure out how to advance the slide
    with the use of the mouse. so i chose the spacebar as the select
    key. i used the following settings: on success--continue; allow
    user--one; select keys--space bar; apply settings--all. the
    settings-all didn't seem to have any effect. on the slides i worked
    on individually, here are the issues i ran into: slide continued to
    play for a long time before advancing to the next slide, needed to
    press space bar multiple times before slide advanced, clicking
    button on screen to advance (the one i created with the click box)
    did not seem to have any effect. right now, the show is playing by
    itself. my goal is to slow it down so the user has control over
    when to advance to the next slide.

  • How to undo CTRL+Right Click Personalization

    Hello,
    I used CTRL+ Right Click to hide a button on an ESS iView, Family Members and Dependents.
    Now I want to unhide the button. But can't seem to find it. Any clue, how I should retrieve it back?
    I am using Web Dynpro Java. I used Administrator ID to make this change.
    Regards
    Avik

    Dear Avik,
    Use the same id what was user for the personalization earlier and do CTRL+ Right Click on an ESS iView, Family Members and Dependents (on the same screen on with the button was made invisible)on the iview preview screen.
    1.Now you should be able to see the button under RootUIElementContainer->Children on the left hand side in the "UI elements tree"
    2. For the property *Invisible of the button in question select the "Not Personalized" radio button and click "Apply" and then "ok".
    3. You should be able to see the button again.
    Regards,
    Samir

  • How to capture a mouse click.

    I have two blocks A and B. I enter some data in form A, then enter some data in block B.
    Before I hit save button, I want to take the focus from key commit trigger to take the focus to block A ( taking the foucus will populate item x in B block with item x in block A) and look through all the rows in block a and mimic a mouse click on each row.
    How can that be done.
    Thanks

    If you have a commit button on your canvas, in its when-button-pressed trigger, there should be only one line:
    EXECUTE_TRIGGER('KEY-COMMIT');
    You should create a key-commit trigger only at the form-level, and in it, you can write a pl/sql loop:go_block('A');
    first_record;
    loop
      exit when :system.record_status='NEW';
      -- do here whatever it is that you need to do if
      -- a mouse-click occurs in the record.
      exit when :system.last_record='TRUE';
      next_record;
    end loop;
    first_record;
    commit_form;

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

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

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

  • How to turn off mouse click noise

    I am listening to my Itunes on my computer and doing work at the same time. Each time I do my work and click my mouse I hear the click sound at the same time as my song. Is they any way to turn off mouse click sound so it does not disturb my music?

    1. Go to control panel
    2. Click mouse
    Now that being said, I don't have the kind that makes a noise, so I don't have an option, but if you're able to turn the sound off, it should be there.
    If it's not there, check Sounds and Audio Device properties to see if there's an option there. If there's not, you may need to contact your computer manufacturer.
    Good luck!

  • How to get  the mouse clicked positions on a movie

    I am doing a project on Objects tracking
    I am capturing the video data using webcamera and playing it using processor in JMF
    my problem is , if i click on the movie that is being played currently, i have to display the co-ordinates of the mouse clicked position.
    can anyone help me?
    Thanks in advance
    Sudha

    hello
    i have attache my coding here
    see to it
    import java.io.*;
    import java.io.IOException;
    import java.net.*;
    import java.net.URL;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseMotionListener;
    import javax.swing.*;
    import javax.media.*;
    import javax.media.util.*;
    import javax.media.Buffer.*;
    import javax.media.format.*;
    import javax.media.Format;
    import javax.media.protocol.*;
    import javax.media.control.*;
    import javax.media.rtp.*;
    import javax.media.protocol.DataSource;
    import com.sun.media.ui.*;
    import javax.media.format.YUVFormat;
    import java.util.*;
    import java.util.Vector;
    import javax.imageio.*;
    import javax.imageio.stream.*;
    class capturing1 extends JInternalFrame implements ActionListener,MouseListener,MouseMotionListener,ControllerListener
    * The entry point of the example
    * @param args The command line arguments
         int mark_flg=0;
         int xpos=0,ypos=0;
         mdetect mde=new mdetect();
         protected boolean transitionOK;
         protected Object synchronizer;
         protected Processor processor;
         JButton mark;
         JButton track;
    capturing1(String fname)
    {     super(fname, true, true, true, true);
         getContentPane().setLayout( new BorderLayout() );
         setSize(320, 10);
         setLocation(50, 50);
         setVisible(true);
         processor = null;
    synchronizer = new Object();
    transitionOK = true;
         mark=new JButton("mark");
         track=new JButton("track");
         mark.setSize(25,25);
         track.setSize(25,25);
         mark.addActionListener(this);
         track.addActionListener(this);
         getContentPane().add("East", mark);
         //getContentPane().add("West", track);
         try {
         UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
         } catch (Exception e) {
         System.err.println("Could not initialize java.awt Metal lnf");
         Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, new Boolean(true));
         addMouseListener(this);
         addMouseMotionListener(this);
         loadAndStart(fname);
    public void loadAndStart(String fn)
    boolean status;
    status = loadFile(fn);
    if (status) status = configure();
         TrackControl tc[] = processor.getTrackControls();
         if (tc == null) {
                   System.err.println("Failed to obtain track controls from the processor.");
                   System.exit(0);
              // Search for the track control for the video track.
              TrackControl videoTrack = null;
              for (int i = 0; i < tc.length; i++) {
                   if (tc.getFormat() instanceof VideoFormat) {
                   videoTrack = tc[i];
                   break;
              if (videoTrack == null) {
                   System.err.println("The input media does not contain a video track.");
                   System.exit(0);
         try {
         Codec codec[] = {mde};
         videoTrack.setCodecChain(codec);
         } catch (UnsupportedPlugInException e) {
         System.err.println("The processor does not support effects.");
    if (status) status = realize();
    public boolean loadFile(String fn)
    boolean status;
    URL url;
         status = false;
         /*Vector v = CaptureDeviceManager.getDeviceList(new VideoFormat(
    VideoFormat.YUV));
    System.out.println(((CaptureDeviceInfo) v.get(0)).getName());
    try{
         MediaLocator ml = ((CaptureDeviceInfo) v.get(0)).getLocator();
    System.out.println(ml.toString());
         processor = Manager.createProcessor(ml);processor.addControllerListener(this);status = true;
    }catch(Exception e){
    System.err.println("Exception occured\n");
    e.printStackTrace();
         System.exit(0);
    try {
    url = new URL("file:"+
    System.getProperty("user.dir")+
    "/"+fn);
    if (url != null) {
    processor = Manager.createProcessor(url);
         processor.addControllerListener(this);
    status = true;
    } catch (NoProcessorException npe) {
    System.out.println("Unable to create a processor!");
    } catch (IOException ioe) {
    System.out.println("Unable to connect to source!");
    return status;
    public boolean configure()
    boolean status;
    status = false;
    // Put the Processor into the configured state
    processor.configure();
    if (waitFor(processor.Configured)) {               
    // Set the content descriptor to null so that the
    // processor can be used as a player
    processor.setContentDescriptor(null);
    status = true;
    } else {
    System.out.println("Unable to configure the processor!");
    return status;
    public boolean realize()
    boolean status;
    Component c;
    status = false;
    // Put the Processor into the realized state
    processor.prefetch();
    if (waitFor(processor.Prefetched)) {               
    // The Processor has been realized so the
    // components can be layed out
    c = processor.getVisualComponent();
    getContentPane().add("Center", c);
    c = processor.getControlPanelComponent();
    if (c != null)
              getContentPane().add("South", c);
    System.out.println("button added");
    // Start the Processor
              validate();System.out.println("button added");
    processor.start();
    status = true;
    } else {
    System.out.println("Unable to realize the processor!");
    return status;
    protected boolean waitFor(int state)
    // Make this block synchronized
    synchronized(synchronizer) {
    try {
    while ((processor.getState() != state) &&
    (transitionOK)) {
    synchronizer.wait();
    } catch (InterruptedException ie) {
    // Ignore it
    return transitionOK;
    public synchronized void controllerUpdate(ControllerEvent evt)
    if ( (evt instanceof ConfigureCompleteEvent) ||
    (evt instanceof RealizeCompleteEvent) ||
    (evt instanceof PrefetchCompleteEvent) ) {
    // Synchronize this block
    synchronized(synchronizer) {
    transitionOK = true;
    synchronizer.notifyAll();
    } else if (evt instanceof ResourceUnavailableEvent) {
    // Synchronize this block
    synchronized(synchronizer) {
    transitionOK = false;
    synchronizer.notifyAll();
    public void mouseMoved(MouseEvent e) {
    //saySomething("Mouse moved", e);
    public void mouseDragged(MouseEvent e) {
    saySomething("Mouse dragged", e);
    public void mousePressed(MouseEvent e) {
    //saySomething("Mouse pressed; # of clicks: "
    // + e.getClickCount(), e);
    public void mouseReleased(MouseEvent e) {
    //saySomething("Mouse released; # of clicks: "
    // + e.getClickCount(), e);
    public void mouseEntered(MouseEvent e) {
    //saySomething("Mouse entered", e);
    public void mouseExited(MouseEvent e) {
    //saySomething("Mouse exited", e);
    public void mouseClicked(MouseEvent e) {
    saySomething("Mouse clicked (# of clicks: "
    + e.getClickCount() + ")", e);
         xpos=e.getX(); ypos=e.getY();
    void saySomething(String eventDescription, MouseEvent e) {
         System.out.println("The Object is at the point "+"x ,"+e.getX()+ "y" + e.getY());
         if(mark_flg==1){
         mdetect.markObject(xpos,ypos);
         //mark_flg=0;
    public void actionPerformed(ActionEvent e)
         if(e.getSource()==track)
              System.out.println("track pressed");
              processor.start();
         if(e.getSource()==mark)
              mark_flg=1;//processor.stop();
              System.out.println("mark pressed");
    public class track extends Frame
    {     JDesktopPane desktop;
    public track(String f)
         setLayout( new BorderLayout() );
         desktop = new JDesktopPane();
         desktop.setDoubleBuffered(true);
         add("Center", desktop);
         setSize(640, 480);
         capturing1 cap1=new capturing1(f);
         desktop.add(cap1);
         setVisible(true);
    public static void main(String args[])
    new track(args[0]);
    /****************************** mdetect class**********************************************/
    class mdetect implements Effect
         //Processor processor;
    static boolean marked=true; static int mark_flg=0; int a=1;
    static int xpos=0,ypos=0;
    private Format inputFormat;
    private Format outputFormat;
    private Format[] inputFormats;
    private Format[] outputFormats;
    private int[] bwPixels;
    private byte[] bwData;
    private RGBFormat vfIn = null;
    private static int imageWidth = 0;
    private int imageHeight = 0;
    private int imageArea = 0;
    static int[] p1;
    mdetect()
    System.out.println("mdetect called");
    inputFormats = new Format[] {
    new RGBFormat(null,
    Format.NOT_SPECIFIED,
    Format.byteArray,
    Format.NOT_SPECIFIED,
                                  24,
    3, 2, 1,
    3, Format.NOT_SPECIFIED,
    Format.TRUE,
    Format.NOT_SPECIFIED)
    outputFormats = new Format[] {
    new RGBFormat(null,
    Format.NOT_SPECIFIED,
    Format.byteArray,
    Format.NOT_SPECIFIED,
                                  24,
    3, 2, 1,
    3, Format.NOT_SPECIFIED,
    Format.TRUE,
    Format.NOT_SPECIFIED)
         public Format[] getSupportedInputFormats() {
    return inputFormats;
         public Format [] getSupportedOutputFormats(Format input) {
    if (input == null) {
    return outputFormats;
    if (matches(input, inputFormats) != null) {
    return new Format[] { outputFormats[0].intersects(input) };
    } else {
    return new Format[0];
         public Format setInputFormat(Format input) {
    inputFormat = input;
         return input;
         public Format setOutputFormat(Format output) {
    if (output == null || matches(output, outputFormats) == null)
    return null;
    RGBFormat incoming = (RGBFormat) output;
    Dimension size = incoming.getSize();
    int maxDataLength = incoming.getMaxDataLength();
    int lineStride = incoming.getLineStride();
    float frameRate = incoming.getFrameRate();
    int flipped = incoming.getFlipped();
    int endian = incoming.getEndian();
    if (size == null)
    return null;
    if (maxDataLength < size.width * size.height * 3)
    maxDataLength = size.width * size.height * 3;
    if (lineStride < size.width * 3)
    lineStride = size.width * 3;
    if (flipped != Format.FALSE)
    flipped = Format.FALSE;
    outputFormat = outputFormats[0].intersects(new RGBFormat(size,
    maxDataLength,
    null,
    frameRate,
    Format.NOT_SPECIFIED,
    Format.NOT_SPECIFIED,
    Format.NOT_SPECIFIED,
    Format.NOT_SPECIFIED,
    Format.NOT_SPECIFIED,
    lineStride,
    Format.NOT_SPECIFIED,
    Format.NOT_SPECIFIED));
    return outputFormat;
    public synchronized int process(Buffer inBuffer, Buffer outBuffer) {
         int i=0;
         a++;
              //System.out.println("discard buffer"+inBuffer.isEOM());
              //System.out.println("w n h");
              //System.out.println("w"+size.width+"h"+size.height);
              //System.out.println("format"+inBuffer.getFormat());
              //System.out.println("RGB"+outImage.getRGB(3,3));
              //Graphics og = outImage.getGraphics();
              //og.drawImage(stopImage, 0, 0, size.width, size.height, null);
              vfIn = (RGBFormat) inBuffer.getFormat();
         Dimension size = vfIn.getSize();
              if(inBuffer.isEOM()==false)
              BufferToImage stopBuffer = new BufferToImage((VideoFormat) inBuffer.getFormat());
              Image stopImage = stopBuffer.createImage( inBuffer);
              BufferedImage outImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_RGB);
              if(a==6)
              PictureButton.but(stopImage);
              System.out.println("stop image called");
              //cut
    /*if(a<0)
         for(int rr=0;rr<MAXROWS;rr++)
              for(int cc=0;cc<MAXCOLS;cc++)
                   System.out.print(PixelArray[rr][cc]+" ");
         System.out.println("@");
    a=0;
         int outputDataLength = ((VideoFormat)outputFormat).getMaxDataLength();
    validateByteArraySize(outBuffer, outputDataLength);
    outBuffer.setLength(outputDataLength);
    outBuffer.setFormat(outputFormat);
    outBuffer.setFlags(inBuffer.getFlags());
         byte [] inData = (byte[]) inBuffer.getData();
    byte [] outData =(byte[]) outBuffer.getData();
         Object data = inBuffer.getData();
    int pixStrideIn = vfIn.getPixelStride();
    int lineStrideIn = vfIn.getLineStride();
         imageWidth = (vfIn.getLineStride())/3; //Divide by 3 since each pixel has 3 colours.
         imageHeight = ((vfIn.getMaxDataLength())/3)/imageWidth;
         imageArea = imageWidth*imageHeight;
    int r=0,g=0,b = 0; //Red, green and blue values.
         System.arraycopy(inData,0,outData,0,outData.length);
         bwPixels = new int[outputDataLength/3] ;
         p1=new int[outputDataLength/3];int[] p=new int[outputDataLength/3];
         for (int ip = 0; ip < inData.length; ip+=3) {
              int bw = 0;
                   r = (int) inData[ip] ;
                   g = (int) inData[ip+1] ;
                   b = (int) inData[ip+2];
    bw = (int) ((r + b + g)/ (double) 3);
              p1[ip/3]=bw;
         return BUFFER_PROCESSED_OK;
         public String getName() {
    return "Motion Detection Codec";
    public void open() {
    public void close() {
    public void reset() {
         public Format matches(Format in, Format outs[]) {
         for (int i = 0; i < outs.length; i++) {
         if (in.matches(outs[i]))
              return outs[i];
         return null;
    public Object getControl(String controlType) {
    System.out.println(controlType);
         return null;
    public Object[] getControls() {
    return null;
    byte[] validateByteArraySize(Buffer buffer,int newSize) {
    Object objectArray=buffer.getData();
    byte[] typedArray;
    if (objectArray instanceof byte[]) {     // Has correct type and is not null
    typedArray=(byte[])objectArray;
    if (typedArray.length >= newSize ) { // Has sufficient capacity
    return typedArray;
    byte[] tempArray=new byte[newSize]; // Reallocate array
    System.arraycopy(typedArray,0,tempArray,0,typedArray.length);
    typedArray = tempArray;
    } else {
    typedArray = new byte[newSize];
    buffer.setData(typedArray);
    return typedArray;
    public static void markObject(int x,int y)
    marked=true;
    xpos=x; ypos=y;
    /* int j =0, m=0,n=0;
    int total = p1.length; int col = imageWidth; //int row = imageHeight;
    int[][] twodim = new int[total/col][col];
    System.out.println("p1 arr"+p1.length+","+twodim.length+"col"+col);
    for(j=0;j<total;j++)
    twodim[n][m] = p1[j];
    System.out.print( twodim[n][m]+" ");
    m++;
    if( m ==col)
    m=0; n++;
    System.out.println("@"+n);
    System.out.println("m"+m+"n"+n);*/
    public int markObject()
    //System.out.println("boolean mark called");
    mark_flg=1;
    return mark_flg;
    /*****************************************end of mdetect class*****************************************************/
    /*********************************** Image Icon class ****************************************************************/
    class PictureButton extends JFrame implements MouseMotionListener,MouseListener{
    static Image image;Icon icon2;JButton button2=new JButton("hi"); int[] pixels; Container content;
    public PictureButton(Image img ) {
    super("PictureButton v1.0");
    setSize(200, 200);
    setLocation(200, 200);
    Icon icon = new ImageIcon(img);
    JButton button = new JButton(icon);
         button.addMouseMotionListener(this);
         button.addMouseListener(this);
    button.addActionListener(new ActionListener( ) {
    public void actionPerformed(ActionEvent ae) {
    System.out.println("Urp!");
    content = getContentPane( );
    content.setLayout(new FlowLayout( ));
    content.add(button);
         //content.add(button2);
    public static void but(Image im) {
         image=im;
    JFrame f = new PictureButton(im );
    f.addWindowListener(new WindowAdapter( ) {
    public void windowClosing(WindowEvent we) { System.exit(0); }
    f.setVisible(true);
    public void mouseMoved(MouseEvent e) {
    //saySomething("Mouse moved", e);
    public void mouseDragged(MouseEvent e) {
    saySomething("Mouse dragged", e);
    public void mousePressed(MouseEvent e) {
    //saySomething("Mouse pressed; # of clicks: "
    // + e.getClickCount(), e);
    public void mouseReleased(MouseEvent e) {
    //saySomething("Mouse released; # of clicks: "
    // + e.getClickCount(), e);
    public void mouseEntered(MouseEvent e) {
    //saySomething("Mouse entered", e);
    public void mouseExited(MouseEvent e) {
    //saySomething("Mouse exited", e);
    public void mouseClicked(MouseEvent e) {
    saySomething("Mouse clicked (# of clicks: "
    + e.getClickCount() + ")", e);
    void saySomething(String eventDescription, MouseEvent e) {
    int w=0;int ind=0;
         System.out.println("The Object is at the point "+"x ,"+e.getX()+ "y" + e.getY());
         int[][][] imagePixels = imageIO.loadImage(image);
              final int MAXROWS = imagePixels.length;
              final int MAXCOLS = imagePixels[0].length;
              int[][] PixelArray = new int[MAXROWS][MAXCOLS];
              pixels=new int[MAXROWS*MAXCOLS];
              int cnt=0;
              int pix=0,pix1=0;
    for(int row=0; row<imagePixels.length; row++) {
    for(int col=0; col<imagePixels[0].length; col++) {
    for(int rgbo=0; rgbo<4; rgbo++) {
                   if((cnt<3)&&(rgbo<3))
    w++;
                   pix=pix+imagePixels[row][col][rgbo];
                   cnt++;
                   else
                   {cnt=0;}
    } // for rgbo
    pix1 = pix/3;
    pix = 0;
                   /*if(col<97)
                   {pix1=(byte)192;}*/
    PixelArray[row][col] = pix1;
                   System.out.print(pix1+" ");
    } // for col
                   System.out.println("@");
    } // for row
         System.out.println("pix arr"+PixelArray.length);
         for(int ww=0;ww<MAXROWS;ww++)
         for(int hh=0;hh<MAXCOLS;hh++)
         pixels[ind++]=PixelArray[ww][hh];
         image = createImage (new MemoryImageSource( MAXROWS,MAXCOLS, pixels, 0, MAXROWS));
         System.out.println(" img added");
    /********************************* end of Image Icon class**********************************************************/
    this program will capture the video n play
    if u click on the mark button processor will be stopped
    u can click on the image and get the mouse co-ordinates
    i have also got the pixel values of the current frame at which u had clicked the mark button..do some manipulation on the pixels to get ur stuff work
    hope this will help u in some way
    regards
    sudha

  • Windows 7  - How to remap CTRL to CMD

    Hi all,
    Using Bootcamp 3 and Windows 7, is there any way to use the CMD key as the CTRL. I tried some remappers but I canæt get it to work (ctrl+c = cmd+c etc).
    Anyone been succesful in doing this?
    Cheers.

    Hi
    Try doing System restore to the date when the unit was working fine.
    Let us know how it goes!
    "I work for HP."
    ****Click the (purple thumbs up icon in the lower right corner of a post) to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    Regards
    Manjunath

  • Awesome - How to "trap" a mouse click

    I use the following code to use my mouse's side buttons for switching tags.
    However the press events are forwarded to to the client underneath which is undesirable.
    How do I "trap" the press events, if possible for specific tags only
    root.buttons(awful.util.table.join(
    awful.button({ }, 3, function () mymainmenu:toggle() end),
    awful.button({ }, 8, awful.tag.viewnext),
    awful.button({ }, 9, awful.tag.viewprev)
    Thanks.

    EDIT: I may have misunderstood - do you mean the binding works as you intended, but it also has additional undesired behavior in the client under the mouse?
    --- original, perhaps irrelevant post ---
    You want this mouse button to have that behavior when the mouse pointer is over a client window?
    I have very little experience with awesomewm, but I know my way around X, and I suspect there is no way to do this within awesome.  Suspect may be too weak a word - unless awesome specifically includes button remapping code, this is not possible like that.
    You can however remap mouse buttons through X, here is one guide that looks pretty good.  Once you remap the button in question to a "key", then you can just make a keybinding for that key.
    Last edited by Trilby (2013-05-31 00:05:53)

  • How to prevent middle mouse click to move the cursor but still poaste the clipboard ?

    This is a linux only issue.
    When i'm typing a text editing box, i use the select text/middle click gesture to copy/paste text.
    But the middle click not only paste the selected text but move the cursor at the actual mouse position before.
    I don't want this behavior, because :
    1. I work a lot with vim, where you don't mouve the cursor using the mouse, so i must change my habit when i'm using firefox.
    2. When i middle click, event if i put the mouse in the right place, i might mouve it a bit and the text will be pasted on the wrong place
    I've been looking in the about:config and the only related option is
    middlemouse.paste;
    If i put it to false, the middle click button does not mouve the cursor, nor does it paste.
    Any idea how to achieve that ?

    I do not find the cursor moving on me if I use middle-click to paste text or url that is in that I highlighted into clipboard. Whether I used my Logitech MX510 or the T-CH!!/T-CL13 trackballs that I use now.
    The right-click and copy selection then right-click and paste to paste contents where Caret is method can be more precise though.
    '''FredMcD''', if you have not used Linux then maybe you should not be replying to questions that are Linux specific. Same with Mac OSX.

  • Select any value with CTRL + mouse click

    Hi all,
    since ERP 6.0 and SAP GUI 6.40 I am used to be able to select any value in any input or display field (e.g. the name of a field of a table in transaction SE11) via holding down the CTRL key while clicking onto the desired value/field once. Then the whole value/string is selected.
    Now I am working on a freshly installed system but I can't find this setting anywhere. It does work to select a word within the ABAP source code editor, but not for any other, "normal" input fields.
    Any ideas where I can set this?
    Kind regards, Matthias

    Have a look at the last button on the right of the application toolbar. Button looks like monitor with test screen. Click it and use options.

  • JList where mouse click acts like ctrl-mouse click

    I'd like to create a JList where I can select multiple items as if the control key were down, but without having the control key down. I thought that perhaps I could do this by extending JList and overriding its processMouseEvent method, setting the MouseEvent object to think that control is pressed and then calling the super method like so, but it doesn't work (I still need to press the control key to get my desired effect):
    import java.awt.Component;
    import java.awt.event.InputEvent;
    import java.awt.event.MouseEvent;
    import javax.swing.*;
    public class Ctrl_Down_JList {
      private static void createAndShowUI() {
        String[] items = {"Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat"};
        JList myJList = new JList(items) {
          @Override
          protected void processMouseEvent(MouseEvent e) {
            // change the modifiers to believe that control key is down
            int modifiers = e.getModifiers() | InputEvent.CTRL_DOWN_MASK;
            // can I use this anywhere?  I don't see how to change the
            // modifiersEx of the MouseEvent
            int modifiersEx = e.getModifiersEx() | InputEvent.CTRL_DOWN_MASK;
            MouseEvent myME = new MouseEvent(
                (Component) e.getSource(),
                e.getID(),
                e.getWhen(),
                modifiers, // my changed modifier
                e.getX(),
                e.getY(),
                e.getXOnScreen(),
                e.getYOnScreen(),
                e.getClickCount(),
                e.isPopupTrigger(),
                e.getButton());
            super.processMouseEvent(myME);
        JFrame frame = new JFrame("Ctrl_Down_JList");
        frame.getContentPane().add(new JScrollPane(myJList));
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args) {
        java.awt.EventQueue.invokeLater(new Runnable() {
          public void run() {
            createAndShowUI();
    }Any ideas would be much appreciated!

    Any ideas would be much appreciated!Here is a hack, idea is same as yours, but using Robot:
    public static void createAndShowUI2() {
         String[] items = { "Sun", "Mon", "Tues", "Wed", "Thurs", "Fri", "Sat" };
         final JList myJList = new JList(items);
         myJList.addMouseListener(new MouseAdapter() {
              Robot robot;
                   try {
                        robot = new Robot();
                   } catch (AWTException ex) {
                        ex.printStackTrace();
              @Override
              public void mouseEntered(MouseEvent e) {
                   if (robot != null)
                        robot.keyPress(KeyEvent.VK_CONTROL);
              @Override
              public void mouseExited(MouseEvent e) {
                   if (robot != null)
                        robot.keyRelease(KeyEvent.VK_CONTROL);
         JFrame frame = new JFrame("Ctrl_Down_JList");
         frame.getContentPane().add(new JScrollPane(myJList));
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.pack();
         frame.setLocationRelativeTo(null);
         frame.setVisible(true);
    }It does work, but there has to be some cleaner way of doing this, perhaps using SelectionModel but I don't know about it.
    Thanks!
    Edit: I found that if Control key is pressed manually, then this hack obviously, to handle this, it has to made dirtier:
    myJList.addMouseListener(new MouseAdapter() {
         Robot robot;
              try {
                   robot = new Robot();
              } catch (AWTException ex) {
                   ex.printStackTrace();
         Timer timer = new Timer(20, new ActionListener() {
              @Override
              public void actionPerformed(ActionEvent e) {
                   if (robot != null)
                        robot.keyPress(KeyEvent.VK_CONTROL);
            @Override
         public void mouseEntered(MouseEvent e) {
              if (robot != null) {
                   robot.keyPress(KeyEvent.VK_CONTROL);
                   timer.start();
            @Override
         public void mouseExited(MouseEvent e) {
              if (robot != null) {
                   robot.keyRelease(KeyEvent.VK_CONTROL);
                   timer.stop();
    });Edited by: T.B.M on Mar 13, 2010 10:06 PM

  • Scripting a mouse click and drag

    does anyone know how to script a mouse click and drag. I tried XTools. No luck. What about Cliclick. I had tons of success with TextCommands but I dont know how to get OSAX plugin code to work. Thanks in advance.
    I am trying to move a desktop clock (QuartzClock) from the center of the screen to the side.

    I tried (unsuccessfully) to find a mouse move and click solution in Applescript.
    My search brought me to this site: http://www.geekorgy.com/index.php/2010/06/python-mouse-click-and-move-mouse-in-a pple-mac-osx-snow-leopard-10-6-x/
    The following python script will move an object from position 60.100 to 60.300
    #!/usr/bin/python
    import sys
    import time
    from Quartz.CoreGraphics import * # imports all of the top-level symbols in the module
    def mouseEvent(type, posx, posy):
    theEvent = CGEventCreateMouseEvent(None, type, (posx,posy), kCGMouseButtonLeft)
    CGEventPost(kCGHIDEventTap, theEvent)
    def mousemove(posx,posy):
    mouseEvent(kCGEventMouseMoved, posx,posy);
    def mouseclickdn(posx,posy):
    mouseEvent(kCGEventLeftMouseDown, posx,posy);
    def mouseclickup(posx,posy):
    mouseEvent(kCGEventLeftMouseUp, posx,posy);
    def mousedrag(posx,posy):
    mouseEvent(kCGEventLeftMouseDragged, posx,posy);
    ourEvent = CGEventCreate(None);
    currentpos=CGEventGetLocation(ourEvent); # Save current mouse position
    mouseclickdn(60, 100);
    mousedrag(60, 300);
    mouseclickup(60, 300);
    time.sleep(1);
    mousemove(int(currentpos.x),int(currentpos.y)); # Restore mouse position
    See also:
    http://developer.apple.com/mac/library/documentation/Carbon/Reference/QuartzEven tServicesRef/Reference/reference.html
    http://developer.apple.com/graphicsimaging/pythonandquartz.html
    Tony

Maybe you are looking for