Using text search in Web page with Sikuli
2024-09-04 01:33:44
在網頁中如何使用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
最新文章
- Android扫盲教程大全经典教程全分享
- dojo grid 编辑问题
- Java虚拟机7:内存分配原则
- 【BZOJ1012】 【JSOI2008】最大数maxnumber
- 0601 Spring2.0 发布会
- 【iCore2双核心板视频教程三】iM_LAN 100M 以太网模块TCP压力测试(更新视频教程)
- jQuery 判断表单中多个 input text 中至少有一个不为空
- js实现文字截断
- 即时通信(RPC)的Rtmp实现--配置篇
- 一步一步ITextSharp 低级操作函数使用
- Ajax技术——带进度条的文件上传
- minSdkVersion与targetSdkVersion
- UIView 和 CALayer 的区别和联系
- 瑞游天翼客户端win7,win8,win10
- MyISAM和InnoDB索引实现区别
- 并发容器和框架之ConcurrentHashMap
- day20包
- View体系之属性动画
- 数位dp(求1-n中数字1出现的个数)
- (转)Unity3D研究院之手游开发中所有特殊的文件夹(assetbundle与Application.persistentDataPath)
热门文章
- Django集合Ueditor
- pg_config - 检索已安装版本的 PostgreSQL 的信息
- AOP拦截日志类,抛异常:java.lang.IllegalStateException: It is illegal to call this method if the current request is not in asynchronous mode
- CF dp 题(1500-2000难度)
- ThreadLocal 应用
- php注解
- 修改linux的mysql用户名和密码
- @ControllerAdvice全局数据预处理
- BZOJ 4407: 于神之怒加强版 莫比乌斯反演 + 线筛积性函数
- 【Java】ApplicationContext应用上下文工具类