Re: [python-win32] Non-ascii character in source code cause 'Exceptionoccurred'

2006-07-04 Thread aurora
Thank you for the quick response :) wy >> Any presence of a non-ascii character, even if it is in the >> comment only, >> would cause this problem. I have tried various encoding, with >> or without >> BOM, and also adding the encoding specification at the top of >> the file. >> All these give the

Re: [python-win32] Non-ascii character in source code cause 'Exception occurred'

2006-07-03 Thread aurora
P.S. The script can actually process unicode, passing unicode text to and from other COM objects. E.g. print u'\N{Euro Sign}'.encode('utf-8') The only problem is the source code cannot have any non-ascii characters. wy > I find that putting any non-ascii character in the Python source co

[python-win32] Non-ascii character in source code cause 'Exception occurred'

2006-07-03 Thread aurora
I find that putting any non-ascii character in the Python source code would cause an unspecific "Exception occurred" error. For example, _u.py # € print 'hello' g:\usr\bin\EmEditor Macros>cscript /e:python _u.py Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Cor

[python-win32] GetKeyboardState - API not covered?

2006-03-15 Thread aurora
I have great success with Python win so far. It is truely a better tool to program Microsoft API than Microsoft themselves. Today I stumbled on some API that doesn't seem to be supported by pywin32, e.g. GetKeyboardState. I wonder if the goal of pywin32 is to have a comprenhensive interface t

Re: [python-win32] os.startfile() not working after py2exe into aservice

2006-01-18 Thread aurora
That was it. Thank you! I know many service do not need to interact with users. But there are also some background agent (say anti-virus) that may need to interact with users from time to time. wy On Wed, 18 Jan 2006 14:43:46 -0800, Mark Hammond <[EMAIL PROTECTED]> wrote: > Note that servi

[python-win32] os.startfile() not working after py2exe into a service

2006-01-18 Thread aurora
Hopefully someone can enlighten me with this Windows issue. I use os.startfile() to launch pdf and html files. So far so good. Build using py2exe. Install as service. When os.startfile() is ran inside service, nothing happens. No error message. Nothing as all. Even if I build it as .exe, the o

[python-win32] How to unload ShellExtension?

2006-01-04 Thread aurora
I have previously asked about how to reload a ShellExtension during development. There a a few good suggestions like killnig the explorer process. Now I run into a bigger issue. When I uninstall (using innosetup), the process is still loaded and it lock up scores of DLLs. Killing explorer i

Re: [python-win32] win32com v.s. win32comext?

2006-01-04 Thread aurora
# what to build. For COM servers, the module name (not the # filename) must be specified! modules = ["minds.weblib.win32.context_menu"], create_exe = False, ##create_dll = False, ) setup( ... com_server = [context_menu_handler],

[python-win32] win32com v.s. win32comext?

2006-01-03 Thread aurora
I use win32com.shell. There are something special going on I don't understand. Notice the commands below. I imported win32com.shell. But the module is being loaded from win32comext\shell\__init__.pyc. >>> import win32com.shell >>> win32com.shell What is the mechanism to make this happen? I a

[python-win32] How to reload ShellExtension?

2005-12-19 Thread aurora
I am working with the ShellExtension context menu sample: win32comext\shell\demos\servers\context_menu.py My question after I change the code, how to I get it reloaded? --unregister and then --register won't do it. I have to log off and then log back in. Thanks for your help, wy __

Re: [python-win32] Newbie question. Python asp and diacritic characters

2005-12-19 Thread aurora
Do you find any more detail error message than a 500 Server Error? I have no experience with using Python in the context of ASP. To use non-ASCII characters correctly requires the understanding of character encoding and to use them correctly through out a chain of software components. In you

[python-win32] filling Windows properties "Summary" tab?

2005-12-19 Thread aurora
I am reading the discussion of "filling Windows properties "Summary" tab?" on 2005-06-23: http://thread.gmane.org/gmane.comp.python.windows/3164 I too am interesting in finding out a way to read and write the summary propreties. It isn't very clear for me from the thread that what classes o