Comments (9)
我是在win10虚拟机上跑的 没有试过win server
还有云主机是否能控制鼠标也不太清楚
多桌面的话要保证客户端运行再当前桌面
实在不行就把refresh的调用去掉
from thsauto.
我测试了一台win10主机,一台阿里云win server 2019, 一台华为云win server 2019, 目前只在阿里云服务器上出现过这个现象,而且半多是在1个小时以上没有动过对应的主机时下才会出现(整个过程始终保持同花顺下单程序在前台运行),但如果根据自已定的交易策略,重仓的情况下做自动交易,遇到这种情况损失还是比较大的,希望有好的办法可以解决,如果不用win32api,用其他的库,不知道可不可行?谢谢你的回复
from thsauto.
是否方便说下你的运行环境以及依赖的版本呢?我这边无法正常运行。
from thsauto.
是否方便说下你的运行环境以及依赖的版本呢?我这边无法正常运行。
你具体报什么错
python版本是3.6
其他的包找不到直接pip install一下就行
from thsauto.
是否方便说下你的运行环境以及依赖的版本呢?我这边无法正常运行。
你具体报什么错
python版本是3.6
其他的包找不到直接pip install一下就行
length = ctypes.windll.user32.SendMessageW(hwnd, win32con.WM_GETTEXTLENGTH)
ValueError: Procedure probably called with not enough arguments (8 bytes missing)
首先是这个错误,然后我在thsauto.py修改42行length = ctypes.windll.user32.SendMessageW(hwnd, win32con.WM_GETTEXTLENGTH, 0, 0)这个错误没了。
然后get_position无法正常工作。所以感觉可能是环境版本的问题。
我的环境是:
win10 64位
python 3.6 32位
Package Version
beautifulsoup4 4.9.1
bs4 0.0.1
certifi 2020.6.20
chardet 3.0.4
click 7.1.2
comtypes 1.1.7
Flask 1.1.2
idna 2.10
itsdangerous 1.1.0
Jinja2 2.11.2
MarkupSafe 1.1.1
numpy 1.19.1
pandas 0.23.0
Pillow 7.2.0
pip 20.2.2
pypiwin32 223
python-dateutil 2.8.1
pytz 2020.1
pywin32 228
pywinauto 0.6.6
requests 2.24.0
scikit-learn 0.20.2
scipy 1.1.0
setuptools 49.6.0.post20200814
six 1.15.0
soupsieve 2.0.1
urllib3 1.25.10
Werkzeug 1.0.1
wheel 0.34.2
wincertstore 0.2
from thsauto.
from thsauto.
我这里用的网上交易系统5.0 你这个6.3我还没有用过
from thsauto.
from thsauto.
非常感谢你的解答,是THS版本问题,已经换低版本解决了🤝
from thsauto.
Related Issues (20)
- Should install which ths client ? HOT 1
- 求个联系方式,共同维护
- 能否增加绑定指定路径下单程序的功能 HOT 1
- 撤单出现,没找到指定订单 HOT 1
- 东海证券客户端调用接口失败
- 同花顺新版本复制仓位需要验证码 HOT 5
- 银河证券的“账户资金”balance读取会出错。
- 服务挂上之后请求报错 HOT 2
- 能否加一个最优五档卖出
- 有点小bug HOT 1
- 关于ocr
- 应该增加一个验证码错误重试机制
- 拷贝剪贴板前,最好清空一次,防止验证码尝试失败后,拷贝的上次的结果
- 又发现一个问题 HOT 2
- 又出状况了 HOT 1
- 持仓获取 验证码不能识别 需要多次 HOT 1
- hot_key稳定性问题
- 在新版本的下单程序有问题? HOT 2
- 在其上下文中,该请求的地址无效。
- 自动提交有问题
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thsauto.