Custom Windows 7 Start Menu Search Provider

不羁的心 提交于 2019-12-21 20:23:14

问题


I'd like to write custom providers for start menu searching, but I can't seem to find where to begin.

Things I'd like to be able to do when I type in the search box on the start menu

  • Type "thomas" and see "IM Thomas" (if a Pidgin/whatever-IM-client-with-API contact exists with the name match)
  • Type "=1+2*3" and see "7", or "=2 gallons in ounces" and see "256"
  • Anything else I can think up where I have a store of custom data results that could be launched from the start menu. This would be especially useful for custom applications, letting our users type "order XYZ", which would search orders in the application and let the user open them from the start menu.

I'm not looking for a tool to do this for me. Rather, I'd like to find any documentation on writing custom search result providers, ideally in C#.


回答1:


I believe you are looking for the Windows 7 API Code Pack for .NET.

On a related note, you can add all kinds of searches to your favourites in Windows Explorer. Check out Windows 7 Search Federation Providers.




回答2:


Scott Hanselman's blog covers how to create a simple search connector by creating .osdx files, which are XML files that configure which URL(s) to invoke with the search terms. He then shows how to enable those connectors from within the start menu itself by adding entries to the registry.




回答3:


You might want to look into SlickRun a search bar alternate/replacement. While I dont think it can be put in the place of the actual start menu search, going to thier site and getting involved will probably get you a lot closer to where you want to go.

For all I know, the functionality you describe may already be an option.




回答4:


I just discovered Start++, which has plug-in support (it appears to use JavaScript with Windows Scripting Host).



来源:https://stackoverflow.com/questions/1375742/custom-windows-7-start-menu-search-provider

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!