Re: [python-win32] Python Problem

2005-09-06 Thread bob
At 09:21 AM 9/5/2005, Arun Tyagi wrote: >Hi, > >I want to know that can we execute MS Access Macro's using python. # requires Access to be installed import win32com.client # from https://sourceforge.net/projects/pywin32/ a = win32com.client.Dispatch('access.application.9') # 9 may be different de

[python-win32] Running Access Commands (was Python Problem)

2005-09-07 Thread bob
At 08:58 AM 9/7/2005, Arun Tyagi wrote: >Hi Bob, > >last time i asked u how to run access macro through >python? and ur solution worked fine, so thanks a lot fot it. You are welcome. And please in the future give a meaningful subject on your questions. it helps us track the que

Re: [python-win32] Looking for sample code

2005-09-07 Thread bob
atabase engine to read the tables and queries. > >However, that's all it can get to. The macros, forms, reports, and VB >code are NOT part of the database per se. They are strictly part of the >Access application. In order to gain access to them, you have to use >COM to f

Re: [python-win32] [Tutor] Load PDF

2005-10-03 Thread bob
I am moving this to the python-win32 list where we can better handle it. Please send further replies there. At 03:41 AM 10/3/2005, Pepe Pena wrote: >I am attempting to load a pdf file programatically within Adobe Reader >using the Adobe Acrobat 7.0 Browser Control Type Library. If I run this >c

Re: [python-win32] Weird ADSI hang.

2005-10-06 Thread bob
At 08:51 PM 10/5/2005, Jeff Fisher TEST wrote: >Hi all, > >I'm rather frustrated by an issue I'm having. > >This sample bit of code runs fine; however, at the end just hangs and the >program never ends. I'm using Python 2.3.2 (from ActiveState - build 232) > >BEGIN CODE > >import win32com.client >

Re: [python-win32] Weird ADSI hang.

2005-10-06 Thread bob
At 11:15 AM 10/6/2005, Jeff Fisher wrote: > > Well I ran it w/o problem. Under what are you running it? (IDLE, Python > > command prompt, ...??) > > What is the evidence that it hangs? > >I'm running it from a command prompt typing: python iisdigger.py > >Evidence it hangs? It starts, seems to run

Re: [python-win32] Weird ADSI hang.

2005-10-06 Thread bob
At 11:15 AM 10/6/2005, Jeff Fisher wrote: > > Well I ran it w/o problem. Under what are you running it? (IDLE, Python > > command prompt, ...??) > > What is the evidence that it hangs? > >I'm running it from a command prompt typing: python iisdigger.py > >Evidence it hangs? It starts, seems to run

Re: [python-win32] Weird ADSI hang.

2005-10-06 Thread bob
At 04:15 PM 10/6/2005, Gabriel Genellina wrote: >At Thursday 6/10/2005 00:51, you wrote: > > >import win32com.client > > > >def recurse(objstr): > > for obj in win32com.client.GetObject(objstr): > > print "Digging into", obj.ADsPath, "class=" + obj.Class > >

Re: [python-win32] Translating MS-Word documents

2005-10-11 Thread bob
At 02:32 AM 10/11/2005, Øyvind wrote: >Hello. > >I need to translate several Word-documents. I have a list with >approximately 5000 words and its translation, and would like to read thru >a Word-document, look for the words in the list and replace them. However, >I need to keep the current formatin

Re: [python-win32] Possible bug: what information to provide

2005-10-12 Thread bob
At 05:21 AM 10/12/2005, Alex Jouravlev wrote: >Hi, > >I have a potential bug report. PythonWin fails to invoke a COM Object's >function. I am a bit puzzled what information should be provided. I am not a >COM guru > > - I am using PythonWin to write some scripts to an off-the-shelf COM >enabled sy

Re: [python-win32] Translating MS-Word documents

