摘要:
Multithreaded COM server problem...P: n/aJohn Lull I'm writing a multithreaded COM server to manage a pool of hardware resources.All objects are designed to be thread-safe, and I've set sys.coinit_flags toCOINIT_MULTITHREADED before importing pythoncom.The problem is that all requests to the 阅读全文
摘要:
Python操作IHTMLDocument2用于自动化测试发布: 2010-6-30 10:19 | 作者: 不详 | 来源: 领测测试网采编 | 查看: 154次 | 进入软件测试论坛讨论领测软件测试网 if len(ieServers) > 0: ieServer = ieServers[0] msg = win32gui.RegisterWindowMessage('WM_HTML_GETOBJECT') ret, result = win32gui.SendMessageTimeout(ieServer, msg, 0, 0, win32con.SMTO_ABOR 阅读全文
摘要:
import pythoncomimport wmiimport threadingimport timeclass Info (threading.Thread):def __init__ (self):threading.Thread.__init__ (self)def run (self):print 'In Another Thread...'pythoncom.CoInitialize ()try:c = wmi.WMI ()for i in range (5):for process in c.Win32_Process ():print process.Proc 阅读全文