在網頁中如何使用Sikuli找特定字串呢?

原理:

我們可以使用 組合鍵 ctrl + 來放大網頁的比例,使得sikuli的OCR功能找的更清準

實作:

for i in range(4):
type("+", KEY_CTRL) which = input() # Let user type the string which user want. print Region(344,178,124,501).hover(which) mouseMove(Env.getMouseLocation().offset(-100,-100)) print Region(344,178,124,501).text()

 We can use 'Create Region' icon in sikuli IDE to get Region(344,178,124,501).

Or Using selectRegion() in the runtime gets the Region(344,178,124,501).

相關資料:http://safx-dev.blogspot.tw/2013/04/sikulitips.html

Sample Script : https://github.com/ck1125/sikuli/tree/master/sikuli-ide/sample-scripts

AutoCreatingForThreeJia : https://github.com/SikuliScriptForWuXiaQChuan/AutoCreatingForThreeJia

最新文章

  1. Android扫盲教程大全经典教程全分享
  2. dojo grid 编辑问题
  3. Java虚拟机7:内存分配原则
  4. 【BZOJ1012】 【JSOI2008】最大数maxnumber
  5. 0601 Spring2.0 发布会
  6. 【iCore2双核心板视频教程三】iM_LAN 100M 以太网模块TCP压力测试(更新视频教程)
  7. jQuery 判断表单中多个 input text 中至少有一个不为空
  8. js实现文字截断
  9. 即时通信(RPC)的Rtmp实现--配置篇
  10. 一步一步ITextSharp 低级操作函数使用
  11. Ajax技术——带进度条的文件上传
  12. minSdkVersion与targetSdkVersion
  13. UIView 和 CALayer 的区别和联系
  14. 瑞游天翼客户端win7,win8,win10
  15. MyISAM和InnoDB索引实现区别
  16. 并发容器和框架之ConcurrentHashMap
  17. day20包
  18. View体系之属性动画
  19. 数位dp(求1-n中数字1出现的个数)
  20. (转)Unity3D研究院之手游开发中所有特殊的文件夹(assetbundle与Application.persistentDataPath)

热门文章

  1. Django集合Ueditor
  2. pg_config - 检索已安装版本的 PostgreSQL 的信息
  3. AOP拦截日志类,抛异常:java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode
  4. CF dp 题(1500-2000难度)
  5. ThreadLocal 应用
  6. php注解
  7. 修改linux的mysql用户名和密码
  8. @ControllerAdvice全局数据预处理
  9. BZOJ 4407: 于神之怒加强版 莫比乌斯反演 + 线筛积性函数
  10. 【Java】ApplicationContext应用上下文工具类