在运行过程中注入一个按钮 [英] Injecting a button into running process

查看:70
本文介绍了在运行过程中注入一个按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正在运行的进程,需要在ToolStrip中添加一个按钮.
使用该按钮,我应该可以打开自己制作的窗口.

我想知道是否可以在该运行进程中添加按钮?那你该怎么做?

我可以找到将代码注入到进程中的文章'',但实际上没有在Menu-/Toolstrip中添加新按钮(或该数学器的其他控件).

I have a running process where I need to add a button in the ToolStrip.
With that button I should be able to open my self-made Window.

I was wondering of it''s actualy possible to add a button to that running process? And how do you do that?

I can find articles that inject code into a process'', but nothing about actualy adding a new button (or other control for that mather) into a Menu-/Toolstrip.

推荐答案

如果没有使用不熟练的技术就可以做到,我非常怀疑.如果应用程序支持插件模型,则可以尝试为其创建插件.
I''m highly suspicious if it can be done without using underhanded techniques. If the app supports a PlugIn model, you can try creating a plugin for it.


我可以使用它.

我将 .Net Reflector 6.0 与加载项 Reflexil V1一起使用.4

花了一些时间来了解所有内容.但是由于一些错误,我设法在应用程序中找到了想要的按钮.
I got it to work.

I used .Net Reflector 6.0 together with the add-in Reflexil V1.4

It took some time to understand everything. But with some trail-and-error I managed to get the button I wanted in the app.


这篇关于在运行过程中注入一个按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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