Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

RMD68

macrumors 6502
Original poster
Jan 7, 2007
283
10
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!
 
Last edited:
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.
 
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.

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!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.