如何以编程方式更改计算器等外部程序的属性? [英] How do I change properties of an extern program like calculator programmatically?

查看:119
本文介绍了如何以编程方式更改计算器等外部程序的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



我想改变windows计算器和形状等数字按钮的颜色。我怎样才能以编程方式完成它们?



请帮忙。 :)

Hi Everyone!

I wanna change the colour of the number buttons of the windows calculator and shape and etc.. How can I do them programmatically?

Please help. :)

推荐答案

没有通用方法允许您在单独的应用程序中更改任何外部应用程序中按钮的颜色,大小,形状 - 虽然你可以根据应用运行的个人情况来做(即使这不容易或特别可靠)。



为什么不呢?因为并非所有应用程序都是由同一个人编写的,或者使用相同的框架,甚至是语言 - 因此它们都是不同的。并且Windows中没有任何机制可以让我的应用程序控制你的应用程序的外观或行为 - 如果你考虑它,你就不会想要,因为我可以修补我的应用程序,其他任何人都可以修补你的银行应用程序,购物时的浏览器等等。



我建议如果你想要一个看起来不同的计算器,你就自己写吧!他们真的并不复杂(哎呀, 学生 应该能够写出来!)并且你会得到更好的结果。
There is no "generic method" which will allow you to change the colour, size, shape of buttons in any external application from within your separate application - although you can do it on an individual basis which the app is running (and even that isn't easy or particularly reliable).

Why not? Because not all apps are written by the same person, or using the same framework, or even language - so they are all different. And there is no mechanism in windows designed to let my app control how your app looks or behaves - and if you think about it, you wouldn't want that because I you can "tinker" with my app, anyone else can tinker with your bank app, your browser when you are shopping, and so forth.

I'd suggest that if you want a "different looking" calculator you just write it yourself! They really aren't complicated (heck, students are expected to be able to write them!) and you will get a better result.


这篇关于如何以编程方式更改计算器等外部程序的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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