2005-10-12 Thread bob
At 04:28 AM 10/12/2005, Øyvind wrote: >Hello, and thank you for the answers so far. > >The documents can be huge, as in 4-5000 pages, and there are upto 7*5000 >words that needs to be replaced. (It is as you have pointed out a >translation of languages, but for a very speicalised branch of patents.

Re: [python-win32] win32com calling C++ COM interface

2005-10-19 Thread bob
At 01:22 PM 10/19/2005, Shad Muegge wrote: >Hi, > >I've just started looking at Python. I am trying to resolve an issue a >user is having trying to access the COM interface in our application from >Python. > >C++ code: > >STDMETHODIMP >CMyClass::Read( > const int x, > VARIANT *indexlist,

Re: [python-win32] python - visualbasic integration

2005-12-06 Thread bob
At 03:18 AM 12/6/2005, Amit Antebi wrote: We want to combine Visual Basic with Python. GUI will be in VIsual basic. Computation Engine will be in python. Which architecture do you recommend:   1.  COM  - who will be client and who server, and why? 2.  Python API - access the python from VB using

Re: [python-win32] Excel

2006-01-10 Thread bob
At 08:12 AM 1/10/2006, Stefan Elwesthal wrote: >Hi all! > >I have to ask, cause two days later I'm starting to get annoyed ;-) > >How could I use PythonCOM and save my re-worked Excel file as an >xlCSV file? All I get is >"SaveAs method in Worksheet class failed". > >Is something wrong with this l

Re: [python-win32] Excel

2006-01-10 Thread bob
At 11:16 AM 1/10/2006, John Machin wrote: >bob wrote: >>Viola, it displays 6. > >:-) >Cello, it displays 7. >(-: Version difference? I'm using Excel 2000. and I get xlcsv = 6! But it should stay the same! You can also open the object browser (F2) within the VB Editor,

Re: [python-win32] Excel

2006-01-10 Thread bob
At 01:10 PM 1/10/2006, John Machin wrote: >bob wrote: > > At 11:16 AM 1/10/2006, John Machin wrote: > > > >> bob wrote: > >> > >>> Viola, it displays 6. Oh alright I meant voila. Mi francios es pocito. > >> > >> > >> :-) &

[python-win32] Watch window

2008-08-19 Thread bob gailer
for the pointers regarding running a script at startup and moving/sizing windows. I now have 8 windows magically appearing each time I start PyWin. -- Bob Gailer Chapel Hill NC 919-636-4239 I now When we take the time to be aware of our feelings and needs we have more satisfying

Re: [python-win32] getting integer value for worksheet.Cells(row, col).Value

2008-11-19 Thread bob gailer
ed that for use "... in a Visual Basic module ...". You are using Val as part of a Python expression, and Python does not know "Val". Has nothing to do with COM. Try int instead of Val. -- Bob Gailer Chapel Hill NC 919-636-4239 _

Re: [python-win32] DDE: python server/excel client - pass array?

2008-12-24 Thread bob gailer
r a binary array. Any ideas on either of the following two questions would be greatly appreciated: a) how I could use the current dde module to pass in something Excel could read; b) what extra code would need to be added to the dde module to pass back arrays

Re: [python-win32] DDE: python server/excel client - pass array?

2008-12-30 Thread bob gailer
Why oh why are you using DDE when there are newer and better ways??? -- Bob Gailer Chapel Hill NC 919-636-4239 ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Releasing a Com object

2009-01-20 Thread bob gailer
? "can’t release" - what does that mean? Certainly xxx no longer refers to the object.   Thanks   Gary   # example xxx = win32com.client.Dispatch('abcd.XXX') # to release xxx = None -- Bob Gailer Chapel

Re: [python-win32] Releasing a Com object

2009-01-20 Thread bob gailer
dll com objects I have used in the past have had this problem. Excel behaves that way also. One must explicitly tell Excel to quit, as in excelObj.quit(). Does your dll have an equivalent? Or take a look at psTools for ways to kill processes. -- Bob Gailer Chapel Hill NC 919-636-4239

[python-win32] Bug? Can't resize watch window when displayed on 2nd monitor.

2009-01-30 Thread bob gailer
Bug? Can't resize watch window when displayed on 2nd monitor. -- Bob Gailer Chapel Hill NC 919-636-4239 ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] BUG? Edit -> Replace does not work in interactive window.

2009-02-01 Thread bob gailer
BUG? Edit -> Replace does not work in interactive window. -- Bob Gailer Chapel Hill NC 919-636-4239 ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] win32job.SetInformtionJobObject usage -- what am I doing wrong?

