Skip to content

Commit

Permalink
3.2.2 , fix issue#56
Browse files Browse the repository at this point in the history
  • Loading branch information
taojy123 committed Mar 11, 2021
1 parent 032871f commit 62ef135
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
16 changes: 5 additions & 11 deletions Frame1.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@
import win32con
import win32api
import ctypes
import pyperclip


VERSION = '3.2.1'
VERSION = '3.2.2'


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

lines = []

try:
lines = open(script_path, 'r').readlines()
lines = open(script_path, 'r', encoding='utf8').readlines()
except Exception as e:
print(e)

if not lines:
try:
lines = open(script_path, 'r', encoding='utf8').readlines()
except Exception as e:
print(e)

if not lines:
try:
lines = open(script_path, 'r', encoding='gbk').readlines()
except Exception as e:
Expand All @@ -504,7 +498,7 @@ def run_script_once(cls, script_path, thd=None):
content += line

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

print(content)
s = json.loads(content)
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# KeymouseGo v3.2.1
# KeymouseGo v3.2.2

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

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


## v3.2.2

+ input 事件无法输入内容的 bug


## v3.2.1

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

0 comments on commit 62ef135

Please sign in to comment.