Zeus 3.97, python macro bug
Posted: Thu Jul 09, 2009 3:14 am
I recorded a macro in zeus 3.97, in this case to display ascii character 218. I use python for my macros in zeus. Code generated below. When I try running it I get the error at the bottom of the script.
If I switch to LUA for macros and re-record the macro it works ok
This occurs in the beta posted in the previous thread (which fixed the problem I was having with high ascii codes in my code).
Thanks in advance,
Grant Smith
If I switch to LUA for macros and re-record the macro it works ok
Code: Select all
import zeus
def key_macro():
zeus.screen_update_disable()
zeus.write("Ú") # ASCII(0218)
zeus.screen_update_enable()
zeus.screen_update()
key_macro() # run the macro
"""
Python selected as scripting language
ERRORS GIVEN WHEN SCRIPT IS RUN:
Scripting Error :> File "c:\apt\zeus\zScript\Macro2.py", line 5
Scripting Error :> SyntaxError: Non-ASCII character '\xda' in file c:\apt\zeus\zScript\Macro2.py on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
Macro script generated '8' Debug, Error and/or Warning message(s).
"""
This occurs in the beta posted in the previous thread (which fixed the problem I was having with high ascii codes in my code).
Thanks in advance,
Grant Smith