[C++] 纯文本查看 复制代码import win.ui;

import win.clip;

import inet.http;

/*DSG{{*/

var winform = ..win.form( bottom=314;parent=...;right=461;text="AAuto Form" )

winform.add(

static9={ bottom=221;text="具体表现:";left=35;right=104;top=201;z=14;transparent=1;cls="static" };

static6={ bottom=171;text="地区区号:";left=35;right=104;top=151;z=10;transparent=1;cls="static" };

static11={ notify=1;color=16711680;text="www.8d8f.com 营销软件";left=315;top=293;transparent=1;bottom=307;right=455;z=16;cls="static" };

edit={ bottom=48;right=290;left=102;top=20;z=1;edge=1;cls="edit" };

static8={ bottom=206;right=362;left=92;top=173;z=13;transparent=1;cls="static" };

static={ bottom=47;text="你的手机号码 ";left=18;right=98;top=26;z=2;transparent=1;cls="static" };

static2={ bottom=108;text="您的号码是:";left=35;right=110;top=88;z=4;transparent=1;cls="static" };

static10={ bottom=273;right=392;left=91;top=200;z=15;transparent=1;cls="static" };

static5={ bottom=152;text="号码所在地区邮编:";left=35;right=145;top=132;z=8;transparent=1;cls="static" };

static7={ bottom=191;text="号码吉凶:";left=35;right=104;top=171;z=12;transparent=1;cls="static" };

static3={ bottom=131;text="所在地区为:";left=35;right=135;top=111;z=6;transparent=1;cls="static" };

static_postcode={ bottom=153;right=256;left=141;top=133;z=9;transparent=1;cls="static" };

button={ bottom=49;right=376;left=315;top=18;z=3;text="查询";cls="button" };

static4={ bottom=138;color=0;right=374;left=130;top=113;font=LOGFONT( name='Verdana' );z=7;transparent=1;cls="static" };

static_cellphonenumber={ bottom=107;color=16711680;right=208;left=101;top=87;font=LOGFONT( name='Verdana';h=-16 );z=5;transparent=1;cls="static" };

static_area_code={ bottom=172;right=206;left=88;top=153;z=11;transparent=1;cls="static" }

)

/*}}*/

