
Some will be small little one off features, others will be larger in scope.. I am writing them in Xcode 4.6.3 on a MacBook Pro running 10.8, so no idea if they will actually run on lower OS versions, but I do not see why not..
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
SyntaxWhen secure event input mode is enabled, keyboard input goes only to the application with keyboard focus and is not echoed to other applications that might be using the event monitor target to watch keyboard input. If your application implements its own password entry, you should enable secure event input while the user enters text.
Code: Select all
EnableSecureInput
DisableSecureInput
IsSecureInputEnabled() -- returns a boolean
Code: Select all
MenuBarHeight() -- returns an integer
Code: Select all
UserName() -- returns the long user name; i.e.: Shao Sean
ShortUserName() -- returns the short user name; i.e.: shaosean
Great pieces of software. Maybe the height of the menubar could help to learn if the display is Retina (provided it give the size in pixels and not points)?shaosean wrote:Description
Just something simple to get the height of the menu bar (yeah, it pretty much has always been 22 pixels, but things can change)..
SyntaxCode: Select all
MenuBarHeight() -- returns an integer
This would be absolutely great. It could fill a gap quite heavy LC. I'm not sure but then there need also a way to say to LC to use the device resolution (like iphoneUseDeviceResolution in iOS), in this way you can use the appropriate images dependind on the retina/nonretina info.shaosean wrote:Maybe I can write an external to check for Retina or not, I think I posted something about it a while back..
Code: Select all
VisibleInExpose windowID, boolean -- show/hide a window from Expose
IsVisibleInExpose(windowID) -- returns true if the window is visible in Expose, false otherwise
VisibleInAllSpaces windowID, boolean -- show a window on all Spaces (when the user switches desktop spaces, the window moves to the new Space)
IsVisibleInAllSpace(windowID) -- returns true is the window is visible in all space, false otherwise