[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

[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