通过C#更改缩放
因此,我们使用此客户端使用TSSHARP通过RDP连接到远程计算机。由于某种原因,客户需要将缩放设置为125%。这使得RDP课程无法使用,因为TSPLUS从系统中缩放了缩放。因此,我想将SKRIPT从125% - > 100%切换,然后启动.EXE,然后更改缩放缩放。 所以我在这里。我的方法是通过C#更改注册表。就我个人而言,我不使用Windows,因此我的知识非常基本。我可以用我的代码更改注册表。它工作得很漂亮。我没有重新加载注册表。我试图广播更新,但实际上没有任何影响。然后,我试图杀死并重新启动桌面环境(即Windows Explorer)。重新启动起作用,但它并不关心新注册表。然后,我尝试了从微软的电源来自动点击。而那部分...绝对无法使用。所以我现在没有想法...如何使用C#在WindowsSystemSettings中单击?是否有任何形式的图书馆或类似的东西?我已经尝试了System32 API。不起作用。还是您对如何解决问题有另一个想法?就像我说的那样,我对窗户一无所知,因此欢迎任何想法。从字面上看,我只想自动8次点击,但我无法做到这一点。
So we have this client using tssharp to connect to a remote computer via RDP. The client needs the scaling set to 125% for some reason. This makes the RDP-Session unusable, because tsplus takes the scaling from the system. So I want to habe a skript that switches the scaling from 125%->100%, then starts a .exe and then change the scaling back.
So here I am. My approach was to change the registry via C#. Personally I don't use Windows, so my knowledge is very basic. I can change the registry with my code. It works beautifully. I don't get the registry to reload though. I've tried to broadcast the update, but literally nothing was affected. Then I tried to kill and restart the desktopenvironment (i.e. Windows Explorer). The restart worked, but it didn't care about the new registry. Then I tried power something from microsoft, to automate the clicks. And that piece of s...oftware is absolutely unusable for that. So I'm out of ideas now... How can I make clicks in the Windowssystemsettings with c#? Is there any kind of library or something like this? I've tried the system32 api. Didn't work. Or do you have another idea on how to approach the problem? Like I said I pretty much know nothing about windows, so any idea is welcome. I literally just want to automate 8 clicks and I'm not able to do that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论