在Lion中调用App Expose [英] Calling App Expose In Lion

查看:175
本文介绍了在Lion中调用App Expose的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以通过编程方式(例如在事件点击等方式)在Lion中调用App Expose?

Is there any way to call App Expose in Lion programmatically, for example on an event tap, etc?

推荐答案

如果您不介意使用 TOTALLY UNDOCUMENTED API,该API可能随时更改,恕不另行通知:

If you don't mind using a TOTALLY UNDOCUMENTED API, which might change at any point without notice:

void CoreDockSendNotification(CFStringRef, void *);
(...)
CoreDockSendNotification(@"com.apple.expose.front.awake", NULL);

其他已知参数是@"com.apple.expose.awake"@"com.apple.dashboard.awake",它们分别激活任务控制和仪表板. @"com.apple.showdesktop.awake"用于激活Show Desktop,但不再在当前版本的macOS上起作用.

Other known arguments are @"com.apple.expose.awake" and @"com.apple.dashboard.awake", which activate Mission Control and Dashboard, respectively. @"com.apple.showdesktop.awake" used to activate Show Desktop, but no longer works on current versions of macOS.

请注意,大多数应用程序不应使用这些调用-这些操作旨在由用户直接调用.

Note that most applications should not use these calls -- these actions are intended to be invoked directly by the user.

这篇关于在Lion中调用App Expose的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