Coder Social home page Coder Social logo

Comments (9)

match5 avatar match5 commented on June 12, 2024

我是在win10虚拟机上跑的 没有试过win server
还有云主机是否能控制鼠标也不太清楚
多桌面的话要保证客户端运行再当前桌面
实在不行就把refresh的调用去掉

from thsauto.

wdl5i avatar wdl5i commented on June 12, 2024

我测试了一台win10主机,一台阿里云win server 2019, 一台华为云win server 2019, 目前只在阿里云服务器上出现过这个现象,而且半多是在1个小时以上没有动过对应的主机时下才会出现(整个过程始终保持同花顺下单程序在前台运行),但如果根据自已定的交易策略,重仓的情况下做自动交易,遇到这种情况损失还是比较大的,希望有好的办法可以解决,如果不用win32api,用其他的库,不知道可不可行?谢谢你的回复

from thsauto.

weue avatar weue commented on June 12, 2024

是否方便说下你的运行环境以及依赖的版本呢?我这边无法正常运行。

from thsauto.

match5 avatar match5 commented on June 12, 2024

是否方便说下你的运行环境以及依赖的版本呢?我这边无法正常运行。

你具体报什么错
python版本是3.6
其他的包找不到直接pip install一下就行

from thsauto.

weue avatar weue commented on June 12, 2024

是否方便说下你的运行环境以及依赖的版本呢?我这边无法正常运行。

你具体报什么错
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.

weue avatar weue commented on June 12, 2024

image

from thsauto.

match5 avatar match5 commented on June 12, 2024

image

我这里用的网上交易系统5.0 你这个6.3我还没有用过

from thsauto.

match5 avatar match5 commented on June 12, 2024

这是我的客户端版本
}FA%4V UT159C()STH$RL{A
5F)J}VLKC1SHP$Q@I~$VT@A

from thsauto.

weue avatar weue commented on June 12, 2024

非常感谢你的解答,是THS版本问题,已经换低版本解决了🤝

from thsauto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.