2009-05-26 Thread Bob Erb
Output is: 4123123123 0 The job's JobMemoryLimit isn't changed. Hope you can help. Thank you. - Bob ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32job.SetInformtionJobObject usage -- what am I doing wrong?

2009-05-26 Thread Bob Erb
Tim Roberts writes: > Bob Erb wrote: >> I want to create a Win32 job, then limit its memory use. I thought >> the code below would work, but it doesn't. What am I doing wrong? >> > > > You also need this before the Set call: > extended_limits

Re: [python-win32] regarding invoking command prompt using python

2009-06-17 Thread bob gailer
Not sure what that means. Please explain. -- Bob Gailer Chapel Hill NC 919-636-4239 ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Installer crashes on embedded system.

2010-03-24 Thread Bob Cowdery
nd made by Sansung. I'm installing pywin32-214.win32-py2.6.exe and it just throws up the standard 'has encountered a problem' dialog. Python 2.6.4 installed without problems. Does anyone have any ideas? Regards Bob ___ python-win32 mailing lis

[python-win32] Problem with PythonWin 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32.

2012-04-05 Thread bob gailer
hon27\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 60, in __getattr__ return getattr(self.listControl, attr) RuntimeError: maximum recursion depth exceeded There is an extra period after the one I typed. Can this be fixed? -- Bob Gailer 919-636-4239 Chapel Hill NC _

[python-win32] Problem with PythonWin 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32.

2012-04-06 Thread bob gailer
hon27\Lib\site-packages\pythonwin\pywin\tools\hierlist.py", line 60, in __getattr__ return getattr(self.listControl, attr) RuntimeError: maximum recursion depth exceeded There is an extra period after the one I typed. Can this be fixed? -- Bob Gailer 919-636-4239 Chapel Hill NC _

[python-win32] Minor irritant

2012-04-06 Thread bob gailer
Every time I open a file for editing the tab key starts out at 4 spaces even though I have set Tab size and Indent Size to 2 in Options. I must use alt+u to change it. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ python-win32 mailing list python

[python-win32] Another minor irritant.

2012-04-06 Thread bob gailer
In the watch window ctrl-x,c,v do not work (for cut copy and paste). I must use the context menu. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] if self.quitting: raise BdbQuit

2012-04-20 Thread bob gailer
sults File "D:\Python27\lib\bdb.py", line 48, in trace_dispatch return self.dispatch_line(frame) File "D:\Python27\lib\bdb.py", line 67, in dispatch_line if self.quitting: raise BdbQuit BdbQuit Why? What does this

[python-win32] Problem with Check: can't decode byte 0x90

2014-03-29 Thread bob gailer
My program loads into an edit window and runs fine. Top line : # -*- coding: utf-8 -*- However when I invoke check (shift-ctl-c) I get: Traceback (most recent call last): File "C:\Python33\Lib\site-packages\pythonwin\pywin\framework\intpyapp.py", line 335, in OnFileCheck scriptutils.Ch

Re: [python-win32] Problem with Check: can't decode byte 0x90

2014-03-30 Thread bob gailer
in that code I assume something else will break. I will file a bug report. "bob gailer" wrote in message news:53373d8f.8050...@gmail.com... My program loads into an edit window and runs fine. Top line : # -*- coding: utf-8 -*- However when I invoke check (shift-ctl-c) I get: Traceback

[python-win32] context_menu.py crashing Explorer

