[python-win32] how to switch keyboards in windows with win32api ?

2012-05-31 Thread jo
Hi On windows 7 I have not managed to switch keyboard to dutch netherlands with below script. It does switch to US keyboard though. What am I doing wrong...? I have been experimenting with different parameters and so on. msdn also mentions ActivateKeyboardLayout but it does not appear in my

[python-win32] d:\python25\lib\site-packages\pytz\__init__.py:29: UserWarning: Module pythoncom was already imported from C:\WINDOWS\system32\pythoncom25.dll, but d:\python25\lib\site-packages\pywin32

2009-03-30 Thread jo
What is the best way to solve this conflict ? from pylab import * d:\python25\lib\site-packages\pytz\__init__.py:29: UserWarning: Module pywintypes was already imported from C:\WINDOWS\system32\pywintypes25.dll, but d:\python25\lib\site-packages\pywin32-210-py2.5-win32.egg is being added to sy

[python-win32] how to hibernate from python ? how to detect idleness of the pc ?

2009-03-24 Thread jo
Hi I would like to automatically hibernate my home pc when my wife has not been using it for say half an hour. Two things I dont know - how to hibernate from python - how to detect idleness of the pc The pc is not set for automatic hibernate as we sometimes run longer running tasks that hibe