当前位置:首页 » 服务器技术
开发技术指南» 文章正文
    引言: 基于上篇,此文将讲述如何捕获自己发送出去的消息: // hot
 

 

 ·junit使用简明手册    »显示摘要«
    摘要: 在使用xp进行开发的过程,unit test是必不可少的环节。作为unit test,junit是首选的工具。本文从使用目的、如何使用、以及使用中需要考虑的问题,简略描述了junit的基本用法。 使用目的 junit是java中书写unit test的framework,目前一些流行的unit test工具大都都是在junit上扩展而来的。目前它的版本是junit3.8.1,可以从www.junit.org上下载。 用法 1. 基本使用步骤,j......
 ·大数阶乘的计算(四)    »显示摘要«
    摘要:看了northwolves 的文章大数阶乘的计算(三) http://dev.csdn.net/article/28/28432.shtm 很有启发,联想起以前自己编写过一个类似的函数,方法与其差不多,都是动态数组的增位保存方式。效率上比northwolves兄要差一些,大约相差50%;当时以为是最快的阶乘算法了,所以看到这篇文章很是钦佩! 不过,我总觉得,这个算法还有可优化的余地,于是,又重新做了点新尝试,不想大获成功,效率比大数阶乘的计算(三)一下子......


QQ聊天记录器演示程序(二)

基于上篇,此文将讲述如何捕获自己发送出去的消息:

qq从本机发出消息无非就是两种方式.(1)按发送按钮,(2)按ctrl+enter组合键.当然自定义键除外.也不在本文考虑范围之内: 【相关文章:制造业中流程卡的生成

// hottey   于2004-6-2号 【扩展阅读:XML文件的显示——CSS和XSL

//监控ctrl+enter组合键 【扩展信息:Flash的历史及其发展方向

基于这两种发送的方式我选用:wh_callwndproc 与 wh_keyboard两种钩子.sorry,今天心情太烂(学校里的一些琐事,郁闷).实在无心继续.只能贴上源码了.大家有兴趣自己看看...有什么问题可以与我联系.delphi21@163.com

function  keyboardproc(icode: integer; wparam: wparam; lparam: lparam): lresult; stdcall;

begin

    if (wparam = vk_return) and (getkeystate(vk_control) < 0) and (lparam >= 0) then

      begin

        sendmessage(shared^.mainwnd,wm_usercmd, uc_windestroy, getforegroundwindow);

      end;

      result := callnexthookex(shared^.keyhook,icode,wparam,lparam);

end;

//监控"发送"按钮

function callwndproc(icode: integer; wparam: wparam; lparam: lparam): lresult; stdcall;

type

  msg = ^cwpstruct;

var

  p : msg;

begin

  p := msg(lparam);

//只对前台窗口进行处理

  if (p^.message = wm_command) and (loword(p^.wparam) = 1) then

    begin

      sendmessage(shared^.mainwnd,wm_usercmd, uc_windestroy, getforegroundwindow);


...   下一页
    摘要: 作者:jamie cool microsoft corporation 3/4/02 翻译:李嘉 北京.东方瑞道 2004-6-3 (接上篇) checking for updates 为更新做检查 the first thing an application needs to be able to do in order to update itself is figure out when a new update is avail......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE