博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
好好学习
bilbo.cublog.cn
管理博客
发表文章
留言
收藏夹
· Compiler
· Unix_Linux
博客圈
音乐
相册
文章
· AutoHotKey
· C/C++
· Caml
· Perl
· Tcl & Expect
· 其他编程语言
· Visual Language
· Compiler Engineering
· Embedded System
· FieldBus
· Networking
· Hardware Desing
· Safety System
· Unix_Linux
· Software Engineering
· GSM/GSM-R
· 技术幽默
· 读书时间
· Good Resource
· 关注社会
· 胡言乱语
首页
关于作者
姓名:你知道 职业:IT 年龄:每年大一岁 位置:地球 个性介绍:挺笨 Email: bilbo0214@163.com
||
<<
>>
||
我的分类
文章列表 - AutoHotKey
Text2HexViewer
<div align="center"><img src="http://blogimg.chinaunix.net/blog/upfile2/080830205245.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"><br><br><div style="text-align: left;">从autohotkey论坛上看到了一个类似的代码,稍微修改了一下。<br>http://www.autohotkey.com/forum/topic34978.html&highlight=hex<br><br>源代码和可执行文件如下:<br><table style="border-collapse: collapse;" align="center" border="1" bordercolor="#dddddd" cellpadding="0" cellspacing="0" width="360"> <tbody><tr height="60"><td align="center" width="60"><img src="/fileicon/rar.gif" alt="" border="0"></td><td> <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr height="20"><td align="center" width="40">文件:</td><td>Text2HexViewer.rar</td></tr> <tr height="20"><td align="center" width="40">大小:</td><td>443KB</td></tr> <tr height="20"><td align="center" width="40">下载:</td><td><a href="http://blogimg.chinaunix.net/blog/upfile2/080830205……
查看全文
发表于:2008-08-30 ┆
阅读(78)
┆
评论(1)
没啥用的程序
<div align="center"><img src="http://blogimg.chinaunix.net/blog/upfile2/080817215534.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"><br><br><div style="text-align: left;">没什么主要功能的程序,主要是把从autohotkey论坛上看到的一些代码集成在一起试验一下。<br><br>源代码如下:<br><table style="border-collapse: collapse;" align="center" border="1" bordercolor="#dddddd" cellpadding="0" cellspacing="0" width="360"> <tbody><tr height="60"><td align="center" width="60"><img src="/fileicon/rar.gif" alt="" border="0"></td><td> <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr height="20"><td align="center" width="40">文件:</td><td>NoUseDemo.rar</td></tr> <tr height="20"><td align="center" width="40">大小:</td><td>393KB</td></tr> <tr height="20"><td align="center" width="40">下载:</td><td><a href="http://blogimg.chinaunix.net/blog/upfile2/080817220340.rar">下载</a></td></tr> </tbody></table> </td></t……
查看全文
发表于:2008-08-17 ┆
阅读(70)
┆
评论(0)
DocViewer1.1发布(AHK实现)
<div>业余时间写了一些小程序,放在自己的机器里时间长就忘了,公布出来,也许对其它的朋友能有些帮助。</div> <div>来自网络,回归网络。</div> <div>DocViewer是为了验证我的一个想法才写的,前后花了两天时间,具体内容和使用可以参见Readme.txt。</div> <div>如果对这个程序有任何意见或建议或什么想说的,都可以发邮件给我:<a href="mailto:wang.lei.214@163.com">wang.lei.214@163.com</a></div> <div>界面如下:</div> <div> <div align="center"><img src="http://blogimg.chinaunix.net/blog/upfile2/071123181648.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"></div></div> <div> </div> <div>源代码和执行程序包如下,纯绿色软件,不需要安装。</div> <div> <table style="border-collapse: collapse;" align="center" border="1" bordercolor="#dddddd" cellpadding="0" cellspacing="0" width="360"> <tbody> <tr height="60"> <td align="center" width="60"><img alt="" src="http://control.cublog.cn/fileicon/rar.gif" border="0"></td> <td> <table style="border-collapse: collapse;" border="0" c……
查看全文
发表于:2007-11-23 ┆
阅读(638)
┆
评论(0)
非常简单的COM dumper(AHK实现)
<div> <div align="center"><img src="http://blogimg.chinaunix.net/blog/upfile2/071123180346.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"></div></div> <div> </div> <div>调用port.dll完成通信功能,波特率这里是写死的,115200,8,N,1,用COM1。</div> <div>AHK做的界面。</div> <div>源程序包如下:</div> <div> <table style="border-collapse: collapse;" align="center" border="1" bordercolor="#dddddd" cellpadding="0" cellspacing="0" width="360"> <tbody> <tr height="60"> <td align="center" width="60"><img alt="" src="http://control.cublog.cn/fileicon/rar.gif" border="0"></td> <td> <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody> <tr height="20"> <td align="center" width="40">文件:</td> <td>ComDemo.rar</td></tr> <tr height="20"> <td align="center" width="40">大小:</td> <td>29KB</td></tr> <tr height="20"> <td align="center" width="40">下载:</td> <td><a href="http://blogimg.chinaunix.net/blog/……
查看全文
发表于:2007-11-23 ┆
阅读(418)
┆
评论(0)
yet another xeval(AutoHotKey实现)
这个程序是按照xeval的功能用AHK重新实现的。<br>原有的xeval程序(xeval 可扩展实时计算工具 v1.0)请参见王咏刚的个人网站,2004年的网页,不知道现在是否还在了。<br><br>因为AHK本身对热键支持很好,所以实现起来比较简单,代码只有C++版本的1/5。<br><br>这里修改了热键的定义方式,主要为了方便实现:<br>!表示shift键<br>^表示ctrl键<br><br>AHK源代码如下:<br>; Yet Another xeval<br>; Author: bilbo<br>; Create Date: Nov 04, 2007<br>; Modified Date: Nov 07, 2007<br>; Description:<br>; similar to xeval, autohotkey implementation.<br><br>#persistent<br><br>;程序名和关于字符串<br>progname = Yet Another Xeval<br>version = Version : 1.0<br>author = Author : Bilbo<br>datestring = Date : Nov 04, 2007.<br><br>;创建系统托盘菜单<br>Menu, Tray, NoStandard<br>Menu, tray, add, 帮助(&H)..., Readme<br>Menu, tray, add, 关于yaxeval(&A)..., HelpAbout <br>Menu, tray, add ; Creates a separator line.<br>Menu,Tray,Add, 退出(&X), ProgramExit<br>Menu, Tray, Click, 1<br>Menu, Tra……
查看全文
发表于:2007-11-07 ┆
阅读(530)
┆
评论(0)
AutoHotKey代码模板
<span style="color: rgb(0, 102, 102);"> /*</span><br style="color: rgb(0, 102, 102);"><span style="color: rgb(0, 102, 102);">[program name] v[#].[#]</span><br style="color: rgb(0, 102, 102);"><span style="color: rgb(0, 102, 102);"> by [author name]</span><br style="color: rgb(0, 102, 102);"><br style="color: rgb(0, 102, 102);"><span style="color: rgb(0, 102, 102);">[short description]</span><br style="color: rgb(0, 102, 102);"><span style="color: rgb(0, 102, 102);">*/</span><br style="color: rgb(0, 102, 102);"><br style="color: rgb(0, 102, 102);"><span style="color: rgb(0, 102, 102);">/*</span><br style="color: rgb(0, 102, 102);"><span style="color: rgb(0, 102, 102);">To Do:</span><br style="color: rgb(0, 102, 102);"><span style="color: rgb(0, 102, 102);">¡¥¡¥¡¥¡¥¡¥¡¥</span><br style="color: rgb(0, 102, 102);"><span style="color: rgb(0, 102, 102);">- [...]</span><br style="color: rgb(0, 102, 102);"><span style="col……
查看全文
发表于:2007-10-08 ┆
阅读(649)
┆
评论(0)
AutoHotKey例子(pic2txt)
AutoHotKey的论坛中有一篇文章 http://www.autohotkey.com/forum/topic10957.html 介绍了如何在一个编译后的文件中加入位图,其实就是保存了位图的二进制数据,在运行期再次生成。<br><br>它提到了一个将位图文件转换成文本的AutoHotKey脚本,我试验了一下,效率太低了。看来,AutoHotKey不太适合解决这种数据文件操作的应用,我用perl实现了这个功能,代码没有什么优化,但速度很快。<br><br>再用AutoHotKey做个简单的界面,哈哈,和原来的一样。<br><br>下面是程序的界面:<br><div align="center"><img src="http://blogimg.chinaunix.net/blog/upfile/071006144547.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"></div><br><br>可执行程序可从下面下载:<br><table style="border-collapse: collapse;" align="center" border="1" bordercolor="#dddddd" cellpadding="0" cellspacing="0" width="360"> <tbody><tr height="60"><td align="center" width="60"><img src="/fileicon/rar.gif" alt="" border="0"></td><td> <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody……
查看全文
发表于:2007-10-06 ┆
阅读(678)
┆
评论(0)
AutoHotKey例子(简单的CRC32生成器)
花了几个小时的时间用AutoHotKey写了一个CRC32生成的GUI,算法是从AutoHotKey的论坛上找到的,效率很低,不要对大文件操作。<br><br>下面是界面:<br><div align="center"><img style="width: 585px; height: 434px;" src="http://blogimg.chinaunix.net/blog/upfile/071006130051.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"></div><br><br>可执行程序可以从下面下载:<br><table style="border-collapse: collapse;" align="center" border="1" bordercolor="#dddddd" cellpadding="0" cellspacing="0" width="360"> <tbody><tr height="60"><td align="center" width="60"><img src="/fileicon/rar.gif" alt="" border="0"></td><td> <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr height="20"><td align="center" width="40">文件:</td><td>crc32生成器.rar</td></tr> <tr height="20"><td align="center" width="40">大小:</td><td>303KB</td></tr> <tr height="20"><td align="center" width="40">下载:</td><td><a href="http://blogimg.chinaunix.net……
查看全文
发表于:2007-10-06 ┆
阅读(599)
┆
评论(0)
使用AutoHotKey实现ExecLog
我喜欢将简单的程序用不同的语言的实现,这样可以快速的学习一门新的语言。ExecLog程序我用perl、tcl/tk都实现了,现在用AutoHotKey来实现。<br><br>不同的是AutoHotKey本身并没有输入输出重定向的功能,这一点不如perl。但AutoHotKey提供了调用DLL的机制,因此我们可以使用CMDret来完成具体的程序重定向的功能,而用AutoHotKey提供一个GUI的接口,这也正是我觉得AutoHotKey方便的原因之一,它给你一种轻便的GUI的实现方法,你可以将处理与界面用不同的语言来实现,这样可以最大程度发挥每种语言的优势。<br><br>下面是AutoHotKey版本的ExecLog程序的界面:<br><br><div style="text-align: left;"><img style="width: 579px; height: 423px;" src="http://blogimg.chinaunix.net/blog/upfile/071004231700.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"></div><br><br>脚本源代码如下:(蓝色为重要的部分)<br><br>; 创建菜单<br>Menu, FileMenu, Add, E&xit, FileExit<br>Menu, HelpMenu, Add, &About, HelpAbout<br><br>; 创建菜单条,加入菜单<br>Menu, MyMenuBar, Add, &File, :FileMenu<br>Menu, MyMenuBar, Ad……
查看全文
发表于:2007-10-04 ┆
阅读(738)
┆
评论(0)
使用AutoHotKey程序与RedBoot协作
前段时间研究使用SecureCRT的脚本功能与RedBoot交互,参见<a href="http://blog.chinaunix.net/u/29291/showart_384869.html" target="_blank">blog article</a>。<br><br>但这种方法的缺点是绑定了工具,必须使用SecureCRT,而且只能使用vbs,js或perl来写脚本。这几天研究如何使用AutoHotKey来完成类似的功能,当然原来是完全不同的,AutoHotKey是通过仿真键盘操作和鼠标操作来替代人的操作,这样可以不受具体工具的限制。<br><br>界面如下:<br><div align="center"><img src="http://blogimg.chinaunix.net/blog/upfile/071001235746.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"></div><br><br>程序包可从下面下载:<br><table style="border-collapse: collapse;" align="center" border="1" bordercolor="#dddddd" cellpadding="0" cellspacing="0" width="360"> <tbody><tr height="60"><td align="center" width="60"><img src="/fileicon/rar.gif" alt="" border="0"></td><td> <table style="border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0" width="100%"> <tbody><tr height="20"><td align="center……
查看全文
发表于:2007-10-01 ┆
阅读(659)
┆
评论(0)
AutoHotKey简单例子(TreeView)
比如想把一个指定格式的INI文件用TreeView的方式显示,如下图。<br><div align="center"><img src="http://blogimg.chinaunix.net/blog/upfile/070927235417.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"></div><br><br><br>脚本源代码如下:<br>Gui, Add, Button, x420 y10 w45 h29 gBtnParse, parse<br>Gui, Add, Button, x420 y50 w45 h29 gBtnQuit, quit<br>Gui, Add, TreeView, x10 y10 h270 w400 vMyTreeView<br><br>root := TV_Add("configuration")<br><br>Gui, Show, x166 y148 h285 w474, Tree demo<br>return<br><br>BtnParse:<br>Gui +OwnDialogs ; Force the user to dismiss the FileSelectFile dialog before returning to the main window.<br>FileSelectFile, SelectedFileName, 3,, Open File, Text Documents (*.ini)<br>if SelectedFileName = ; No file selected.<br> return<br>Gui, 1:Submit, NoHide ; ; Save the input from the user to each control's associated variable.<br>IniRead, v1, %SelectedFileName%, Block 1, size<br>IniRead, v2, %SelectedFileName%, Bl……
查看全文
发表于:2007-09-27 ┆
阅读(733)
┆
评论(0)
AutoHotKey简单例子
经常在写程序的时候想加一些简单的界面,但总觉得自己知道的解决方案成本太高,所以一直在寻找容易学习的GUI工具,偶然发现了AutoHotKey,觉得很合适。我用过Win32 SDK,C++Builder,Java AWT,Tcl/Tk,perl/Tk,perl Win32::GUI,FLTK来写GUI的程序,但接触了AutoHotKey后,还是觉得AutoHotKey相比以前的工具建立GUI能更加快速和简单。(当然这里不是指复杂的GUI交互过程,而是针对非常简单的应用而言)<br><br>如果想建立一个GUI原型或给某个console程序加一个GUI的shell,我觉得AutoHotKey是非常不错的选择。你不用管窗口的布局(Tk的layout就让我很晕),你不用知道什么Event Loop(因为我只想要个能工作的界面),你甚至不用OO(针对于rapid prototype或little application,我不喜欢杀鸡也用牛刀)。你只要有一点点程序设计的基础就可以很容易的学会了AutoHotKey。<br><br>看看我自己写的一个简单的程序(为我的计时程序加一个GUI shell)。<br><div align="center"><img src="http://blogimg.chinaunix.net/blog/upfile/070923224831.jpg" onload="javascript:if(this.width>500)this.width=500;" border="0"></div><br>下面是它的脚本:<br>;离线宽带上网时间统……
查看全文
发表于:2007-09-23 ┆
阅读(804)
┆
评论(5)