Skip to content

Commit

Permalink
v1.5 bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
taojy123 committed Apr 12, 2019
1 parent c3a328a commit 344f74b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Frame1.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ def onMouseEvent(event):
if event.MessageName == 'mouse move':
return True
pos = win32gui.GetCursorPos()
rhwnd = win32gui.WindowFromPoint(pos)
pos = win32gui.ScreenToClient(rhwnd, pos)
cname = win32gui.GetClassName(rhwnd)
dcid = win32gui.GetDlgCtrlID(rhwnd)
# rhwnd = win32gui.WindowFromPoint(pos)
# pos = win32gui.ScreenToClient(rhwnd, pos)
# cname = win32gui.GetClassName(rhwnd)
# dcid = win32gui.GetDlgCtrlID(rhwnd)
# print event.Message, event.MessageName
delay = event.Time - ttt
record.append(['EM', event.MessageName, event.Position, delay])
record.append(['EM', event.MessageName, pos, delay])
ttt = event.Time
ts = self.tnumrd.GetLabel()
ts = ts.replace(' actions recorded','')
Expand All @@ -277,10 +277,10 @@ def onKeyboardEvent(event):
global ttt
if ttt == 0:
ttt = event.Time - 1000
pos = win32gui.GetCursorPos()
rhwnd = win32gui.WindowFromPoint(pos)
cname = win32gui.GetClassName(rhwnd)
dcid = win32gui.GetDlgCtrlID(rhwnd)
# pos = win32gui.GetCursorPos()
# rhwnd = win32gui.WindowFromPoint(pos)
# cname = win32gui.GetClassName(rhwnd)
# dcid = win32gui.GetDlgCtrlID(rhwnd)
# print event.Message, event.MessageName
delay = event.Time - ttt
record.append(['EK', event.MessageName, (event.KeyID, event.Key), delay])
Expand Down
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# KeymouseGo v1.4
# KeymouseGo v1.5

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

Expand Down Expand Up @@ -87,6 +87,9 @@

# 更新说明

## v1.5
+ 修复自定义缩放后录制定位偏移 Bug

## v1.4
+ 增加命令行运行方式

Expand Down

0 comments on commit 344f74b

Please sign in to comment.