English 中文(简体)
除铬外禁用其他软件
原标题:Disable other software besides Chrome
  • 时间:2012-05-22 17:05:32
  •  标签:
  • c#
  • windows

我需要写一个程序, 迫使 Google Chrome 站在前面, 并禁用所有其他动作, 例如打开另一个程序等等... 我只需要让 Google Chrome 在屏幕前, 这一切。 我不能让其他程序出现 。

Any ideas how it can be done? Thank you!

问题回答

我敢肯定,只要你可以得到的是一个弹出窗口,没有滚动条或顶边栏,无法调整大小,但JS不会允许你操纵当前窗口之外的东西,就像您无法在一框架内自动单击链接一样。

我非常怀疑这在Windows是可能的,如果这是道德的,如果在家庭个人电脑上使用的话。这是否是一个信息站风格的应用程序?

can 在某种程度上控制了浏览器中出现的内容, 例如无滚动条窗口, 但比这更不可能 。

绝对不道德,但101堡等应用程序可以做到这一点。过去我曾使用C和Win32 API做了类似的事情。我不会为你写代码,但我基本上做了以下工作:

  1. Find the desktop and hide it
  2. Find and hide the taskbar
  3. Find and destroy the start button
  4. Capture special keypresses and prevent them from working as expected

您也需要对一个进程列表进行民意调查, 因为即使做了所有这些工作, 也不妨碍用户下载并执行文件。 因此, 如果您在进程列表中发现了一个新的应用程序, 您可以销毁它 。

您可以使用 user 322. dll with C# 来做到这一点, 但这样的应用程序最好留给商业软件包。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签