Huang Guan wrote: > Dear Tim Roberts, > > Do you mean Task Manager? I don't want you to hide your service from me. > It's my computer, and I want to know exactly what's running. > {Yes, I am writting a similar module. An general user of windows user > group could shut pythonservice.exe in the task manager, and my python > service would be shutdown in the same time.Is there any good ways > except hide pythonservice.exe process?}
No legitimate process should be able to hide from me. It's MY computer, and I have every right to know exactly what is running on it. And if I decide I don't want your process to run, it's not up to you to stop me. Don't do this. If you do, pythonservice.exe will get a reputation as being "malware", and all Python users will suffer. > {I use ResHacker tool to change the Version info of vmnetdhcp.exe > file, change 'VALUE "CompanyName", "VMware, inc."' to be 'VALUE > "CompanyName", "VMware,Crop."',then,show "VMware.Inc" in Msconfig > successfully, as"Vmware.Crop.",But I use the same method on > pythonservice.exe,it doesn't work? How can I do for it?} PythonService.exe does not seem to have a version resource at all. I don't know if ResHacker has the ability to insert a version resource into a file that does not have one. And even if it could, I'm not convinced that it is ethical. PythonService.exe was not created by you. Why should you have the right to claim it? > {without using makepy, according to below suggestion by Mr.Roger: > ie.Navigate('about:blank') > p=ie.Document._oleobj_.QueryInterface(pythoncom.IID_IPersistStreamInit ) > p.Load(<PyIStream that contains content>) > in existence p.Load() method confirmed,but how to do could use > P.Save() save PyISteram to a string variable(include Html header > info)?How to do could load to ie.document via p.Load() from HTML > SOURCE string variable? This is my greatest concern problem.I re-sent > this question to Roger and pywin32 mail list, pls do me the favor on > these problem. Thank you. } To do this, you will somehow have to create a PyIStream object that saves to a string. I Googled for "using istream python" and did find one or two examples of people doing this. > 4). While using pywin32 to control IE, > It's certain that using win32com.client.Dispatch return IE object. > It can execute the JavaScript method of current transfer page, > the following code has been execute and come through: > v_iexplore=win32com.client.Dispatch('InternetExplorer.Application') > v_iexplore.Navigate(' > http://www.cpplab.com/Articles/JSCalls/TestPage/JSCallTestPage.htm' > <http://www.cpplab.com/Articles/JSCalls/TestPage/JSCallTestPage.htm%27>) > v_id=v_iexplore.Document > .Script._oleobj_.GetIDsOfNames('Welcome') > v_iexplore.Document.Script._oleobj_.Invoke(\ > v_id, 0, win32com.client.pythoncom.DISPATCH_METHOD, True,\ > 'HuanGuan') > But: It can't execute the above code exactly In the > win32com.client.DispatchWithEvents return IE object. > How to solve this problem ? Would you pls kindly to show me some examples? It's interesting that you showed us the code that worked, but not the code that didn't work. That's what you need to fix, right? -- Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc.
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32