我自己的代码高亮,自己用一下

 .版本 2

c = GetIfTable (a, b, 1)
' ↓↓↓准备计算网络差↓↓↓
无线上传网速储存 = 无线网络上传速度
无线下载网速储存 = 无线网络下载速度
有线上传网速储存 = 有线网络上传速度
有线下载网速储存 = 有线网络下载速度
' ↓↓↓准备获取网速速度↓↓↓
.计次循环首 (a.dwNumEntries - 1, i)  ' 取网卡速度
    .如果真 (到文本 (a.MIB_Table [i].bDescr) = “ASUS 802.11n 网络适配器”)  ' 取无线网卡速度 ASUS 802.11n 网络适配器 = 无线网卡名称
        无线网络上传速度 = a.MIB_Table [i].dwOutOctets
        无线网络下载速度 = a.MIB_Table [i].dwInOctets
    .如果真结束
    .如果真 (到文本 (a.MIB_Table [i].bDescr) = “Realtek PCIe GBE Family Controller”)  ' 取有线网卡速度 Realtek PCIe GBE Family Controller = 无线网卡名称
        有线网络上传速度 = a.MIB_Table [i].dwOutOctets