如何激活桌面(或将焦点设置到桌面)? [英] How to activate desktop(or set focus to it)?

查看:177
本文介绍了如何激活桌面(或将焦点设置到桌面)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何切换到桌面编程?
在不最小化打开的窗口的情况下,就像在left_click上一样.

How to switch to desktop programaticaly?
Without minimizing opened windows, just like you left_click on it.

推荐答案

您可以执行类似的操作.
您可以从Shell运行以下文件:

You can do something very similar.
You can run the following file from Shell:

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop



该文件的扩展名为"SCF",例如,名称为"Show Desktop.SCF".只需创建一个文件并单击它即可.

运行此类文件时,您可以获得所需的内容.

我确定您可以以编程方式进行操作.首先,尝试制作并运行此文件,看看这是否是您想要的.
如果找到以下C#示例:
http://blogs.msdn.com/b/robgruen/archive/2004/02/24/79294.aspx [ ^ ].

—SA



The extension of such file is "SCF", for example, the name would be "Show Desktop.SCF". Just create a file and click it.

When you run such file, you can get pretty much what you want.

I''m sure you can do it programmatically. First, try to make and run this file and see if this is what you want.
If found the following C# sample:
http://blogs.msdn.com/b/robgruen/archive/2004/02/24/79294.aspx[^].

—SA


这篇关于如何激活桌面(或将焦点设置到桌面)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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