File tree 2 files changed +27
-3
lines changed
2 files changed +27
-3
lines changed Original file line number Diff line number Diff line change 19
19
import ctypes
20
20
21
21
22
- VERSION = '3.2'
22
+ VERSION = '3.2.1 '
23
23
24
24
25
25
wx .NO_3D = 0
@@ -475,7 +475,26 @@ def run(self):
475
475
def run_script_once (cls , script_path , thd = None ):
476
476
477
477
content = ''
478
- for line in open (script_path , 'r' ).readlines ():
478
+
479
+ lines = []
480
+ try :
481
+ lines = open (script_path , 'r' ).readlines ()
482
+ except Exception as e :
483
+ 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 :
492
+ try :
493
+ lines = open (script_path , 'r' , encoding = 'gbk' ).readlines ()
494
+ except Exception as e :
495
+ print (e )
496
+
497
+ for line in lines :
479
498
# 去注释
480
499
if '//' in line :
481
500
index = line .find ('//' )
Original file line number Diff line number Diff line change 1
- # KeymouseGo v3.2
1
+ # KeymouseGo v3.2.1
2
2
3
3
功能:记录用户的鼠标键盘操作,通过触发按钮自动执行之前记录的操作,可设定执行的次数,可以理解为 ` 精简绿色版 ` 的 ` 按键精灵 ` 。
4
4
123
123
暂时没法打包 ` x86 ` 版本,32 位系统的同学请自行源码编译,或 [ 下载v1.5老版本] ( https://github.com/taojy123/KeymouseGo/releases/tag/v1.5 ) 使用
124
124
125
125
126
+ ## v3.2.1
127
+
128
+ + 修复了中文注释无法解析的 bug
129
+
130
+
126
131
## v3.2
127
132
128
133
+ 脚本文件中可使用 ` // ` 进行内容注释
You can’t perform that action at this time.
0 commit comments