问题描述
我从未为Vista或Seventh编程过一个小工具,但我想尝试制作一个.但是我从哪里开始呢?我试图在google和msdn上搜索,但是我没有找到有用的东西.在Vista和Seven中,非常非常古老的东西(Vista beta东西)已经成为小工具,或者是小工具之间的差异.但这对我没有帮助,因为一开始我不知道如何制作小工具...我什至都没办法找出它们写的是什么...
I have never programmed a gadget for Vista or Seven, but I would like to try to make one. But where do I start? I have tried to search around on google and msdn, but I haven't managed to find anything useful. Either very, very old stuff (Vista beta stuff), already made gadgets or differences between gadgets in Vista and Seven. But that doesn't help me, since I don't have a clue how to make a gadget in the first place... I haven't even managed to find out what they are written in...
那么,有人可以帮助我踢球吗?
So, could anyone help me out with a kick start?
- 我从哪里开始?
- 我需要知道什么?
- 他们写的是什么?
- 它们是如何包装"的?
换句话说,如何从使用Visual Studio全新安装Windows 7到可以安装并放在Windows 7桌面上的工作小工具.
In other words, how do I get from a clean install of Windows 7 with Visual Studio to a working Gadget that I can install and put on my Windows 7 desktop.
推荐答案
此处是 Vista小工具. 7个小工具和更改的一些初步文档.我认为唯一的主要变化是小工具不再驻留在侧边栏中,因此停靠/停靠事件"现在是向后兼容的东西,实际上不应该使用.
Here's an MSDN article on Vista Gadgets. Some preliminary documentation on 7 gadgets, and changes. I think the only major changes are that Gadgets don't reside in the Sidebar anymore, and as such "dock/undock events" are now backwards-compatibility cludges that really shouldn't be used.
最好的入门方法可能只是调整现有的小工具.上面的链接中有一个小工具示例,或者您可以自己选择一个小工具.
Best way to get started is probably to just tweak an existing gadget. There's an example gadget in the above link, or you could pick a different one out on your own.
小工具用HTML,CSS和某些IE脚本语言(通常是Javascript,但我相信VBScript也可以)编写.对于真正花哨的事情,您可能需要创建一个ActiveX对象,因此了解COM的C#/C ++可能会很有用.
Gadgets are written in HTML, CSS, and some IE scripting language (generally Javascript, but I believe VBScript also works). For really fancy things you might need to create an ActiveX object, so C#/C++ for COM could be useful to know.
小工具打包为".gadget"文件,这些文件只是重命名的Zip归档文件,其中的顶层包含小工具清单(gadget.xml).
Gadgets are packaged as ".gadget" files, which are just renamed Zip archives that contain a gadget manifest (gadget.xml) in their top level.
这篇关于如何开始使用Windows 7小工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!