2014-04-15 Thread Bob Hood
Hi, everybody. I'm having an issue with the context_menu.py example included with pywin32 (2.18) under Python 2.7.6. I register it by running it ("python context_menu.py --register"), but then, when I right-click on a Python file, my Explorer process terminates. I've tried variations (some enhan

Re: [python-win32] context_menu.py crashing Explorer

2014-04-16 Thread Bob Hood
like some pointers on how to debug this Python-based extension if anybody has them, so I won't have to resort to writing it in C++. On 4/15/2014 8:04 PM, Bob Hood wrote: > Hi, everybody. > > I'm having an issue with the context_menu.py example included with pywin32 > (2

Re: [python-win32] context_menu.py crashing Explorer

2014-04-17 Thread Bob Hood
On 4/16/2014 7:48 PM, Mark Hammond wrote: > As far as seeing the print statements, you can modify the source file to > have "import win32traceutil" at the top, and in another console run "python > -m win32traceutil" - the print statements from the source file should them > appear in the console run

Re: [python-win32] Python version itself

2014-05-11 Thread Bob Hood
On 5/11/2014 2:39 PM, Jacob Kruger wrote: > I have thus far been working with python 2.7, for no particular reason aside > from that it's been stable/comfortable/usable from when I really got going > with python, but, while think latest release version of python is something > like 3.4, what are th

Re: [python-win32] Interactive Code to Script File

2014-09-16 Thread Bob Hood
Hi, DJ. On 9/16/2014 1:13 PM, DJ Webre wrote: > I am trying to convert a program from interactive to script file. > > The program consists of the following 2 lines: > > import webbrowser > webbrowser.open_new('http://www.google') > > When I run it interactively, it works but if I run it as a scr

Re: [python-win32] Storing Passwords.

2015-01-19 Thread Bob Hood
On 1/19/2015 12:07 AM, Tim Roberts wrote: > On Jan 18, 2015, at 12:11 PM, Alp Tunga Özkul > wrote: >> >> As far as i know Username + Password =(MD5/SHA) Hash. And it is >> irreversible. I need the actual Username and Password to login to Servers >> (WMI). >> >> Bec

Re: [python-win32] Storing Passwords.

2015-01-19 Thread Bob Hood
On 1/19/2015 7:48 AM, Paul Koning wrote: >> On Jan 19, 2015, at 7:27 AM, Bob Hood wrote: >> >> On 1/19/2015 12:07 AM, Tim Roberts wrote: >>> On Jan 18, 2015, at 12:11 PM, Alp Tunga Özkul >>> wrote: >>>> As far as i know Username + Password =(MD5

Re: [python-win32] PyParallel - an experimental "multicore" fork of Python 3 for Windows

2015-07-31 Thread Bob Hood
On 7/31/2015 2:14 PM, Trent Nelson wrote: Hi folks, Bit off-topic, but just wanted to let people know about an experimental proof-of-concept fork of Python 3 I've been working on for the past couple of years called PyParallel: http://pyparallel.org. It essentially gets around the GIL limitation

Re: [python-win32] Is there a _simple_ way to find out what version of Windows you are running?

2015-10-08 Thread Bob Hood
On 10/8/2015 3:56 AM, Laura Creighton wrote: Hi, I am one of the python.org webmasters. We get people -- often children who want to install python on their computers but don't know what OS they are running. Nearly all of these people are running Windows, though I did get somebody who was runnin

Re: [python-win32] SmartScreen

2016-02-01 Thread Bob Hood
On 2/1/2016 1:27 PM, Ulli Horlacher wrote: When I compile my Python program with PyInstaller and give it to a user with Windows 8.1 he gets the warning: Windows protected your PC Windows SmartScreen prevented an unrecognized app from starting. Publisher: Unknown Publish

Re: [python-win32] Python 3 - Windows Service

2016-05-13 Thread Bob Gailer
On May 13, 2016 6:38 AM, "David Hautbois" wrote: > > Hi > > I passed all this week to get a Python Windows Service running. > But, I failed > > I tried Windows 2003 and Windows 2012 R2. > I installed python 3.4.4 x86 > > I installed pypiwin32 with pip : > pip install pyinstaller > > I tried ma

Re: [python-win32] A Python Service that monitors the clipboard?

2004-12-11 Thread Bob Gailer
discusses clipboard management. Bob Gailer [EMAIL PROTECTED] 303 442 2625 home 720 938 2625 cell ___ Python-win32 mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Re: Damaged Pythonwin installation

2004-12-20 Thread Bob Gailer
'\\' + key print i,':', subKey2 win32api.RegDeleteKey(win32con.HKEY_CURRENT_USER,subKey2) if i>9: break k.Close() print len(keys),"deleted." Do NOT run this from within Python win. Use a command prompt or another I

[python-win32] Prob

2005-03-12 Thread Bob Gailer
What dos this error mean? and what do I need to do to fix it? Pywin32 Extensions build 203 "Can't load Python for preinstalled script" Bob Gailer mailto:[EMAIL PROTECTED] 510 558 3275 home 303 442 2625 cell ___ Python-win32 mailing li

Re: [python-win32] How Can I exec() a statement?

2005-04-06 Thread Bob Gailer
lutions than exec. Tell us a bit more about what you are trying to accomplish. Bob Gailer mailto:[EMAIL PROTECTED] 510 558 3275 home 720 938 2625 cell ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Excel and Graphing

2005-05-05 Thread Bob Gailer
  raise     print "Error Occurred writing data"     xl.ActiveWorkbook.Close(SaveChanges=1)     #Close the workbook     xl.Quit     del xl Any suggestions as to what exactly I am doing wrong? Eric B. Powell E&GIS BSRI (803)952-7783 When a true genius appears in this world

Re: [python-win32] Bug with system()/popen() ?

2005-05-13 Thread Bob Gailer
toise SVN\x08in\\TortoiseProc.exe"/command:update /path:"C:\\Temp\\Test" /notempfile /closeonend' Notice something odd? What happened to the \b? From the Refernce Manual: "Unless an "r" or "R" prefix is present, escape sequences in strings are interpret

[python-win32] COM access to Mozilla Firefox

2005-06-09 Thread Bob Gailer
What is the application name for Mozilla Firefox (to be used in win32com.client.Dispatch())? Where is documentation as to what properties/methods are available? Ditto on last question for Internet Explorer. Bob Gailer mailto:[EMAIL PROTECTED] 510 558 3275 home 720 938 2625 cell

Re: [python-win32] Unable to set an Excel chart's titl ethrough win32com : can you reproduce this problem ?

2005-06-29 Thread Bob Gailer
reference > (which may be tied to its current location...) > > > Gabriel Genellina > Softlab SRL __ Save the earth http://pr.mail.yahoo.co.jp/ondanka/ ___ Python-win32 mailing list Python-win32@python.org http://ma

Re: [python-win32] [Py2exe-users] Re: Getting tired with py2exe

2005-09-21 Thread Bob Ippolito
been unfortunately useless implementing and evolving it). Right now, I think the packagers and the packages are at odds, because the packagers need metadata that the packages don't provide (in a pre-setuptools universe)... so right now users (or the packagers) need to know a lot of magic inca

Re: [python-win32] Reading properties from office builtin dialogs?

2006-01-31 Thread Bob Gailer
Anders Quist wrote: > I have an application that wants to print a large set of documents. > Therefore, I want to have word display its print dialog so the user > can supply printer settings once, that I can read and store for use > with all following prints. > > At first glance, this would seem str

Re: [python-win32] Thanks ; Merci

2006-03-05 Thread Bob Gailer
> > There have been some references to "ietoolbar.py". I have searched in my > pythonwin install and not found it. Where can I find it? ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] IE toolbar button in Python

2006-03-08 Thread Bob Gailer
Roger Upole wrote: > > There's an IE toolbar button demo in CVS: > http://cvs.sourceforge.net/viewcvs.py/pywin32/pywin32/com/win32com/demos/iebutton.py?rev=1.1&view=log > I looked at this, but can't figure out what to do with it. Are there any instructions? What seems apparant is that it cre

Re: [python-win32] R: Acrobat Reader

2006-04-05 Thread Bob Gailer
Mirco Furlan (Visionee) wrote: > here my code: > > import win32com.client > > pdf = win32com.client.Dispatch('AcroPDF.PDF') > pdf.LoadFile(r'K:\test.pdf') > > Boy Don't Try This At Home. I did and got the BSOD! ___ Python-win32 mailing list Python-win3

Re: [python-win32] Runnin Python app as service with separate console

2006-04-05 Thread Bob Gailer
Morgan, Byron wrote: > I have a robust, stable Python script that runs 24-7, crunching a telnet > feed of real-time data. Problem is, it has to run in a dos console > window on the desktop. I would like to run it as a service, and be able > connect to it and monitor performance with a separate cons

Re: [python-win32] Code help (Aleksandar Cikota)

2006-04-09 Thread Bob Gailer
Justin Ezequiel wrote: > FocusMax.FocusControl.Focus starts the auto focus operation and returns when > Focus is complete. This Method has the same effect as if the user clicked > the Focus button on the Focus tab (in FocusMax), but there is no reaction > and I don't get any error message. > > Pyt

Re: [python-win32] pywintypes24.dll necessary??

2006-06-22 Thread Bob Gailer
ste. You can Mark by dragging a selection rectangle with the mouse, Copy the selection by hitting Enter, and paste by right clicking. 2 - Create a batch file containing all the messy path and file names. Have the user run the batch file. User can do that from the Ex

Re: [python-win32] Excel corrupted display problem

2006-08-17 Thread Bob Gailer
t; display area is useless. > Is there any cure to this? > I have dealt with this a lot. The "cure" is somewhere in Redmond, but probably too low a priority for Microsoft. Sigh. The only workaround I know is to kill the excel process. -- Bob Gailer 510-978-4454 ___

Re: [python-win32] Waiting for Wireless

2006-10-25 Thread Bob Gailer
Tim Roberts wrote: > As a self-proclaimed studly That sent me to the dictionary! Very interesting. Thanks for a new word. -- Bob Gailer 510-978-4454 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/pyt

Re: [python-win32] Excel and OLEObjects

2006-10-30 Thread Bob Gailer
n Excel for what I want to do it comes out as: > > Sub Macro1() > ' > ' Macro2 Macro > ' Macro recorded 30/10/2006 by Mark > ' > > ' > ActiveSheet.OLEObjects.Add(Filename:="C:\mytext.txt", Link:=False, _ > DisplayAsIcon:=Fa

Re: [python-win32] RE working in interactive but not in regular code

2006-11-17 Thread Bob Gailer
ly get more help if you tell us what behavior you expect and what you get. "won't work" does not help us understand. -- Bob Gailer 510-978-4454 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Excel COM-object for cursor position

2006-11-22 Thread Bob Gailer
several ways to get stuff from Python into Excel. They include (but not limited to) running Excel as a com object or creating a file that will be read by Excel. What steps have you taken so far? We can help better if we know what route you're taking and

Re: [python-win32] Excel COM-object for cursor position UPDATE

2006-11-22 Thread Bob Gailer
there is no easy way to simulate keyboard behavior, and the DOM is far more powerful. Bob Gailer 510-978-4454 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Excel COM-object for cursor position UPDATE

2006-11-23 Thread Bob Gailer
, but again; the only thing > I'm after is a bunch of small commands for me to try out so I can > automate Excel from within Python. So try the above code sample and see what happens. The DOM is documented in MSDN at: See http://msdn.microsoft.com

Re: [python-win32] Compiling a Python Windows application

2006-11-24 Thread Bob Gailer
lines of VBA for Word and Access. Of course I prefer Python when I can use it. -- Bob Gailer 510-978-4454 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Compiling a Python Windows application

2006-11-27 Thread Bob Gailer
appended. Hope that's enough to get you started. Since your goal seems to be text processing I'd think you'd want to read the entire document text into a Python string, then manipulate that. text = document.Range().Text will get all the text of the document body. (excludes heade

Re: [python-win32] Compiling a Python Windows application

2006-12-04 Thread Bob Gailer
Bokverket wrote: > Hi Bob, > > [snip] Please always reply to the list. Others may be able to provide the next step, we all learn, and I was almost gone for a week and would have left you in the dark. > > So maybe try your Python suggestion, if I can get it to work. You showed

Re: [python-win32] Python as scripting glue, WAS Python for sysadmin

2006-12-14 Thread Bob Gailer
t a Python implementation of IBM's CMS Pipelines, which is in essence a "super AKW and Linux/Unix pipes" all in 1 package. Would you like to hear more? -- Bob Gailer 510-978-4454 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python Windows on Wikipedia

2006-12-15 Thread Bob Gailer
nternational). I heard a lot of talk about branding, but no explanation of how it would apply to a software product. I always thought it was something one applied to hard goods. Then I realized that it applied to the software I was developing. So now I cherish the concept. How do you see Pytho

