|
[求助]请高手给几个e文的软件调试论坛地址
俺还是需要先在看雪打好基础才能继续 |
|
|
|
[求助]类似QQ的CTRL+ALT+Z激活是如何实现的
搞定 就是在FormCreate时候 HWND hWnd = this->Handle; if(GlobalFindAtom("MyHotKey") != 0) { hotkeyid=GlobalAddAtom("MyHotKey"); if( RegisterHotKey(hWnd,hotkeyid,MOD_ALT,VK_F2) == 0 ) { printError("RegisterHotKey"); } } 在FormDestroy时候 UnregisterHotKey(NULL,hotkeyid); GlobalDeleteAtom(hotkeyid); 做一个OhHotKey事件 void __fastcall TForm1::OnHotKey(TMessage Message) { MessageBox(NULL,"ok","ff",0); //你自己想做的事儿 } 最后用如下的宏来完成相当于注册 OnHotKey 的处理 BEGIN_MESSAGE_MAP VCL_MESSAGE_HANDLER(WM_HOTKEY, TMessage, OnHotKey) END_MESSAGE_MAP(TForm) |
|
|
|
|
|
[求助]类似QQ的CTRL+ALT+Z激活是如何实现的
又做了个实验,加了一个窗口大小resize的handler MESSAGE_HANDLER(WM_SIZE, TWMSize, OnWMSize); 这个事件可以被截获到到。 那就说明程序结构没问题。 怎么回事儿呢。 |
|
[求助]类似QQ的CTRL+ALT+Z激活是如何实现的
查了些资料,照葫芦画瓢写了下,但还是不起作用呀。。 void __fastcall OnHotKey(TMessage Message); BEGIN_MESSAGE_MAP MESSAGE_HANDLER(WM_HOTKEY, TMessage, OnHotKey) END_MESSAGE_MAP(TForm) 这个应该就是定义WM_HOTKEY如何handle了。 但我怎么从来进不去OnHotKey事件呢?? |
|
[求助]类似QQ的CTRL+ALT+Z激活是如何实现的
看MSDN说 The WM_HOTKEY message is posted when the user presses a hot key registered by the RegisterHotKey function. The message is placed at the top of the message queue associated with the thread that registered the hot key. |
|
[求助]类似QQ的CTRL+ALT+Z激活是如何实现的
谢啦,api知道了。现在有一个地方不是很懂 先GlobalAddAtom 然后RegisterHotKey 结束时候 GlobalDeleteAtom UnRegisterHotKey 消息处理部分没搞懂。。 C++builder里面应该怎么弄呢 看到个delphi例子 procedure TForm1.WMHotKey(var Msg: TWMHotKey); begin if Msg.HotKey = HotKeyId[0] then ShowMessage('F2'); end; 这个按F2事件发生后,会有一个消息WM_HOTKEY 但这个消息怎么触发到这个WMHotKey函数的呢。。我没看到哪里把函数指针作为callback之类注册到哪里呀。。 |
|
[求助]类似QQ的CTRL+ALT+Z激活是如何实现的
找到这么个说明,不是很明确。。 其实现过程非常简单,只需先向操作系统添加一个全局原子(Atom),然后再向操作系统登记一个热键,当程序在后台运行期间一旦有此热键按下,操作系统将会抛出系统消息WM_HOTKEY,所以服务程序只需在 WM_HOTKEY消息响应函数中添加相应代码即可实现服务程序的后台激活。 |
|
|
|
[求助]OD有没有这样的功能或插件啊?拜过几路神仙!![求助]
条件设置例子来一个巴 |
|
PEBundle 2.0x - 2.4x-> Jeremy Collake [Overlay]手动脱壳
不行,脱壳还在菜鸟状态。先了解名词去 |
|
[注意]我把论坛脱壳入门初级教学打包成电子书了。
我也要亚 evilight@gmail.com |
|
[讨论]征集邀请制的邀请码分配建议
哇赛早知道我多注册几个号了。。。 |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值