用UAC控制计算机 [英] Controlling computer with UAC
问题描述
我创建了一个可以使用Sendkeys发送键盘命令以及移动鼠标的应用程序.当打开UAC窗口或用户在Windows登录屏幕上时,此功能不起作用.我试图更改清单文件以包括以下内容: < requestedExecutionLevel level =最高可用". uiAccess ="true". />
,然后我对该程序签名并从Program Files目录运行它.我的理解是,即使打开了UAC窗口或在登录"屏幕中,执行此操作也将允许我的程序控制计算机.然而,这种情况并非如此.谁能告诉我,uiAccess是否真的启用了此功能,还是我弄错了?如果没有,没有人能告诉我是否可以/如何使用我的应用程序吗?
谢谢!
I have created an application which can send keyboard commands using Sendkeys, as well as move the mouse. This doesn't work when a UAC window is open or when the user is on the Windows Login screen. I have tried to change the manifest file to include this: <requestedExecutionLevel level="highestAvailable" uiAccess="true" />
and then I signed the program and ran it from the Program Files directory. It was my understanding that doing this would allow my program to control the computer even when a UAC window was open or when in a Login screen. However, this is not the case. Can anyone tell me, does the uiAccess actually enable this or was I mistaken? If it doesn't can anyone tell me if/how I could do this with my application?
Thanks!
推荐答案
嗨-我认为我的信息可以帮助您:
用户帐户控制(UAC)Windows意味着=切换后的
桌面,它等同于安全桌面区域".
因此,后台的所有程序(包括普通桌面中的程序)都将仍在UAC提示期间.
但是,您做对了,应该对应用程序进行签名(据我所知,使用付费的
MS数字证书,也许您也可以使用签名工具),并且您
只能从C:\ Program Files \目录(dir)运行它.
希望以上内容对您有帮助...
祝您有个美好的一天...
最好的问候,
Fisnik
Hi - I think my information can help:
A User Account Control (UAC) Windows means = a switched
desktop which equals to "secure desktop area".
So all programs in the background including in the normal desktop,
will be still during a UAC prompt.
But, you're doing correct, the app shall be signed (as far as I know with a payed
MS digital certificate, maybe you can also use the sign tool), and you should
only run it from C:\Program Files\ directory (dir).
I hope the above helps...
Have a nice day...
Best regards,
Fisnik
这篇关于用UAC控制计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!