Re: [python-win32] Python as scripting glue, WAS Python for sysadmin

2006-12-16 Thread Bob Gailer
Bokverket wrote: > Bob Gailer's keyboard emitted: > > I have under development a Python implementation of IBM's CMS Pipelines, > which is in essence a "super AKW and Linux/Unix pipes" all in 1 package. > Would you like to hear more? > > -- Indeed. NOTES

[python-win32] Dispatch error 'CoInitialize has not been called'

2006-12-28 Thread Bob Gailer
ic.py", line 78, in _GetGoodDispatch IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx, pythoncom.IID_IDispatch) com_error: (-2147221008, 'CoInitialize has not been called.', None, None) Trying the same thing in the PythonWin interactive window - it works just f

Re: [python-win32] Dispatch error 'CoInitialize has not been called'

2006-12-28 Thread Bob Gailer
Roger Upole wrote: > Bob Gailer wrote: > >> I'm running this under my Apache2triad mod_python installation. >> Yesterday it was working. Today it is not. >> In the Apache config mptest.py is defined as the request handler. When >> called via

Re: [python-win32] Dispatch error 'CoInitialize has not been called'

2006-12-29 Thread Bob Gailer
Tim Golden wrote: > [Bob Gailer] > >> OK. I don't know whether its running in a thread. I made no >> changes that I'm aware of that would cause the change in >> behavior. I will add the call to pythoncom.CoInitialize. I am >> not familiar with this

