Skip to content

Commit 62ef135

Browse files
committed
3.2.2 , fix issue#56
1 parent 032871f commit 62ef135

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

Frame1.py

+5-11
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@
1717
import win32con
1818
import win32api
1919
import ctypes
20+
import pyperclip
2021

2122

22-
VERSION = '3.2.1'
23+
VERSION = '3.2.2'
2324

2425

2526
wx.NO_3D = 0
@@ -477,18 +478,11 @@ def run_script_once(cls, script_path, thd=None):
477478
content = ''
478479

479480
lines = []
481+
480482
try:
481-
lines = open(script_path, 'r').readlines()
483+
lines = open(script_path, 'r', encoding='utf8').readlines()
482484
except Exception as e:
483485
print(e)
484-
485-
if not lines:
486-
try:
487-
lines = open(script_path, 'r', encoding='utf8').readlines()
488-
except Exception as e:
489-
print(e)
490-
491-
if not lines:
492486
try:
493487
lines = open(script_path, 'r', encoding='gbk').readlines()
494488
except Exception as e:
@@ -504,7 +498,7 @@ def run_script_once(cls, script_path, thd=None):
504498
content += line
505499

506500
# 去最后一个元素的逗号(如有)
507-
content = content.replace('],\n]', ']\n]')
501+
content = content.replace('],\n]', ']\n]').replace('],]', ']]')
508502

509503
print(content)
510504
s = json.loads(content)

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# KeymouseGo v3.2.1
1+
# KeymouseGo v3.2.2
22

33
功能:记录用户的鼠标键盘操作,通过触发按钮自动执行之前记录的操作,可设定执行的次数,可以理解为 `精简绿色版``按键精灵`
44

@@ -123,6 +123,11 @@
123123
暂时没法打包 `x86` 版本,32 位系统的同学请自行源码编译,或 [下载v1.5老版本](https://github.com/taojy123/KeymouseGo/releases/tag/v1.5) 使用
124124

125125

126+
## v3.2.2
127+
128+
+ input 事件无法输入内容的 bug
129+
130+
126131
## v3.2.1
127132

128133
+ 修复了中文注释无法解析的 bug

0 commit comments

Comments
 (0)