蓝色动力网络

 找回密码
 立即注册

扫一扫,访问微社区

QQ登录

只需一步,快速开始

查看: 3689|回复: 3

首发几个适用的源码 大家可以自己修改

[复制链接]
发表于 2009-10-25 10:16:11 | 显示全部楼层 |阅读模式
以为现在注册论坛帐号需要邀请码
希望版主可以给个邀请码 mail: 258665236@qq.com

好像不可以上传附件 暂时上传两个源码 其它的几个文件比较大


查看MAC地址
源码开始
#NoTrayIcon
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_icon=D:\Autoit3\Aut2Exe\Icons\ico_FlY0028.ico
#AutoIt3Wrapper_outfile=查看MAC地址.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
#include <GUIConstants.au3>
$Form1 = GUICreate("查看机子MAC地址", 220, 120, 457, 276)
$Input1 = GUICtrlCreateInput("", 10, 40, 200, 20)
$Label1 = GUICtrlCreateLabel("机子IP:", 10, 10, 43, 17)
$Button1 = GUICtrlCreateButton("退出", 140, 80, 75, 25, 0)
$Button2 = GUICtrlCreateButton("查看", 10, 80, 75, 25, 0)

GUISetState(@SW_SHOW)

While 1
$nMsg = GUIGetMsg()
Select
  Case $nMsg = $GUI_EVENT_CLOSE
   Exit
        Case $nmsg = $Button2
   $rul= GUICtrlRead($Input1)
   ConsoleWrite($rul)
   Run(@ComSpec & " /k nbtstat -a " & $rul )
   Case $nmsg = $Button1
   Exit
EndSelect
WEnd
源码结束


APR绑定工具
源码开始
#NoTrayIcon
#include &ltrocess.au3>
dim $mac1               ;定义变量名
dim $mac2
dim $mac3
dim $ip1
dim $ip2
dim $ip3
dim $time
$ip1 = iniread(@scriptdir & "\Config.ini","配置","IP1","")
$mac1 = iniread(@scriptdir & "\Config.ini","配置","mac1","")
$ip2 = iniread(@scriptdir & "\Config.ini","配置","IP2","")
$mac2 = iniread(@scriptdir & "\Config.ini","配置","mac2","")
$ip3 = iniread(@scriptdir & "\Config.ini","配置","IP3","")
$mac3 = iniread(@scriptdir & "\Config.ini","配置","mac3","")
$time = iniread(@scriptdir & "\Config.ini","配置","循环时间","")
while 1        ;设定无限循环                                                  
Sleep ($time)   ;设定延时
;_rundos("arp -d")
_rundos("arp -s "&($ip1)&" "&($mac1))
_rundos("arp -s "&($ip2)&" "&($mac2))
_rundos("arp -s "&($ip3)&" "&($mac3))
wend

源码结束
配置文件开始 (Config.ini)
[配置]

循环时间=1000

IP1=192.168.1.2
mac1=00-00-00-00-00-00

IP2=192.168.1.3
mac2=00-00-00-00-00-00

IP3=192.168.1.4
mac3=00-00-00-00-00-00
配置文件结束
发表于 2010-1-12 15:01:41 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2010-1-12 15:01:56 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

发表于 2010-1-12 15:02:03 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

蓝色动力网络微信平台
网站管理,业务合作联系邮箱: admin#lansedongli.com    QQ:13412492 限网站业务问题.
网站帐号、密码、密保找回请使用注册邮箱,发送邮件至 password#lansedongli.com ,否则不予受理.
免责声明:本论坛所有文字和图片仅代表其个人观点.
本站某些资料或文章来自于互联网,不代表本站观点,如果侵犯了您的权益,请来信告知,我们会在三天内删除.
为了给大家一个更好的交流场所,请勿在本论坛发表与中华人民共和国法律相抵触的言论,请合作,谢谢!
Copyright © 2007-2019 Corporation Powered by网吧系统 版权所有    转载请注明!
浙ICP备11043737号-1 程序:Discuz! x3.4

湘公网安备 43018102000145号

手机版|Archiver|蓝色动力网络   

快速回复 返回顶部 返回列表