Re: [python-win32] Dispatch error 'CoInitialize has not been called'

2006-12-29 Thread Bob Gailer
Tim Golden wrote: >>> [Bob Gailer] >>> >> Yeah, but when I said it was working, it was working in the server! >> Wednesday AM just fine. Wednesday afternoon suddenly not working fine. I >> swear I didn't change anything! >> >> Is ther

Re: [python-win32] Dispatch error 'CoInitialize has not been called'

2006-12-29 Thread Bob Gailer
Roger Upole wrote: > Bob Gailer wrote: > >> Tim Golden wrote: >> >>> [Bob Gailer] >>> >>> >>>> OK. I don't know whether its running in a thread. I made no >>>> changes that I'm aware of that would ca

Re: [python-win32] Wiki

2007-03-05 Thread Bob Gailer
"Click the :: options in the Menu for more options." -- Bob Gailer 510-978-4454 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] C# Vs Python

2007-04-02 Thread Bob Gailer
e) sh = wb.Sheets(1) etc. There are various GUI toolkits available. I've not done much with them. -- Bob Gailer 510-978-4454 ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] C# Vs Python

2007-04-02 Thread Bob Gailer
James Matthews wrote: > Thank you Bob but does python's windows extensions really have the > power of the .NET classes Sorry, I know nothing about .NET. Perhaps some other list lurker can speak to that. Or could you provide an example of a .NET class and its usage in C#? -- Bob Gai

