Re: [python-win32] Help in deciphering error

2024-04-15 Thread Alok Bhargava
It absolutely does Mark - thanks so much! Based on the error details, I am fairly certain I am seeing the same issue (even though I use pyinstaller). So I will either use 3.11 or think of a solution that does not use Windows Service. Thank you for being so responsive - greatly appreciate your co

Re: [python-win32] Help in deciphering error

2024-04-15 Thread Mark Hammond
The first comment of https://github.com/mhammond/pywin32/issues/2155 has STR that doesn't involve pyinstaller or custom executables. If you can reproduce that, then you are probably facing the same problem, so the solution is probably to use Python 3.11 until more information about the 3.12 spe

[python-win32] Help in deciphering error

2024-04-15 Thread Alok Bhargava
Hello, I would appreciate any help in diagnosing why this error occurs. I have WinPython installed on my Windows 11 Pro machine and not registered (registering did not change the outcome). I installed pyinstaller and generated a single file .exe. This is what I have encountered as documented in

[python-win32] Help me using python setup.py bdist

2022-02-02 Thread HUAWEI HUAWEI
> I'm Mohammed from Sudan, > Diploma in Computer science. > > Sudanese love using : > 1- windows ( 32bit & 64bit ) > 2 - Linux ( Deb, rpm ) > 3- android ( apk ) > 4- iPhone (ios ) > > I design simple python application to enter two numbers and calculate it > > > Help me using python setup.py bdist

Re: [python-win32] help needed, missing pythoncomload[37].dll ?

