搜索
查看
编辑修改
首页
UNITY
NODEJS
PYTHON
AI
GIT
PHP
GO
CEF3
JAVA
HTML
CSS
搜索
盐析白兔
这个屌丝很懒,什么也没留下!
关注作者
热门标签
jquery
HTML
CSS
PHP
ASP
PYTHON
GO
AI
C
C++
C#
PHOTOSHOP
UNITY
iOS
android
vue
xml
爬虫
SEO
LINUX
WINDOWS
JAVA
MFC
CEF3
CAD
NODEJS
GIT
Pyppeteer
article
热门文章
1
新手建站教程—宝塔面板的安装与使用_宝塔面板建站教程
2
python中的async和await_python main函数 await
3
免费分享一套SpringBoot+Vue校园论坛(微博)系统【论文+源码+SQL脚本】,帅呆了~~
4
Ethernet 10/25G IP快速上手及PG210用户手册翻译[单次发包测试]
5
一些解决被Github拒绝链接的方法_ubuntu github拒绝连接
6
uiautomator2安装
7
信息系统分析与设计 第七章 用例建模_备选事件流
8
【二十四】springboot整合spring事务详解以及实战_springboot实现事务
9
LLaMA、Baichuan、ChatGLM、Qwen、天工等大模型对比_chatglm qwen
10
这些是Python 官方推荐的最好书籍(推荐)_python官方推荐的三本书
当前位置:
article
> 正文
在mudbuilder上的胡扯3_zmud 4
作者:盐析白兔 | 2024-06-14 15:52:54
赞
踩
zmud 4
大力丸for雄风渐失的zmud4.62
zmud4.62已经比较老了,需要壮壮阳咯.(ps:福州小贩的大力丸从来就没卖的,当年可害得俺白ask了一个下午。。。。。。)
据俺所知,扩展zmud462的方法有4种。(嘿嘿,和孔乙己的"茴"有得一拼)
1、socket
这个462的年纪大了,比较萎,硬度不够,"插"不了,插件(plugin)只有5.30版之后才行,俺就戴上套子来当插件用。具体做法请看俺以前发的帖子。这种做法功能是无坚不摧,但不方便维护。
2、#url指令
自己在本机弄一个webserver,462通过#url发送命令,webserver收到后做相应的处理再把结果写入#url中约定的文件名,462再通过#read把处理结果读出来。这种做法绕了弯子搞,看着都累。
3、dde
python版ddeserver:
---------------------------------------------------
#-*- coding:cp936 -*-
import win32ui
from pywin.mfc import object
import dde
from time import sleep
class muddde(object.Object):
def __init__(self, topicName):
topic = dde.CreateTopic(topicName)
topic.AddItem(dde.CreateStringItem(""))
object.Object.__init__(self, topic)
class call_func(muddde):
def Request(self, input):
#input就是zmud传过来的参数
#这里可以放任何您需要的代码
return "you send me:%s" %input
server = dde.CreateServer()
server.AddTopic(call_func("func"))
server.Create('python')
print "DDE服务启动完毕......"
while 1:
win32ui.PumpWaitingMessages(0, -1)
sleep(0.001)
------------------------------------------------------------
在zmud中:dde("python","func","ooxx")就是以参数"ooxx"调用call_func的Request函数,任何zmud做不了或速度不够的操作都可以在Request()中完成。当然,类似call_func的可以有多个,每个对应一个函数供调用。
这种做法证明了python很好,很强大。
4、dde+com
dde是个老掉牙的家伙了,现在比较流行的是com,象nt3中mushclient就是使用了com来调用mapper.exe,整体效率很高,搞得462很没面子(tnnd,调mapper.exe这种外挂级的东西算不算作弊啊?封杀封杀),不过,python也是bug级的,dde+com如下:
-------------------------------------------------------------------
#-*- coding:cp936 -*-
import win32ui
from pywin.mfc import object
import dde
from time import sleep
import win32com.client
o = win32com.client.Dispatch("mapper.path")
class muddde(object.Object):
def __init__(self, topicName):
topic = dde.CreateTopic(topicName)
topic.AddItem(dde.CreateStringItem(""))
object.Object.__init__(self, topic)
class call_func(muddde):
def Request(self, input):
ret=""
o.getroom(1)
ret+="getroom(1)="+o.result.encode("cp936")
o.getidfrname("武庙")
ret+="/n"+"getidfrname(武庙)="+o.result.encode("cp936")
o.search(1,25,"mr")
ret+="/n"+"search(1,25,mr)="+o.result.encode("cp936")
o.getareapath(0, 2)
ret+="/n"+"getareapath(0, 2)="+o.result.encode("cp936")
o.getrmid("武庙|e|u|w")
ret+="/n"+"getrmid(武庙)="+o.result.encode("cp936")
return ret
server = dde.CreateServer()
server.AddTopic(call_func("request"))
server.Create('python')
print "DDE服务启动完毕......"
while 1:
win32ui.PumpWaitingMessages(0, -1)
sleep(0.001)
------------------------------------------------------------------
在zmud中:dde("python","func","ooxx")就可以调用mapper.exe的各接口函数。
这种做法证明了python很黄,很暴力。
5、纯python完成mapper.exe的功能
这和462无关,改天再写了
后记:2007年11月初,俺遭遇到人生一大麻烦,头大如斗,泪别泥潭多日,今天才有机会来冒个泡.....以后恐怕也难常来了,可怜俺的ID,神功未成半途而废,poor
声明:
本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:
https://www.wpsshop.cn/w/盐析白兔/article/detail/718586
推荐阅读
article
医院
预约
挂号
系统
设计
与实现-计算机毕业
设计
源码+LW文档_
预约
挂号
系统
的
系统
设计
...
并且还要实时的医疗服务信息的共享,可以让就医的病人和管理层实时的查看医疗服务信息和病人的相关的信息的情况。医院
预约
挂号
系...
赞
踩
article
YOLOv9
最新改进系列:超越
VIT
!重新思考
CNN
大核
注意力
设计,显著提升小
目标
检测
性能!_
大核
注...
大型可分离核
注意力
(LSKA)模块的视觉
注意力
网络(VAN)已被证明在各种基于视觉的任务上提供了卓越的性能,超过了视觉转...
赞
踩
article
基于
java
web+
mysql
的
springboot
地方废物回收机构
管理系统
(
java
+spring...
项目运行: 1. 使用Navicat或者其它工具,在
mysql
中创建对应sql文件名称的数据库,并导入项目的sql文件;...
赞
踩
article
“
一
言
”
槽点满满
“
千帆
”
下海收费_
文心
一
言
api
价格...
文心
千帆
千万不能再翻车了。_
文心
一
言
api
价格
文心
一
言
api
价格 把公开发布会改...
赞
踩
article
用于
文本
的
TensorFlow
:
使用
TensorFlow
进行词
嵌入
_
文本
张量
表示 tensorflo...
Word2Vec 由 Tomas Mikolov 和他在 Google 的团队开发,已成为自然语言处理 (NLP) 和单...
赞
踩
article
dbGet
_
axldbgetdesign
...
You can use the following single-line
dbGet
scripts to explore...
赞
踩
article
探究
完全
二叉树
的
性质和
应用
_
完全
二叉树
的
基本性质
的
应用
...
add()函数用于向
完全
二叉树
中添加节点,get_parent()、get_left_child()和get_right...
赞
踩
article
[AI]
windows
部署
Ollama
_
ollama
windows
部署
...
介绍
windows
环境下安装
ollama
并进行模型下载使用_
ollama
windows
部署
ollama
windows
...
赞
踩
article
Ollama
:
一个
在本地部署、运行大型
语言
模型
的工具_
ollama
参数
配置
...
Ollama
是
一个
开源项目,它专为在本地机器上能便捷部署、以及运行大型
语言
模型
(LLM)而设计的工具。_
ollama
参...
赞
踩
article
各类
二叉树
及其
应用
_
说几个
二叉树
的
应用
...
【各类
二叉树
】
二叉树
的
特点:兼顾静态查找和动态修改,即既能像数组一样快速查找也能像快速增删
二叉树
:每个节点
的
度数不超过...
赞
踩
article
Spring
Boot
Actuator
未授权
的
测试
与
利用
思路_sb-
actuator
...
Spring
Boot
Actuator
未授权
的
测试
与
利用
思路0x0 前言 最近遇到
的
一个漏洞,但是因为目标关掉了一...
赞
踩
article
数据
库
、
数据
库
操作
软件
及
数据
库
管理
_
用
什么
软件
读取
数据
库
中的
数据
...
它提供了丰富的功能,包括
数据
库
设计、SQL开发、
数据
库
管理
等。Navicat具有直观的界面和强大的功能,可以方便地进行数...
赞
踩
article
文心
智能
体
平台:快来创建你的
Java
学习
小助理,全方位辅助
学习
_
文心
大
模型
java
...
强大的大
模型
能力: 依托
文心
一言大
模型
,在内容创作、数理逻辑推算、中文理解、多模态生成等多方面均有良好表现;多样化的方式...
赞
踩
article
泰坦尼克号
数据
集
分析
:从入门到进阶
_
csdn
泰坦尼克号
...
在本文中,我们从头开始探索了
泰坦尼克号
数据
集
,包括
数据
的加载、探索、可视化、预处理、建模和评估。我们使用了随机森林分类器...
赞
踩
article
【
Darknet
】【
yolo
v2】
训练
自己数据集的一些心得
----
VOC
格式(经典YOLO
训练
心得...
----
--【2017.11.2更新】
----
----
----
SSD传送门
----
----
--http://blog.c...
赞
踩
article
hive
初始化
元
数据
报错
message
from
server
: “Host ‘192.168.40...
在安装
hive
时,
初始化
mysql元
数据
报错
以及进入
hive
时候的交互式命令,随便输入任何命令,比如show table...
赞
踩
article
win
桌面
圣诞
小插件
分享
...
圣诞
到了,最近有小伙伴问我有没有一些桌面
圣诞
小插件可以
分享
一下,所以我就特地去寻找了一些,感觉效果还不错,所以
分享
出来。...
赞
踩
article
参考
文献
的
类型
_
csdn
算什么
类型
的
文献
...
From:http://blog.sina.com.cn/s/blog_456a8d5e0100ddhu.html 参考...
赞
踩
article
fork
项目
的
步骤:
本地
分支
同步远程
分支
_
fork
project
的
project
url...
1.
fork
项目
到
本地
项目
,clone到
本地
$ git clone https://github.com/yourna...
赞
踩
article
319.
灯泡
开关
_
选中
一个
灯泡
执行
转换
操作
,
则该
灯泡
上、下、左、右
的
四个
灯泡
均将进行
状态
转换
,
且...
初始时有 n 个
灯泡
处于关闭
状态
。第一轮,你将会打开所有
灯泡
。接下来
的
第二轮,你将会每两个
灯泡
关闭第二个。第三轮,你每三...
赞
踩
相关标签
毕业设计
cnn
目标检测
人工智能
YOLO
yolov9
java
mysql
区块链
tensorflow
python
算法
数据结构
排序算法
AI
Ollama
语言模型
自然语言处理
AIGC
二叉树
红黑树
B树
AVL树
四叉树