Re: [python-win32] Threading Issue

2007-07-04 Thread Bob Gailer
ed by the thread -- Bob Gailer 510-978-4454 Oakland, CA 919-636-4239 Chapel Hill, NC ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] dde server creation error : [Errno 22] invalid argument

2007-08-07 Thread Bob Klahn
arguments he's tried without a problem. Googling this, I also found that Create() can take a second argument, an integer, but I don't know what that does. If these arguments are documented somewhere on the Web, please clue me in. Bob __

Re: [python-win32] want to leave DOS console at any target dir

2007-11-19 Thread bob gailer
Charlie wrote: > When launching a python script from a DOS console, > I can not find a way to leave the DOS console at a working directory > other than the initial working directory. > Why do you want to do this? Might there be other approaches? __

Re: [python-win32] Detect when the user launches or closes a program?

2007-11-19 Thread bob gailer
Patrick Li wrote: > Hi, > > I am trying to write a program that will perform some operation on the > user's computer when the user launches a particular executable(s) on > the computer and when the user closes them. > > One way to achieve this is by polling the process table periodically > and c

Re: [python-win32] Python and Excel via Cron

2007-11-21 Thread bob gailer
Jd H wrote: > Hello, > > I have the below python code which opens an excel sheet, runs a macro > then save the file. When run from python it runs perfectly. Code is > below. File name is test.py > > <<< > from win32com.client import Dispatch > > myExcel = Dispatch('Excel.Application') > my

Re: [python-win32] MS Word and Python - how to disable SaveAs event?

