如何从C#中打开Windows XP启动菜单 [英] how can open windows xp start menu from c#

查看:104
本文介绍了如何从C#中打开Windows XP启动菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人:
有什么办法可以从C#中打开Windows的开始菜单吗?

例如:如果单击某些按钮,则Windows XP的开始菜单将打开.

就像您单击
时一样
开始---所有程序

谢谢.

Dear All:
Is there any way to open windows start menu from c#?

For example: if I click some button then windows xp start menu become open.

Like when you click

start---all program

Thank you.

推荐答案

使用 ^ ]确定如何获取所需的Windows句柄并发送click事件.

问候
Espen Harlinn
Use Spy++[^] to determine how to get the required windows handle and send a click event.

Regards
Espen Harlinn


有几种方法可以做您想要的事情,如果您在询问之前不愿意执行Internet搜索,您可能会发现
There are several ways to do what you want and if you had bothered to perform an internet search before asking here, you might have found this[^].

Please, next time, search first. Don''t expect others to do your work for you.


另一种更直接,更通用的方法是将P/Invoke与Windows API SendInputhttp://msdn.microsoft.com/en-us/library/ms646310(v=vs .85).aspx [ ^ ].

该API在非常低的级别上模拟键盘和鼠标输入,就好像从硬件驱动程序中触发了输入一样,这使得这种均匀模拟的方式普遍适用于任何情况.

—SA
Another, more direct and universal way of doing this is using P/Invoke with Windows API SendInput, http://msdn.microsoft.com/en-us/library/ms646310(v=vs.85).aspx[^].

This API simulate keyboard and mouse input on a very low level, as if the input even is fired from the hardware driver, which makes this way of even simulation universally applicable to any situation.

—SA


这篇关于如何从C#中打开Windows XP启动菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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