单击图标时保持关注的应用程序 [英] Keep the focussed application when clicking on an icon

查看:56
本文介绍了单击图标时保持关注的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在c#中编写了一个程序,只是粘贴到剪贴板中

我已将其固定到任务栏。

当我点击图标时,程序是哪个焦点然后失去它。



当我点击我的程序的图标时,有什么办法可以阻止任意程序失去焦点吗?


我尝试了什么:



我不知道该尝试什么。所以任何想法都会有用。

I have written a program in c# that just pastes into the clipboard
I have pinned it to the task bar.
When I click on the icon the program which had the focus then loses it.

Is there any way I can stop any arbitrary program from losing the focus when I click on the icon for my program?

What I have tried:

I don't know what to try. So any ideas would be useful.

推荐答案

不,你不能。当你点击任务栏时,你将焦点从当前应用程序切换到桌面 - 然后桌面决定它是一个任务栏图标,并激活与之关联的应用程序。

不幸的是,Windows没有'保持任何焦点历史,以便你可以;甚至找出以前有焦点的应用程序并切换回它。

另一种方法是你将你的应用程序设置为智能钥匙,当按下特定组合时,让Windows激活它。
No, you can't. WHen you click on the task bar, you switch the focus from the current application to the desktop - which then decides it's a task bar icon, and activate sthe application associated with it.
Unfortunately, Windows doesn't maintain any "focus history" so you can;t even find out which application previously had the focus and switch back to it.
The alternative is you set your app up as a "smart key" and get Windows to activate it when a specific combination is pressed.


这篇关于单击图标时保持关注的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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