beuaaa / pywinauto_recorder

A record-replay tool to automate GUI via pywinauto
https://pywinauto-recorder.readthedocs.io/
MIT License
131 stars 24 forks source link

UnboundLocalError: local variable 'move_event_end' referenced before assignment #37

Closed batara666 closed 1 year ago

batara666 commented 2 years ago

UnboundLocalError: local variable 'move_event_end' referenced before assignment

Windows 11 pywinauto recorder 0.5.1

beuaaa commented 2 years ago

Hi @batara666,

I have not yet tested Pywinauto Recorder with Windows 11. I won't do it right away but I'll keep you posted.

batara666 commented 2 years ago

wow, thanks for the reply

so, this error happen when I just stop the recording without waiting yellow rectangle to show up

luisaoisdead commented 2 years ago

Hello i solved downloading the main source code and in conda type "pip setup.py install " in the source folder.

cgmike commented 2 years ago

Happens to me as well on Windows 10 with Pywinauto_recorder 0.5.1 (the compiled version):

`Traceback (most recent call last):
  File "U:\Develop\PYWINA~1\keyboard\_generic.py", line 22, in invoke_handlers
  File "U:\Develop\PYWINA~1\pywinauto_recorder\recorder.py", line 668, in __key_on
  File "U:\Develop\PYWINA~1\pywinauto_recorder\recorder.py", line 1139, in stop_recording
  File "U:\Develop\PYWINA~1\pywinauto_recorder\recorder.py", line 201, in process_events
  File "U:\Develop\PYWINA~1\pywinauto_recorder\recorder.py", line 294, in process_drag_and_drop_or_click_events
UnboundLocalError: local variable 'move_event_end' referenced before assignment`
beuaaa commented 2 years ago

Hi @cgmike,

Pywinauto Recorder 0.6.0 (compiled version and source) is about to be released, it could fix it.

beuaaa commented 2 years ago

I tried Pywinauto Recorder 0.6.1 with Windows 11 in a virtual machine and 'vcruntime140.dll' was missing. I had to add it manually then it worked. Was it the same for you?

Do you think it is necessary to create Pywinauto Recorder 0.6.2 including 'vcruntime140.dll' in the installer?