Left Mouse Butto Command

Discussion in 'macOS' started by RMD68, Feb 11, 2015.

  1. RMD68, Feb 11, 2015
    Last edited: Feb 11, 2015

    RMD68 macrumors 6502

    Joined:
    Jan 7, 2007
    #1
    Forgive me because I know many of you are move advanced in this regard, so I will try to explain my question to the best of my ability.

    The GUI is what we see and interact with, but when we execute anything (e.g. Opening a folder), a command line in text is "read" by the computer.



    What does the system recognize the left mouse button as?

    Button 1

    Left mouse?

    Left Click?

    I can't find any information on this.

    Again what does the system command name for the left mouse button, and how should I properly space and capitalize the name for it?

    I know on the PC its "LeftMouseButton" it's spelled, spaced, and capitalized like that.

    Any help will be greatly appreciated!
     
  2. SirCarrington macrumors newbie

    SirCarrington

    Joined:
    May 16, 2012
    Location:
    Newfoundland
    #2
    Mouse events in the OS X GUI (Cocoa) are dispatched by an NSWindow object to the NSView object. Pressing the left mouse button down is an event type
    Code:
    NSLeftMouseDown
    and the method evoked is
    Code:
    mouseDown:
    This can then followed by
    Code:
    NSLeftMouseDragged
    mouseDragged:
    or
    Code:
    NSLeftMouseUp
    mouseUp:
    I hope this is what you're looking for.
     
  3. RMD68 thread starter macrumors 6502

    Joined:
    Jan 7, 2007
    #3
    Thank you for your response.

    The hotkey file looks like this:

    [hotkeys]
    CommandButton10=P


    I changed it to P because if I use the standard key, no hotkey file will be created. In this hotkey file, I've been chasing the P to LeftMouseButton.

    I don't know if you play this game, but based on your previous example, what do you think would be the right thing to type after the = sign?

    Thank you!
     

Share This Page