2021-10-07 Thread Lewis, Michael L
Hi, Thanks for the information, that helps a lot. All the best, Mike Lewis -Original Message- From: Mark Hammond Sent: Thursday, October 7, 2021 3:15 AM To: Lewis, Michael L ; python-win32@python.org Subject: Re: [python-win32] help needed, missing pythoncomload[37].dll ? [External

Re: [python-win32] help needed, missing pythoncomload[37].dll ?

2021-10-06 Thread Mark Hammond
On 7/10/2021 12:07 am, Lewis, Michael L wrote: Hi, Working on an internal system that we’re trying to update (sadly we were still on Python 2.7 ☹… One think I noticed is amongst the scripts we have is a dependency on: pythoncomloader27.dll (which appears at least to have been part of pywin3

[python-win32] help needed, missing pythoncomload[37].dll ?

2021-10-06 Thread Lewis, Michael L
Hi, Working on an internal system that we’re trying to update (sadly we were still on Python 2.7 ☹ … One think I noticed is amongst the scripts we have is a dependency on: pythoncomloader27.dll (which appears at least to have been part of pywin32_system32 This is referenced in some registry f

Re: [python-win32] Help with PySECURITY_DESCRIPTOR

2020-11-13 Thread momchil
the backup flag I need to do some reading on this Momchil -Original Message- From: Eryk Sun Sent: Friday, November 13, 2020 10:54 PM To: python-win32@python.org Cc: momc...@bojinov.info Subject: Re: [python-win32] Help with PySECURITY_DESCRIPTOR On 10/27/20, momc...@bojinov.info wrot

Re: [python-win32] Help with PySECURITY_DESCRIPTOR

2020-11-13 Thread Eryk Sun
On 10/27/20, momc...@bojinov.info wrote: > > I m trying to store file's acl along with the backup of the file and then > restore it on the same system Consider using BackupRead() and BackupWrite() from the win32file module. These functions support backup and restore of data streams (default and a

[python-win32] Help with PySECURITY_DESCRIPTOR

2020-10-27 Thread momchil
Hello, Newbie here I m trying to store file's acl along with the backup of the file and then restore it on the same system Got this from Mr Tim Golden: # http://timgolden.me.uk/python/win32_how_do_i/add-security-to-a-file.html sd = win32security.GetFileSecurity (FILENAME, win32securit

[python-win32] help about embed PDF in MS Word

2020-05-23 Thread Martín Trujillo Raddatz
HI! im new at programming in python, but very old in programming in general... i have a request to extract 1 or more embed pdf files in a huge amount of ms word files. i have tried in many ways, but it seems than pywin32 is the easy one, but I can't get the entire solution can any one help me

[python-win32] [Help] add all event definitions programmatically to event handler class

2019-01-23 Thread ng khanh
Hi, I tried the basic example for win32com.client to just record how many times events have been fired? I want to test which event types would be fired by addition to self.seen_events dictionary. self.event_methods_hash get all available events definition name ('OnWorkbookOpen',' OnWorkbookAfterSav

Re: [python-win32] Help with com_error: (-2147352567, 'Exception occurred.', (0, u'Microsoft Excel', u"Microsoft Excel cannot access the file

2016-12-05 Thread Doug Sharkey
-win32 digest..." >> >> Today's Topics: >> >>1. Re: Help with com_error: (-2147352567, 'Exception occurred.', >> (0, u'Microsoft Excel', u"Microsoft Excel cannot access the file >> (Tim Roberts) >> >> >&

Re: [python-win32] Help with com_error: (-2147352567, 'Exception occurred.', (0, u'Microsoft Excel', u"Microsoft Excel cannot access the file

2016-12-04 Thread Tim Roberts
On Dec 2, 2016, at 1:56 PM, Doug Sharkey wrote: > > Hi all, > > This bit of code: > >objExcel = win32com.client.Dispatch("Excel.Application") > objExcel.visible = False > objExcel.DisplayAlerts = False > objWb=objExcel.Workbooks.Open(fil

[python-win32] Help with com_error: (-2147352567, 'Exception occurred.', (0, u'Microsoft Excel', u"Microsoft Excel cannot access the file

2016-12-03 Thread Doug Sharkey
Hi all, This bit of code: objExcel = win32com.client.Dispatch("Excel.Application") objExcel.visible = False objExcel.DisplayAlerts = False objWb=objExcel.Workbooks.Open(filename) is producing this error: File ">", line 8, in Open com_error: (-2147

[python-win32] Help required with 407 error authentication using defaultcredentials‏

2015-12-30 Thread David Bernal Michelena
Hello, I need to be able to have python authenticate with the proxy in an enterprise environment using the credentials of the currently logged on user (NTLM). Since we are using an in house developed application, the program must run on several endpoint computers so it should not require to rec

[python-win32] Help with starting new processes

2014-08-22 Thread Tony Cappellini
Hello, I'm running Python 2.7.6 on 32-Bit Windows7 Pro. (Python 3 isn't an option at the moment) I have a parent python script which spawns two subprocesses- where each subprocess is running in a new console window. I want to watch each process running. This is why I've explicitly used creationfl

Re: [python-win32] Help for Excel Pivot Copy

2013-01-29 Thread Tim Golden
On 27/01/2013 12:37, Hsu. Victor (GSM) wrote: > Hi, > > I would like to copy a Pivot table to another location. > I can do that with VBA code below. Can someone guide me how to convert > below code to Python? Especailly the PivotTables PivotSelect part, I > don't know how to call it in py

[python-win32] Help for Excel Pivot Copy

2013-01-27 Thread Hsu. Victor (GSM)
Hi, I would like to copy a Pivot table to another location. I can do that with VBA code below. Can someone guide me how to convert below code to Python? Especailly the PivotTables PivotSelect part, I don't know how to call it in python. Sub copyPivot() Dim ws As Worksheet Set ws = Works

Re: [python-win32] Help needed on Dispatch

2012-05-11 Thread Mark Hammond
Or as a follow-up to Tim's response, the other likely scenario is that you have a 32bit Excel but a 64bit Python. So if that sounds likely, just remove the 64bit Python and use a 32bit version. Cheers, Mark On 11/05/2012 2:02 PM, rohit.niran...@wellsfargo.com wrote: Hi All, I am getting err

Re: [python-win32] Help needed on Dispatch

2012-05-11 Thread Tim Roberts
rohit.niran...@wellsfargo.com wrote: > Hi All, > > I am getting error while trying to execute code: > > from win32com.client import Dispatch > xlApp = Dispatch("Excel.Application") > > Dispatch > C:\Python27\lib\site-packages\win32com\client\__init__.py > 95 > _G

[python-win32] Help needed on Dispatch

2012-05-11 Thread Rohit.Nirantar
Hi All, I am getting error while trying to execute code: from win32com.client import Dispatch xlApp = Dispatch("Excel.Application") DispatchC:\Python27\lib\site-packages\win32com\client\__init__.py 95 _GetGoodDispatchAndUserName C:\Python27\lib\site-packages\win32com\client\d

Re: [python-win32] Help compiling Python and some modules with Visual Studio 11

2012-04-12 Thread etienne . labaume
t: [python-win32] Help compiling Python and some modules with Visual Studio 11 Hi, I need some help to compile python source code under Visual Studio 11. I need to have my own delivery process as I also need to compile few extra modules that are not always available under windows ( lxml for i

[python-win32] Help compiling Python and some modules with Visual Studio 11

2012-04-12 Thread Emmanuel Chomarat
Hi, I need some help to compile python source code under Visual Studio 11. I need to have my own delivery process as I also need to compile few extra modules that are not always available under windows ( lxml for inst is not up to date). Any help or references will be very much appreciated . I

Re: [python-win32] Help Needed on Handling Events from a Proprietary COM Object

2012-03-05 Thread Darren McElfresh
nt: Sunday, March 4, 2012 10:18 PM Subject: Re: [python-win32] Help Needed on Handling Events from a Proprietary COM Object Sorry for the delay - I'm afraid there isn't anything obvious I can see.   However, note that all the IConnection* interfaces are fully exposed in Python - so it sho

Re: [python-win32] Help Needed on Handling Events from a Proprietary COM Object

2012-03-04 Thread Mark Hammond
* Mark Hammond *To:* Darren McElfresh *Cc:* "python-win32@python.org" *Sent:* Tuesday, February 28, 2012 5:15 PM *Subject:* Re: [python-win32] Help Needed on Handling Events from a Proprietary COM Object On 29/02/2012 8:26 AM, Darren McElfresh wrote: > I’ve read through numerous

Re: [python-win32] Help Needed on Handling Events from a Proprietary COM Object

2012-02-29 Thread Darren McElfresh
From: Mark Hammond To: Darren McElfresh Cc: "python-win32@python.org" Sent: Tuesday, February 28, 2012 5:15 PM Subject: Re: [python-win32] Help Needed on Handling Events from a Proprietary COM Object On 29/02/2012 8:26 AM, Darren McElfresh wrote: > I’ve read through numerous po

Re: [python-win32] Help Needed on Handling Events from a Proprietary COM Object

2012-02-28 Thread Mark Hammond
On 29/02/2012 8:26 AM, Darren McElfresh wrote: I’ve read through numerous posts on how to get this to work, but I’ve realized it is time to ask for help. In general I have a COM object that returns an event handler: /event_source = com_object.newEventSource( arg_data )/ I’ve tried establishing th

[python-win32] Help Needed on Handling Events from a Proprietary COM Object

2012-02-28 Thread Darren McElfresh
I’ve read through numerous posts on how to get this to work, but I’ve realized it is time to ask for help.   In general I have a COM object that returns an event handler:     event_source = com_object.newEventSource( arg_data )   I’ve tried establishing the connection points necessary by creating a

Re: [python-win32] Help with accessing form elements and setting focus.

2010-12-23 Thread Tim Roberts
Pat McGuire wrote: > I am new at programming with Python and am using Pythonwin. > > Is there a site that will show me how to access each type of form > element, i.e. option, hrefs, links or examples of this. Also how to > set focus on a form element. Actually, this is not really a Python quest

[python-win32] Help with accessing form elements and setting focus.

2010-12-22 Thread Pat McGuire
I am new at programming with Python and am using Pythonwin. Is there a site that will show me how to access each type of form element, i.e. option, hrefs, links or examples of this. Also how to set focus on a form element. Any help is greatly appreciated.

[python-win32] help

2010-06-09 Thread José Benito Camiña Prado
Hi, I´m trying to do a path logger (Navigation logger) in Python, the thing that I need is that the program can get the paths that de user is accesing in real time, for example: C:\Documents and Settings\ C:\Documents and Settings\Administrator\ C:\Documents and Settings\Administrator\Desktop\

Re: [python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-27 Thread Xin Zhao
I am not sure I follow you. What I did was: --- >>> wo = pythoncom.New('InternetExplorer.Application') >>> import win32com.client >>> w = win32com.client.Dispatch(wo) >>> w.Navigate

Re: [python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-27 Thread Tim Roberts
Xin Zhao wrote: > I am not sure I follow you. > > What I did was: > > --- > >>> wo = pythoncom.New('InternetExplorer.Application') > >>> import win32com.client > >>> w = win32com.cli

Re: [python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-27 Thread Tim Roberts
Xin Zhao wrote: > Thanks for your kind reply. > > I tried the new iid, doesn't help. :( > > >>> import pythoncom > >>> wo=pythoncom.New('InternetExplorer.Application') > >>> wo.QueryInterface('{3050f485-98b5-11cf-bb82-00aa00bdce0b}') > Traceback (most recent call last): > File "", line 1, in ? >

[python-win32] Help! How to get IHTMLDocument3 dispatch object?

2010-05-26 Thread Xin Zhao
Hey, I am trying to get the Dispatch object of IHTMLDocument3, so I wrote the following code wo = pythoncom.New('InternetExplorer.Application') wo.QueryInterface('{3050F673-98B5-11CF-BB82-00AA00BDCE0B}') But got the following error: pywintypes.com_error: (-2147467262, 'No such interface supporte

Re: [python-win32] help writing text to a windows edit control

2010-04-06 Thread lin_2008
Yellow stone diesel parts plant is one of the leading manufacturers of engine parts, in particular diesel fuel injection system accessories for replacement, such as Fuel injection Nozzle, Plunger and Delivery valve, ETC In south of china . for more detail please visit our website : www.yell

Re: [python-win32] help writing text to a windows edit control

2010-03-25 Thread Tim Roberts
Richard Leahy wrote: > Hi Tim its just a C windows gui application that consists of a edit > control and a button. I am just trying to write my text string to the > edit control i can write to the button and i know i have found the > right control id for the edit control to but for some reason it

Re: [python-win32] help writing text to a windows edit control

2010-03-24 Thread Tim Roberts
Richard Leahy wrote: > Hi guys. I have been struggling with writing a string into an edit > control using the windows api calls. What I have noticed is that if i > write text to a different control like a button control for example it > works. Is there something in place like a security thing that

[python-win32] help writing text to a windows edit control

2010-03-24 Thread Richard Leahy
Hi guys. I have been struggling with writing a string into an edit control using the windows api calls. What I have noticed is that if i write text to a different control like a button control for example it works. Is there something in place like a security thing that prevents writing to an ed

Re: [python-win32] Help calling a windows function in user32

2010-03-23 Thread Tim Roberts
Richard Leahy wrote: > So basically your saying that if i just use this > > test = windll.user32.FindWindowA(None, "Windows App") > > if not test: > print "[*] cant find window" > > print test // which returns 7471154 the handle > > windll.user32.SetDlgItemTextA(test,1,"test") > > this doesn't

Re: [python-win32] Help calling a windows function in user32

2010-03-23 Thread Tim Roberts
Richard Leahy wrote: > Hi, thank you for your reply. I have tried the FindWindow which works > great how ever It cant find the window i am after. > ... > test = windll.user32.FindWindowA(None, "Windows App") // find the > first window perfectly > > if not test: > print "[*] cant find window" >

Re: [python-win32] Help calling a windows function in user32

2010-03-23 Thread Tim Roberts
You wrote: > >Hey guys im having a little difficulty sending data to my C application >through python. I have my test.exe that has a input box in a window. I >am trying to populate the edit box with input i send to it through >python. This is a far as I have been able to get so far. any help >wou

[python-win32] Help calling a windows function in user32

2010-03-23 Thread Richard Leahy
Hey guys im having a little difficulty sending data to my C application through python. I have my test.exe that has a input box in a window. I am trying to populate the edit box with input i send to it through python. This is a far as I have been able to get so far. any help would be much appre

Re: [python-win32] help with pywin32

2009-12-15 Thread Tim Roberts
Moll, Benjamin wrote: > > Hey guys, > > Im working with this script since weeks. Until today everything works > fine. I could open, read and modify cells without any problems. since > this morning I receive an error that says: > > > > Traceback (most recent call last): > > File "C:\Documents an

[python-win32] help with pywin32

2009-12-15 Thread Moll, Benjamin
Hey guys, Im working with this script since weeks. Until today everything works fine. I could open, read and modify cells without any problems. since this morning I receive an error that says: Traceback (most recent call last): File "C:\Documents and Settings\USER\Desktop\Code\python\test

Re: [python-win32] help passing a buffer to an ActiveX object via win32com

2009-08-09 Thread Orest Kozyar
> > > The C prototype is > > /long ReadTag(LPCTSTR name, float* pBuf, long nOS, long nWords);/ > > That's not really the COM-approved way to declare that. Note the > signature: > > > Using MakePy, the signature is > > /def ReadTag(self, Name=defaultNamedNotOptArg, > > pBuf=defaultNamedNotOptArg, n

Re: [python-win32] help passing a buffer to an ActiveX object via win32com

2009-08-07 Thread Tim Roberts
Orest Kozyar wrote: > I'm trying to use an ActiveX object to read data from hardware. > Certain methods do not appear to work, specifically ones that expect a > pointer to an array of 32-bit floats as one of the variables. One > method is /ReadTag/. > > The C prototype is > /long ReadTag(LPCTSTR

[python-win32] help passing a buffer to an ActiveX object via win32com

2009-08-07 Thread Orest Kozyar
I'm trying to use an ActiveX object to read data from hardware. Certain methods do not appear to work, specifically ones that expect a pointer to an array of 32-bit floats as one of the variables. One method is *ReadTag*. The C prototype is *long ReadTag(LPCTSTR name, float* pBuf, long nOS, long

Re: [python-win32] help, ImportError: MemoryLoadLibrary failed loading win32ui.pyd!!!

2009-06-16 Thread Mike Driscoll
Sweet Boy wrote: hi, well i got this exception when i run my .exe Traceback (most recent call last): File "new.py", line 2, in (module) File "zipextimporter.pyc", line 98, in load_module ImportError: MemoryLoadLibrary failed loading win32ui.pyd this is my script to make .py to .exe: from dist

[python-win32] help, ImportError: MemoryLoadLibrary failed loading win32ui.pyd!!!

2009-06-15 Thread Sweet Boy
hi, well i got this exception when i run my .exe Traceback (most recent call last): File "new.py", line 2, in (module) File "zipextimporter.pyc", line 98, in load_module ImportError: MemoryLoadLibrary failed loading win32ui.pydthis is my script to make .py to .exe: from distutils.core import

Re: [python-win32] Help required in opening a remote file in python.

2009-02-23 Thread Vernon Cole
Yes, if you are normal Windows shared files, you should be using normal file access functions. But your file name is incorrectly formatted. The name of the remote computer must have TWO leading backslashes, which is Windows' cue that you want a remote file. Python will convert forward slashes ("/"

Re: [python-win32] Help required in opening a remote file in python.

2009-02-23 Thread Dahlstrom, Roger
venu madhav Sent: Sunday, February 22, 2009 11:15 PM To: Python-Win32 List Subject: [python-win32] Help required in opening a remote file in python. Hello all, I am writing an application where I need to open a shared file on a remote machine using python script. I tried using the following

Re: [python-win32] Help required in opening a remote file in python. [SEC=PERSONAL]

2009-02-22 Thread Andrew MacIntyre
> Hello all, I am writing an application where I need to open a shared > file on a remote machine using python script. I tried using the > following function: f = > urllib.open("\\remote_machine\\folder1\\file1.doc") I also tried using > class urllib.FancyURLopener(...) but didn't work. > Can so

Re: [python-win32] Help required in opening a remote file in python.

2009-02-22 Thread Gerdus van Zyl
Try using the normal file access functions, eg: open("file","r"), etc. ~G On Mon, Feb 23, 2009 at 6:14 AM, venu madhav wrote: > Hello all, I am writing an application where I need to open a shared file on > a remote machine using python script. I tried using the following function: > f = urllib.

[python-win32] Help required in opening a remote file in python.

2009-02-22 Thread venu madhav
Hello all, I am writing an application where I need to open a shared file on a remote machine using python script. I tried using the following function: f = urllib.open("\\remote_machine\\folder1\\file1.doc") I also tried using class urllib.FancyURLopener(...) but didn't work. Can some one help me

Re: [python-win32] help with python COM server needed

2008-10-06 Thread Tim Roberts
aivars wrote: > this is how I call it from VB: > > Sub testPython() > > Dim a > Dim response > > Set a = CreateObject("Aivars.ReturnSaldo") > response = a.ReturnAmount() '--->error here > > Worksheets("Sheet1").Range("a1").Value = response > End Sub > Function calls in VB with no parameters don

Re: [python-win32] help with python COM server needed

2008-10-03 Thread aivars
Thanks, Tim, Your suggestions are OK but the code works called from IDLE - It does not work when called from VB as a COM server. Mark Hammond's example works for me perfectly. I cannot see what I am doing wrong. This is only a trial version and is definitely ugly. The ReturnAmount will take argum

Re: [python-win32] help with python COM server needed

2008-10-03 Thread Tim Roberts
aivars wrote: > Hello, > basically I rewrote an example by Mark Hammond trying to create a > simple trial COM server as per his Python programming on Win32 book > The problem is that when run from VB6 (Excel VBA) it gives me an error > > exceptions.typeerror > ReturnAmount() takes no arguments (1 g

[python-win32] help with python COM server needed

2008-10-03 Thread aivars
Hello, basically I rewrote an example by Mark Hammond trying to create a simple trial COM server as per his Python programming on Win32 book The problem is that when run from VB6 (Excel VBA) it gives me an error exceptions.typeerror ReturnAmount() takes no arguments (1 given) Google search gives

Re: [python-win32] help with parsing email

2008-08-19 Thread Tim Roberts
Mike Driscoll wrote: > Ahmed, Shakir wrote: >> but I am getting error before that point and could not go to the user >> account or pass. >> >> M =oplib.POP3(mailserver) >> Traceback (most recent call last): >> File "", line 1, in ? >> File "C:\Python24\lib\poplib.py", line 96, in __init__ >>

Re: [python-win32] help with parsing email

2008-08-19 Thread Mike Driscoll
Ahmed, Shakir wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Werner F. Bruhin Sent: Monday, August 18, 2008 1:04 PM To: [EMAIL PROTECTED] Cc: python-win32@python.org Subject: Re: help with parsing email Ahmed, Shakir wrote: Thanks everyone wh

Re: [python-win32] help with parsing email

2008-08-18 Thread Gabriel Genellina
En Mon, 18 Aug 2008 12:24:07 -0300, Ahmed, Shakir <[EMAIL PROTECTED]> escribió: > Thanks everyone who tried to help me to parse incoming email from an exchange > server: > > Now, I am getting following error; I am not sure where I am doing wrong. I > appreciate any help how to resolve this error

Re: [python-win32] help with parsing email

2008-08-18 Thread Gabriel Genellina
En Mon, 18 Aug 2008 12:24:07 -0300, Ahmed, Shakir <[EMAIL PROTECTED]> escribió: > Thanks everyone who tried to help me to parse incoming email from an exchange > server: > > Now, I am getting following error; I am not sure where I am doing wrong. I > appreciate any help how to resolve this error

Re: [python-win32] help with parsing email

2008-08-18 Thread Tim Roberts
Ahmed, Shakir wrote: Thanks everyone who tried to help me to parse incoming email from an exchange server: Now, I am getting following error; I am not sure where I am doing wrong. I appreciate any help how to resolve this error and extract emails from an exchange server. First I tried:

Re: [python-win32] help with parsing email

2008-08-18 Thread Ahmed, Shakir
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Werner F. Bruhin Sent: Monday, August 18, 2008 1:04 PM To: [EMAIL PROTECTED] Cc: python-win32@python.org Subject: Re: help with parsing email Ahmed, Shakir wrote: > Thanks everyone who tried to help me to p

Re: [python-win32] help with parsing email

2008-08-18 Thread Ahmed, Shakir
Thanks everyone who tried to help me to parse incoming email from an exchange server: Now, I am getting following error; I am not sure where I am doing wrong. I appreciate any help how to resolve this error and extract emails from an exchange server. First I tried: >>> mailserver = 'EXCHVS01

Re: [python-win32] help with parsing email

2008-08-18 Thread Gabriel Genellina
En Thu, 14 Aug 2008 12:50:57 -0300, Ahmed, Shakir <[EMAIL PROTECTED]> escribió: > I need to grab/parse numeric numbers such as app number from incoming > emails stored in Microsoft Outlook (Microsoft Exchange server) with > specified subject line. > > The email body is like this > > myregion ; tst

Re: [python-win32] help with parsing email

2008-08-14 Thread James Matthews
It seems very simple split it and then rfind to the first slash and slice the rest. On Thu, Aug 14, 2008 at 9:19 AM, Tim Golden <[EMAIL PROTECTED]> wrote: > Ahmed, Shakir wrote: > >> I need to grab/parse numeric numbers such as app number from incoming >> emails stored in Microsoft Outlook (Micro

Re: [python-win32] help with parsing email

2008-08-14 Thread Tim Golden
Ahmed, Shakir wrote: I need to grab/parse numeric numbers such as app number from incoming emails stored in Microsoft Outlook (Microsoft Exchange server) with specified subject line. The email body is like this myregion ; tst ; 11-Aug-2008 http://my.xyz.com//content/ifs/apps/myDocFo

[python-win32] help with parsing email

2008-08-14 Thread Ahmed, Shakir
Hi all, I do appreciate if any one can help me for my following problem: I need to grab/parse numeric numbers such as app number from incoming emails stored in Microsoft Outlook (Microsoft Exchange server) with specified subject line. Any help with the python script is highly appreciat

Re: [python-win32] Help about printing

2008-05-02 Thread Javi
Tim Roberts escribió: Javi wrote: Hello, i use python 2.5, and wx, i'm trying to print a bitmap with transparency background but it doesnt print right, i just get a preview right but when i printed it, bitmap transparency background is printed on black. I dont know why , but i need to prin

Re: [python-win32] Help about printing

2008-05-01 Thread Dahlstrom, Roger
: [python-win32] Help about printing Michel Claveau wrote: > Hi! > >> Many printers do not handle transparency. What kind of printer is it? > > An invisible printer? > ;-) Ironically, I often have the opposite problem. When my inkjet printer starts to run low, I find that

Re: [python-win32] Help about printing

2008-05-01 Thread Tim Roberts
Michel Claveau wrote: Hi! Many printers do not handle transparency. What kind of printer is it? An invisible printer? ;-) Ironically, I often have the opposite problem. When my inkjet printer starts to run low, I find that it excels at printing transparent images, but neglects to print

Re: [python-win32] Help about printing

2008-05-01 Thread Michel Claveau
Hi! Many printers do not handle transparency. What kind of printer is it? An invisible printer? ;-) Michel Claveau ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Help about printing

2008-05-01 Thread Tim Roberts
Javi wrote: Hello, i use python 2.5, and wx, i'm trying to print a bitmap with transparency background but it doesnt print right, i just get a preview right but when i printed it, bitmap transparency background is printed on black. I dont know why , but i need to print it right. All help w

[python-win32] Help about printing

2008-05-01 Thread Javi
Hello, i use python 2.5, and wx, i'm trying to print a bitmap with transparency background but it doesnt print right, i just get a preview right but when i printed it, bitmap transparency background is printed on black. I dont know why , but i need to print it right. All help will be welcom

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-27 Thread Thomas Heller
Larry Bates schrieb: > One last problem. When I working class inside my COM object and everything > works until I (or Python) destroys the reference to this object. I then get > this exception: > > Exception exceptions.ValueError: 'COM method call without VTable' in meth > od POINTER(IProgres

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-27 Thread Larry Bates
Larry Bates wrote: > Tim Golden wrote: >> Larry Bates wrote: >>> I almost have it completely working with one remaining problem. The dialog >>> allows the user to specify an AVI that runs showing activity while things >>> are >>> going in the background. There are AVIs stored in shell32.dll fo

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-27 Thread Larry Bates
Tim Golden wrote: > Larry Bates wrote: >> I almost have it completely working with one remaining problem. The dialog >> allows the user to specify an AVI that runs showing activity while things >> are >> going in the background. There are AVIs stored in shell32.dll for move/copy >> (resource

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-27 Thread Tim Golden
Larry Bates wrote: > I almost have it completely working with one remaining problem. The dialog > allows the user to specify an AVI that runs showing activity while things are > going in the background. There are AVIs stored in shell32.dll for move/copy > (resource number 160 and 161 respectiv

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-27 Thread Larry Bates
Thomas Heller wrote: > Larry Bates schrieb: >> Thomas Heller wrote: >>> Larry Bates schrieb: I've spent all morning searching and I just can't seem to find the TypeLibrary name for this COM interface. > >>> Sometimes someone who wants to use the object from VB writes an idl file >

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-26 Thread Thomas Heller
Larry Bates schrieb: > Thomas Heller wrote: >> Larry Bates schrieb: >>> I've spent all morning searching and I just can't seem to find the >>> TypeLibrary >>> name for this COM interface. >> Sometimes someone who wants to use the object from VB writes an idl file >> and compiles a typelib (but y

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-22 Thread Thomas Heller
> Ok, I downloaded that project, and stripped out the TLB. I then got comtypes > and was able to use comtypes.client.GetModule to generate the typelib wrapper > module for it: > > >>> GetModule("progdlg.tlb") > 'C:\Python25\lib\site-packages\comtypes\gen\_2F2719A2_83CC_11D3_A08C_0040F6A4BFEC_

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-22 Thread Larry Bates
Thomas Heller wrote: > Larry Bates schrieb: >> I've spent all morning searching and I just can't seem to find the >> TypeLibrary >> name for this COM interface. I've searched the registry, scanned COM >> browser >> list at least a dozen times, etc. Some information about this COM object is >

Re: [python-win32] Help calling IProgressDialog Interface

2008-02-22 Thread Thomas Heller
Larry Bates schrieb: > I've spent all morning searching and I just can't seem to find the > TypeLibrary > name for this COM interface. I've searched the registry, scanned COM browser > list at least a dozen times, etc. Some information about this COM object is > located here: > > http://www.

[python-win32] Help calling IProgressDialog Interface

2008-02-22 Thread Larry Bates
I've spent all morning searching and I just can't seem to find the TypeLibrary name for this COM interface. I've searched the registry, scanned COM browser list at least a dozen times, etc. Some information about this COM object is located here: http://www.com.it-berater.org/COM/windows_shell

Re: [python-win32] Help with COM objs across threads: The object exporter specified was not found

2008-02-20 Thread Mark Hammond
February 2008 2:48 AM To: python-win32@python.org Subject: [python-win32] Help with COM objs across threads: The object exporter specified was not found Dear list, I wrote a small class which has some COM objects among its attributes. I need to access the object from different threads so I defined

[python-win32] Help with COM objs across threads: The object exporter specified was not found

2008-02-20 Thread mauro tizianel
Dear list, I wrote a small class which has some COM objects among its attributes. I need to access the object from different threads so I defined two methods to marshal and unmarshal the interfaces when working with the object. Everything seemed to work fine on my PC, never had an error. But I dis

Re: [python-win32] Help needed : FindWindowEx

2007-05-03 Thread Tim Roberts
Tim Golden wrote: > > (I spend most of my WMI time doing detective work like that!) > > I think what I meant was that the OP wanted to step through > some kind installation process when the device was initiated. > At least, I think that's what he wanted to do. And I'm not > sure how much closer the

Re: [python-win32] Help needed : FindWindowEx

2007-05-03 Thread Tim Golden
Tim Roberts wrote: > Tim Golden wrote: >> It's actually made a bit easier by using >> the Win32_DeviceChange event under WMI >> (you will not be surprised to hear me say!) >> >> But once you've got the fact that the device has >> changed, I'm not sure where you go from there... > > I admit that WM

Re: [python-win32] Help needed : FindWindowEx

2007-05-03 Thread Tim Roberts
Tim Golden wrote: > > It's actually made a bit easier by using > the Win32_DeviceChange event under WMI > (you will not be surprised to hear me say!) > > But once you've got the fact that the device has > changed, I'm not sure where you go from there... I admit that WMI is not my strong suit, but

Re: [python-win32] Help needed : FindWindowEx

2007-05-03 Thread Tim Golden
Tim Roberts wrote: > Simon Dahlbacka wrote: >> Random thought.. there *has* to be a better way of finding out when a >> usb device is plugged in... >> >> (not that I know how, but I haven't needed to find out either..) > > Oh, there is. You can watch for the WM_DEVICECHANGE message, which > fires

Re: [python-win32] Help needed : FindWindowEx

2007-05-03 Thread Jerry Hill
On 5/3/07, Tim Roberts <[EMAIL PROTECTED]> wrote: > Oh, there is. You can watch for the WM_DEVICECHANGE message, which > fires every time there is a plug-and-play event. Once you get that > message, you can go enumerate the devices in your device class using the > SetupDi APIs to see if you are p

Re: [python-win32] Help needed : FindWindowEx

2007-05-03 Thread Tim Roberts
Simon Dahlbacka wrote: > Random thought.. there *has* to be a better way of finding out when a > usb device is plugged in... > > (not that I know how, but I haven't needed to find out either..) Oh, there is. You can watch for the WM_DEVICECHANGE message, which fires every time there is a plug-and

Re: [python-win32] Help needed : FindWindowEx

2007-05-02 Thread Simon Dahlbacka
essage on the propt or logs it to a file do suggest your ideas on this -- *From:* Simon Dahlbacka [mailto:[EMAIL PROTECTED] *Sent:* Thursday, May 03, 2007 10:55 AM *To:* Amit Arora *Cc:* Roger Upole; python-win32@python.org *Subject:* Re: [python-win32] Help

Re: [python-win32] Help needed : FindWindowEx

2007-05-02 Thread Amit Arora
:[EMAIL PROTECTED] Sent: Thursday, May 03, 2007 10:55 AM To: Amit Arora Cc: Roger Upole; python-win32@python.org Subject: Re: [python-win32] Help needed : FindWindowEx Random thought.. there *has* to be a better way of finding out when a usb device is plugged in... (not that I know how, but I haven&#

Re: [python-win32] Help needed : FindWindowEx

2007-05-02 Thread Simon Dahlbacka
Random thought.. there *has* to be a better way of finding out when a usb device is plugged in... (not that I know how, but I haven't needed to find out either..) On 5/3/07, Amit Arora <[EMAIL PROTECTED]> wrote: This helps a lot, there was actually a confusion in window names as you mention

Re: [python-win32] Help needed : FindWindowEx

2007-05-02 Thread Amit Arora
This helps a lot, there was actually a confusion in window names as you mentioned . I tried this now for notepad while opening notepad on desktop , it worked :) Import win32gui hWnd = win32ui.FindWindowEx(win32gui.GetDesktopWindow(), None,"Notepad",None) Value of hWnd I get : object 'PyCWn

[python-win32] Help needed : FindWindowEx

2007-05-02 Thread Amit Arora
Hi, I am a Amateur in python and an doing some work on Python and Win32 APIs . One of my task includes finding the active window , during any installation proces and proceed .. Take an instance : I connect a USB device say a USB printer to the USB port , as soon as it connects we get a pop-u

  1   2   >