Mark Hammond wrote: >> I am pretty sure I need to call >> >> SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0, >> (LPARAM) "Environment", SMTO_ABORTIFHUNG, >> 5000, &dwReturnValue); >> >> And can't figure out how. > > import win32gui, win32con > rc, dwReturnValue = win32gui.SendMessageTimeout(win32con.HWND_BROADCAST, > win32con.WM_SETTINGCHANGE, 0, "Environment", win32con.SMTO_ABORTIFHUNG, > 5000)
Awesome. OT question, Should this effect the PATH in the shell that called addtopath.py? os.environ['PATH'] = os.environ['PATH'] + ';' + DirToAdd currently I have an inst.bat with lines like this: addtopath.py svn-win32-1.4.4\bin path %path%;"%ProgramFiles%\svn-win32-1.4.4\bin" Be nice to consolidate. and just in case I haven't hijacked my own thread enough: does pywin32-210.win32-py2.5.exe have any command line switches so I don't have to hit 'next next...'? Carl K _______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32