[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. 在HTML网页中巧用URL
  2. CentOS下安装ZooKeeper
  3. 【卷积神经网络结构专题】一文详解AlexNet(附代码实现)
  4. 剑指Offer_17_树的子结构
  5. Java 生产者和消费者问题
  6. DevOps vs. Agile:它们有什么共同点?
  7. Scrapy 1.4 文档 01 初窥 Scrapy
  8. html5单击修改背景色,用获取节点的方式实现点击按钮改变标签背景颜色的问题...
  9. 游标sql server_学习SQL:SQL Server游标
  10. [原创]FOCUS处理系统流程之:流程批量生成(个人专用懒人版)
  11. 我的大学 --- 郭天祥【2】
  12. 傅里叶级数与积分方程
  13. cfa三级真题和mock_cfa三级要看哪些书?
  14. struts2拦截器实现登录拦截
  15. PS和AI矢量电子签名制作(详细)
  16. input和output实例
  17. 一文读懂元数据的概念、分类及作用
  18. java实现-现奔跑吧小恐龙-小游戏
  19. ID精度损失处理-Long类型转换成JSON的String类型
  20. 技术经营:下一个掘金地

热门文章

  1. 每天早上开车20公里送娃上学,车上时间我们没浪费
  2. openxlpy 在excel中批量插入图片 根据单元格内容插入图片 图片随单元格大小变化而变化 AnchorMarker python
  3. 邮政编码 及长途区号
  4. python线段树编写,很冗长,不过不难理解。
  5. C#MVC视图获取modle实体类中的参数
  6. Windows下误删资料的恢复
  7. 番茄当下之作——莽荒纪
  8. 湖北统招专升本怎么报名
  9. LISTAGG 函数与 OVER PARTITION BY 函数
  10. python中矩阵的转置_[转]Python中的矩阵转置