- 浏览: 416473 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
lkun__blog:
网页打不开啊
博客搬家到http://cuiz.me -
bglmmz:
楼主怎么解决的?我用python调用ice服务,也出现此问题, ...
syscall exception: 存储空间不足,无法处理此命令 -
luliangy:
哥,你什么配置,我10W个请求10秒左右就搞定了,毫无压力,R ...
Nginx和Apache简单的并发压力测试 -
liuxuejin:
这!看的我都···········。我看代码而已。怎么
EPOLL及消息队列实现SMTP 之 青楼的故事 -
zires:
night_stalker 写道unicorn 也很好维护啊, ...
Unicorn和Passenger性能测试对比
Demo如下,大家拍砖吧!
请看下面介绍:
程序代码:
下面代码负责实现和旺旺IM通讯的接口,这里只响应了onClick事件。
下面代码是JSHelper窗体主程序,没什么意思。
下面代码是JSHelper实现页面的html:
请看下面介绍:
程序代码:
下面代码负责实现和旺旺IM通讯的接口,这里只响应了onClick事件。
using System.Linq; using System; using System.Collections.Generic; using System.Threading; using System.Windows.Forms; using System.Runtime.InteropServices; using System.Text; using wwsdkcomLib; using System.Xml; namespace JSHelper { public class Global { public static int lPluginCookie; public static int lCookie; public static object pSlot; public static string appid = "18265"; } [ComVisible(true), Guid("B221A17A-D3E7-44df-AD67-D45CFA4B5229"), ClassInterface(ClassInterfaceType.None)] public class Class1 : ISDKPlugin2 { public void OnConnect(object pApplication, int lPluginCookie) { // OnConnect 不建议使用末态对话框 //ISDKPluginQueryResult pqr = (pApplication as ISDKApplication3).GetSubScriptionInfo(lPluginCookie) as ISDKPluginQueryResult; //Global.appid = pqr.appID; } public void OnDisconnect(object pApplication, int lPluginCookie) { // OnDisConnect 不建议使用末态对话框 // MessageBox.Show("我被卸载了", "csharp helloworld"); } public void OnNotify(SDKMessageID MsgID, object pParam) { if (MsgID == SDKMessageID.NOTIFY_OFFLINE) { } else if (MsgID == SDKMessageID.NOTIFY_USERLOGIN) { } } public void OnUninstall() { } public void Require() { } } [ComVisible(true), Guid("950BFC6C-502A-4239-A36E-90893BA3B03E"), ClassInterface(ClassInterfaceType.None)] public class Class2 : ISDKPluginItem { Form1 f1; public void OnMenuClick(int lCmdID) { } // 插件作为按钮出现时候得到点击后被调用 // 本例中此方法将在点击发生后得到调用 public void OnClick() { try { this.f1.Show(); } catch(Exception ex) { this.f1 = new Form1(); this.f1.Show(); } } // 插件接入到插槽后得到通知 public void OnCreate(object pSlot, int hParentWnd, int lCookie) { } // 插件在附属插槽被销毁时候得到通知 public void OnDestroy() { // 使用模态对话框可能导致异常 // MessageBox.Show("聊天对话框输入工具条插件被销毁", "csharp allinone plugin"); } // 和插件项本身相关的消息通知 public void OnNotify(SDKItemNotifyID MsgIDD, object pParam) { } // 当插件以窗口形式出现情况下,在父窗口发生变化情况下得到通知 public void OnSize(int cx, int cy) { } } }
下面代码是JSHelper窗体主程序,没什么意思。
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace JSHelper { public partial class Form1 : Form { String path; Form2 f2; Form2 f3; Form2 f4; Form2 f5; Form2 f6; public Form1() { InitializeComponent(); this.path = Application.StartupPath; this.webBrowser1.Url = new System.Uri(this.path + "\\plugins\\" + Global.appid + "\\src\\debugger.html", false); } private void ExamplesToolStripMenuItem_Click(object sender, EventArgs e) { try { System.Diagnostics.Process.Start("explorer", this.path + "\\plugins\\" + Global.appid + "\\src\\example\\");//+this.path } catch(Exception ex) { MessageBox.Show("请打开插件中的example目录.\n\n该目录的路径可能如下:\n" + this.path + "\\plugins\\" + Global.appid + "\\src\\example\\"); } } private void HideToolStripMenuItem_Click(object sender, EventArgs e) { this.Hide(); } private void ManualToolStripMenuItem_Click(object sender, EventArgs e) { try { this.f2.Show(); } catch { this.f2 = new Form2("使用说明", new System.Uri(this.path + "\\plugins\\" + Global.appid + "\\src\\readme\\KingfishersManual.html")); this.f2.Show(); } } private void AboutJSHelperToolStripMenuItem_Click(object sender, EventArgs e) { String[] info=new String[7]; info[0] = "Version:0.9.0"; info[1] = "Release Date:2008-11-17"; info[2] = "JSHelper是一款轻巧的Javascript调试工具,"; info[3] = "以旺旺插件形式发布在阿里软件平台,"; info[4] = "依赖于jzshmyt所写Kingfishers工具包。"; info[5] = "方便使用是我的唯一目的。"; info[6] = "Author : CharlesCui"; try { this.f3.Show(); } catch { this.f3 = new Form2("关于--JSHelper", String.Join("<p/><p/>", info, 0, info.Length)); this.f3.Show(); } } private void JavascriptlogToolStripMenuItem_Click(object sender, EventArgs e) { String[] info = new String[5]; info[0] = "Kingfishers是一个用javascript语言编写的,能够代替alert,在浏览器中连续输出客户端javascript脚本运行日志的工具。"; info[1] = "主要用于客户端脚本的分析和查错。"; info[2] = "GoogleCode:http://code.google.com/p/dewind/"; info[3] = "Download:http://dewind.googlecode.com/files/Kingfishers-1.0.rar"; info[4] = "Author : jzshmyt"; try { this.f4.Show(); } catch { this.f4 = new Form2("关于--Kingfishers", String.Join("<p/><p/>", info, 0, info.Length)); this.f4.Show(); } } private void AboutAuthorToolStripMenuItem_Click(object sender, EventArgs e) { String[] info = new String[4]; info[0] = "作者博客:<a href='http://charlescui.iteye.com'>http://charlescui.iteye.com</a>"; info[1] = "作者邮箱:<a href='mailto:zheng.cuizh@gmail.com?cc=zheng.cuizh@alibaba-inc.com'>zheng.cuizh@gmail.com</a>"; info[2] = "作者寄语:欢迎广大爱好插件开发(阿里旺旺\\Android)、系统性能调优的朋友们骚扰我!"; info[3] = "作者MSN:cuizheng.hz@hotmail.com"; try { this.f5.Show(); } catch { this.f5 = new Form2("关于--作者", String.Join("<p/><p/>", info, 0, info.Length)); this.f5.Show(); } } private void ParamsToolStripMenuItem_Click(object sender, EventArgs e) { try { this.f6.Show(); } catch { this.f6 = new Form2("参数说明", new System.Uri(this.path + "\\plugins\\" + Global.appid + "\\src\\readme\\KingfishersManual.txt")); this.f6.Show(); } } } }
下面代码是JSHelper实现页面的html:
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <html> <head> <script type="text/javascript" src="logger.js" suspended=false simplemode=true skin = true cookie=false></script> <script> string_to_code=function(id){ content=document.getElementById("Content").value; return content.split('\n').join(';\n'); } </script> </head> <body> <table> <tr><td> <textarea rows="9" cols="40" id="Content"> //(JSCode) </textarea> </tr></td><tr><td> <input type=button value="Run" onclick='eval(string_to_code("Content"))' id=button1 name=button1/> <input type=button value="Clear" onclick='(document.getElementById("Content").value="")' id=button2 name=button2/> <input type=button value="Reset" onclick='(location.reload())' id=button3 name=button3/> <p/> </tr></td> </body> </html>
发表评论
-
使用CURL库在编译时遇到的问题
2010-12-29 18:49 9217表现: windows平台,使用libcur ... -
Apache模块-下载文件-性能测试打靶用的靶子
2010-12-16 18:30 2583apache模块, 下载某一个文件, 性能测试打靶用, ... -
[分享我的经验]Cpp项目测试方案设计及实现
2010-07-15 16:04 923##第一次做Cpp项目的测试设计,代码的语法还 ... -
epoll+消息队列-通过使用pthread_cond_signal的一个简单实现
2010-06-27 15:40 5956第一次用epoll去实现一 ... -
这里写的都是关于Flex的废话,不吐不快
2009-12-17 16:51 767我靠, 一个对象在MXML和AS里面一般都通用,MXML里面 ... -
Flex代码组织结构的一点经验
2009-12-15 14:23 2216在开始设计部门内部太极项目二期的时候,就一直在反思一期工作中的 ... -
要以可持续发展的眼光去做技术选型,嘿嘿^-^
2009-11-29 13:16 911部门内部有个很不错的 ... -
Your Kit Profiler解析Java性能
2009-07-22 16:24 1899#The below params will open the ... -
我知道了Ext总发出毫无意义的Http请求的原因
2009-05-08 17:21 876以前看别的项目组用Ext做的项目时,会发现经常有错误的请求发出 ... -
用JS处理HttpWatch转到的POST参数没有分隔好时候的方法
2009-01-12 15:46 1721HttpWatch版本太老的时候会出现post的参数被Http ... -
JavaScript画的股票曲线图
2008-12-16 14:42 3237目前做成这样了,用JavaScript的canvas画的,为了 ... -
javascript 中 outerHTML 、innerHTML、innerTEXT 三者的区别
2008-12-11 17:51 798Z:http://blog.52z.com/post/304. ... -
只有IE知道这句注释
2008-12-10 19:57 881<!--[if IE]>只有IE知道这句注释!&l ... -
图解程序设计关键词
2008-12-04 17:30 1124... -
旺旺SDK2.8插件 TC
2008-12-03 14:00 1678SDK2.8 联系人及联系人集合操作 入口类,实现了主程序和 ... -
练练手,好久不写都要生疏了
2008-11-22 01:26 878<!DOCTYPE HTML PUBLIC " ... -
我的Httpunit+Junit文件上传API测试用例
2008-07-29 14:16 2716package com.alisoft.aep.sip.cor ...
相关推荐
正在安装$ composer require overtrue/laravel-query-logger -vvv 当LOG_QUERY为true时,将启用Laravel查询记录器。用法$ tail -f ./storage/logs/laravel.log [2017-09-05 14:52:14] local.DEBUG: [800μs] select ...
深信服日志分析管理系统SIP-Logger白皮书
fluent-logger-golang, 用于Fluentd的结构化记录器( Golang ) fluent-logger-golang Fluentd ( Golang ) 结构化事件记录器如何安装go get github.com/fluent/fluent-logger-golang/fluent
go-logger - Go 程序的一个简单logger
资源分类:Python库 所属语言:Python 资源全名:fluent-logger-pyramid-0.0.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
chrome 调试插件,支持以下语言 Python - http://github.com/ccampbell/chromelogger-python PHP - http://github.com/ccampbell/chromephp Ruby - https://github.com/cookrn/chrome_logger Node.js ...
Laravel开发-logger-core 提供记录器特性以供重用
Laravel开发-laravel-gelf-logger 将日志发送到与gelf兼容的后端(如graylog)的包
go-logger 一个简单扩展性好的日志库 支持的输出方式 console file api 使用
编译DTStack/flinkStreamSQL 时缺少该日志jar包会报错 [WARNING] The POM for com.aiweiergou:tools-logger:jar:1.0.0-SNAPSHOT is missing, no dependency information available
Laravel开发-laravel-sql-logger 在laravel/lumen框架中记录SQL查询
Egg-logger-sls 阿里云sls的记录仪运输。 安装 $ npm i egg-sls --save $ npm i egg-logger-sls --save 用法 // {app_root}/config/plugin.js exports . sls = { enable : true , package : 'egg-sls' , } ; ...
Laravel开发-lumen-request-logger Laravel的HTTP请求记录器中间件
Laravel开发-laravel-request-logger Laravel的HTTP请求记录器中间件
Kingfishers是一个用javascript语言编写的,能够代替alert, 在浏览器中连续输出客户端javascript脚本运行日志的工具。 主要用于客户端脚本的分析和查错。
dolphinscheduler-logger-server-hadoop104
官方离线安装包,亲测可用
Laravel开发-laravel-logger-chatwork Laravel日志的聊天频道
Laravel开发-laravel-logger-cwlogs Laravel日志的CloudWatchLogs通道
官方离线安装包,亲测可用