2007-12-14 Thread bob gailer
Wojtek P wrote: > Hello! > > I try use Microsoft Word and OpenOffice with Python - and i have some > problems. How to disable "Save As" in word from python code, or how to > cancel this function when user use it? This code below doesn't work :/ > > wxPython 2.8.4.2 > Python 2.4.

Re: [python-win32] python and Windows Resource Files.

2007-12-16 Thread bob gailer
Johri, Mayank (GTI) wrote: > Hello, > > I am writing a python program which uses Windows Resources for GUI > (i.e. Dialog boxes), does anyone know a good starting point > or tutorials to get & set values of common controls such as List view, > button, textBox etc for it. > > Thanks and Regar

Re: [python-win32] COM automation: problem accessing property of derived object obtained from collection

2008-01-04 Thread bob gailer
Albert Strasheim wrote: > Hello all > > I'm new to the world of COM automation with Python, so please bear with me. > > I'm trying to automate Golden Software's Surfer 8 [1] using Python. > > The basics seems to be working fine, but I'm running into a problem when > dealing with a collection conta

Re: [python-win32] Python ADO and Date Time Field in Access

2008-01-25 Thread bob gailer
t's in the field? Note, there could be any legal > date time in the field - I'm trying in all cases to get exactly what's > in the field...or to put it another way, exactly what I see when I open > Access and look. > > Thanks very much, > > Lee G > ___

[python-win32] Character sets and symbols question

2008-01-29 Thread Bob Gailer
I'm copying from a pdf file. When I paste it in an email it looks like what I want: ├──┬─word:──┬──┤ When I paste it into PythonWin I get: „¥„Ÿ„Ÿ„¦„Ÿword:„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„Ÿ„¦„Ÿ„Ÿ„§ How can I get the nice graphic in PythonWin? -- Bob Gailer 919-636-4239 Chapel Hil

Re: [python-win32] Executing eval function in VBscript

2008-02-04 Thread bob gailer
e 4") Traceback (most recent call last): File "", line 1, in File "", line 2, in Eval com_error: (-2147352567, 'Exception occurred.', (0, 'Python COM Server Internal Error', "Unexpected Python Error: : Objects of type 'dict' can not

Re: [python-win32] Executing eval function in VBscript

2008-02-04 Thread bob gailer
Tony Cappellini wrote: > Date: Mon, 04 Feb 2008 10:05:11 -0500 > From: bob gailer <[EMAIL PROTECTED]> > Subject: Re: [python-win32] Executing eval function in VBscript > To: Janakiraman Mohanakrishnan <[EMAIL PROTECTED]> > Cc: python-win32@python.org > Message-ID:

Re: [python-win32] Will wmi can a command on remore host and get the return code

2008-04-30 Thread bob gailer
. Consider MS's SysInternals: http://technet.microsoft.com/en-us/sysinternals/default.aspx PSExec to run the command. -- Bob Gailer 919-636-4239 Chapel Hill, NC ___ python-win32 mailing list python-win32@python.org http://mail.python.org/ma

Re: [python-win32] Will wmi can a command on remore host and get the return code

2008-05-15 Thread bob gailer
siddhartha veedaluru wrote: Hi, i'm tring to execute a exe that is placed in the mapped network drive on remote machine it seems it is not getting recognised. How can i run the exe on the mapped network drive Aw come on I'd think by now you'd know how to ask a qu

Re: [python-win32] python-win32 Digest, Vol 62, Issue 13

2008-05-15 Thread bob gailer
t back the result of the command executed or i can only redirect it to a file. Thanks, Siddhartha ___ python-win32 mailing list python-win32@python.org http://mail.python.org/

Re: [python-win32] Request for comments

2008-05-23 Thread bob gailer
for a variety of reasons, so would also like some guidance rather than just "go read the source". -- Bob Gailer 919-636-4239 Chapel Hill, NC ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Request for comments

2008-05-24 Thread bob gailer
Tim Roberts wrote: bob gailer wrote: Please omit the space before ( in code. I find that very distracting. Example: print result.Properties_ ("sValue").Value # current print result.Properties_("sValue").Value # preferred, and how most code I've seen looks. Do yo

  1   2   >