winform.button.oncommand = function(id,event){

shuru=winform.edit.text;

fuzhi=tostring(win.clip.read());

//如果输入和复制都为空的状态

if(shuru=null && fuzhi=null){

win.msgbox("请输入或者复制正确的手机号码")

return;}elseif(shuru=null && fuzhi=true){

shuru=fuzhi}

var input_is_true=string.match(shuru,"^(\d{11})$");

var copy_is_true =string.match(fuzhi,"^(\d{11})$");

//梳理输入号码和复制号码的关系.

if(input_is_true=true && copy_is_true=false){

cellphonenumber=winform.edit.text;

}elseif(input_is_true=false && copy_is_true=true){

cellphonenumber=win.clip.read();

}elseif(input_is_true=true && copy_is_true=true){

cellphonenumber=winform.edit.text;

}else {

win.msgbox("请输入或复制正确的手机号码再查询")

return;

}

//18655443321 //临时测试用的手机号码

winform.edit.text=cellphonenumber;

winform.static_cellphonenumber.text=cellphonenumber;

http=inet.http();

var pre_url="http://jx.ip138.com/"

url=pre_url + tostring(cellphonenumber) +"/";

//winform.edit2.appendText("打开网址..."+url +'\r\n')

str=http.get(url); //返回源码

//winform.edit2.appendText("获取源码中..."+'\r\n')

winform.edit2.text=str; //全部源码在str中

area=string.match(str,'归属地[^\.]+center"\>([^

//winform.edit2.appendText("匹配归属地..."+'\r\n')

area=string.replace(area,"nbsp;"," ") //去掉空格,获得最终归属地

winform.static4.text=area; //写入归属地

postCode=string.match(str,"\>(\d{6})\

winform.static_postcode.text=postCode;//写入邮编

area_code=string.match(str,'电话区号[^\.]+center"\>([^

winform.static_area_code.text=area_code; //写入区号

//号码吉凶

winform.show();

jixiong=string.match(str,"五行数理为:([^\s]+)\

jixiong=string.replace(jixiong,"\","")

//winform.edit2.appendText(jixiong+'\r\n');

winform.static8.text=jixiong;

//具体表现

biaoxian=string.match(str,"具体表现:[\S\s]*?\"">([\S\s]*?)\

//winform.edit2.appendText(biaoxian+'\r\n')

winform.static10.text=biaoxian;

//_________下面的是广告_____________//

}

winform.static11.oncommand = function(id,event){

import process;

process.execute("http://www.8d8f.com");

}

winform.show()

win.loopMessage();

android吉凶信息查询代码,手机号码吉凶查询工具 公开源码,可任意修改相关推荐

  1. PHP手机号码吉凶源码,手机号码吉凶查询工具 公开源码,可任意修改

    [C++] 纯文本查看 复制代码import win.ui; import win.clip; import inet.http; /*DSG{{*/ var winform = ..win.form ...

  2. oracle左连接查询代码,ORACLE连接查询,内外连接

    事情的起源是这样子的: 在<剑破冰山>这本书里看到了一个用 where限制外连接的例子,当时不明白,查了下资料,做个总结. 测试代码. CREATE TABLE a (ID NUMBER, ...

  3. java模糊查询代码_Java模糊查询方法详解

    这篇文章主要为大家详细介绍了Java模糊查询方法的实现,实例教你如何用Java做模糊查询结果,感兴趣的小伙伴们可以参考一下 当我们需要开发一个方法用来查询数据库的时候,往往会遇到这样一个问题:就是不知 ...

  4. android画cci指标代码,大智慧CCI画线指标源码 副图公式

    相关标签: 大智慧cci指标选股 . cci指标实战技巧图解 . cci指标 . cci指标炒股绝招 . cci精准选股指标公式 . cci指标 最佳参数 . cci指标最优参数 . cci指标视频 ...

  5. 自己帮别人写的网站可以公开源码吗_雷军靠写代码赚第一个 100 万,马化腾亲自写腾讯网,码农出身的大佬...

    作者 | 夏弢 本文经授权转载自创业邦(ID:ichuangyebang) 一提到程序员,很多人脑海里马上会出现这些刻板标签: 可事实上,有一个词似乎更能概括: 改变世界 程序改变世界,已经有几十年了 ...

  6. Android完整的通讯录获取多个手机号码、多个邮箱、多个地址、生日、备份等信息的代码

    Android完整的通讯录获取多个手机号码.多个邮箱.多个地址.生日.备份等信息的代码 整个删除通讯录 方法一: //删除整个通讯录public static void deleteAllContac ...

  7. python手机版代码-Python手机号码归属地查询代码

    简单的一个例子,是以前用Dephi写的,前不久刚实现了一个在Python中使用Delphi控件来编写界面程序,于是趁热写一个类似的的查询方案. 本实例是通过www.ip138.com这个网站来查询的, ...

  8. php mysql 手机归属地_PHP手机号码归属地查询代码(API接口/mysql)_PHP教程

    文章来介绍一下关于手机号码归属地实现方法,我们可以利用api接口与mysql+php来实例有需要的同学看看. 首先我们介绍使用自己的数据库查询多个手机号码,那还是建议你拥有一个自己的的手机号码数据库. ...

  9. python个人信息查询代码_基于Python的商标信息查询api调用代码实例

    #!/usr/bin/python # -*- coding: utf-8 -*- import json, urllib from urllib import urlencode #-------- ...

最新文章

  1. 想学 Java 的你,来看看这 20 个实战项目!
  2. 关于nginx信号控制的“故障”案例
  3. memcached 相关
  4. matlab 粘连分割代码,【求助】图像中粘连字符切分代码,求注释!!!
  5. 下一代AirPods可能就可以监测你的健康状况了
  6. Python为什么要self
  7. 【软件安装管家】Axure RP 8软件安装包下载地址及安装教程
  8. Android通用适配器CommonAdapter
  9. 磁记录材料和计算机0101,信息磁性功能材料
  10. 《数字孪生》(Yanlz+VR元宇宙+Unity+SteamVR+云技术+5G+AI+虚拟现实+数字映射+仿真+物理模型+传感器更新+运动历史+多学科+多物理量+多尺度+多概率+立钻哥哥++==)
  11. php虚拟主机的配置
  12. 【UOJ】#246. 【UER #7】套路
  13. note20220411
  14. 35BYJ46步进电机
  15. 亚马逊常见的专业词汇你都知道吗?建议小白耐心看
  16. 树莓派Bullseye系统安装QT
  17. 为您打造别样的海景婚纱!
  18. 微信小程序与手机APP的区别
  19. 标签打印软件输出PDF文件过大时如何解决?
  20. 土木工程专业转JAVA的经历总结

热门文章

  1. 天纵智能软件快速开发平台单页编辑插件
  2. 图论-路径优化算法总结
  3. 报错org.gradle.api.InvalidUserDataException: NDK not configured. E:\sdk\ndk-bundle-uart 日常遇到问题记录
  4. jmeter socket close 原因
  5. Testin云测(100款兼容测试+安全测试)
  6. 获取 url 中的参数
  7. Day-1 Linux的发展史
  8. Golang 拼接字符串的 5 种方法及其效率(上)
  9. Python 三元运算
  10. 对话 CTO | 听码隆科技 CTO 码特讲计算机视觉技术赋能全球零售行业