Skip to content

Commit

Permalink
修复通用版同花顺自动打新功能 (#424)
Browse files Browse the repository at this point in the history
原来代码中,选中“批量新股申购”菜单后会模拟“ESC”键和“F5”键输入。但在通用版同花顺里,“ESC”键输入会导致“批量新股申购”菜单失选,故删除该语句。
用通用版同花顺登陆国联证券账户测试自动打新成功,另测试海通证券客户端无影响。

Signed-off-by: Jack Huang <[email protected]>
  • Loading branch information
r52097 authored Mar 10, 2021
1 parent c9bb9bc commit ca18e4e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion easytrader/clienttrader.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ def _collapse_left_menus(self):
def _switch_left_menus(self, path, sleep=0.2):
self.close_pop_dialog()
self._get_left_menus_handle().get_item(path).select()
self._app.top_window().type_keys('{ESC}')
self._app.top_window().type_keys('{F5}')
self.wait(sleep)

Expand Down

0 comments on commit ca18e4e

Please sign in to comment.