[python-win32] pywin32-223 support request

2022-04-18 Thread John Pham
Good day, Just wondering if a silent uninstall is at all possible via powershell? I see in the registry that the uninstall string is ""C:\Python27\Removepywin32.exe" -u "C:\Python27\pywin32-wininst.log"" but is there a way to make the uninstall silent with no user interaction? Thanks!

Re: [python-win32] determine the default printer from RDP

2020-02-27 Thread john
the future. Johnf On 2/26/20 8:48 AM, Terry Davis wrote: Hi John, In the Windows RDP client, under "Show Options" -> "Local Resources" -> section "Local devices and resources" is "Printers" checked? I haven't tried what you're referring to

Re: [python-win32] determine the default printer from RDP

2020-02-26 Thread john
= TRUE" is there something in python-win32 I can do to get the same results. Johnf On 2/26/20 8:48 AM, Terry Davis wrote: Hi John, In the Windows RDP client, under "Show Options" -> "Local Resources" -> section "Local devices and resources" is "P

Re: [python-win32] determine the default printer from RDP

2020-02-26 Thread john
Thanks for the response - and yes I do have the printers checkbox - checked.  It returns a blank. Johnf On 2/26/20 8:48 AM, Terry Davis wrote: Hi John, In the Windows RDP client, under "Show Options" -> "Local Resources" -> section "Local devices and resour

[python-win32] determine the default printer from RDP

2020-02-25 Thread john
Hi, I need a way to determine the default printer (on the users computer) from a RDP session. The user logs on to a RDP session and win32print.GetDefaultPrinter() returns a blank.  That makes sense on the RDP session because there aren't any default printers.  RDP printing is directed to the

[python-win32] Service stuck in starting state

2018-04-12 Thread John Aherne
Have you looked in the event log to see if there are any messages to tell you what might have happened. Regards -- *John Aherne* *www.rocs.co.uk <http://www.rocs.co.uk>* 020 7223 7567 ___ python-win32 mailing list python-win32@python.org

[python-win32] Tkinter newbie

2015-03-03 Thread John Sampson
I had spent a day trying to find a solution. Still, I know now one place I won't look for help. JS In case of a real person that wanted help: "We reap what we sow" or "ask niceley and show that you tried yourself to find a solution". ___ python-w

[python-win32] Tkinter newbie

2015-03-02 Thread John Sampson
it has to be x(self), why it has to be followed by '()' in one place but not in another, how the variables are scoped and similar questions. At the moment all my guesses are wrong. Are there any such examples? Regards John Sampson ___ py

[python-win32] Creating standalone executable

2015-01-07 Thread John Sampson
s subfolders. Are these still needed? If so, what if I make another standalone executable? Is there a need for another 'build' folder tree for it, to exist as well as the 'build' folder tree for the first standalone executable? Regards John Sampson On 06/01/2015 1

[python-win32] Creating standalone executable

2015-01-06 Thread John Sampson
that can be run in any folder, and nothing else - that is, standalone. Regards John Sampson On 06/01/2015 13:07, Graeme Glass wrote: Yes it is. http://www.py2exe.org/ http://cx-freeze.sourceforge.net/ On 6 January 2015 at 14:50, John Sampson <mailto:jrs@ntlworld.com>> wrote:

[python-win32] Creating standalone executable

2015-01-06 Thread John Sampson
Is it possible to create a standalone executable (.EXE file) from a Python script? By 'standalone' I mean an executable file that can be placed in any folder and contains or finds the libraries, modules etc. that it depends on. Regards Jo

[python-win32] Repr, and Unicode type [Was: Get key press in Windows 7]

2014-11-28 Thread John Sampson
In answer to Time Roberts, I saw an item prefixed with 'u' (u'\x1a'). What is the purpose of this prefix? I would have thought it meant 'Unicode' but the type according to Python is 'str'. Thank you for the explanation of 'repr'. The issue turned out to be the inclusion of 'repr' in the sample

[python-win32] Get key press in Windows 7

2014-11-27 Thread John Sampson
Many thanks - by excluding repr the code behaves in a comprehensible way. The example code that was provided at Stack Overflow included repr so I assumed that it was necessary for some reason. If I were allowed to comment there I would ask why. Regards John Sampson On 27/11/2014 18:26, Randy

[python-win32] Get key press in Windows 7

2014-11-27 Thread John Sampson
What type of object is a keystroke? Perhaps I need to find some other way for a Python script detect keystrokes but I am confused as to what Python sees them as. Any advice would be welcome. Regards John Sampson ___ python-win32 mailing list pyth

[python-win32] pythoncom

2014-10-20 Thread John Sampson
On 20/10/2014 11:27, Mark Hammond wrote: On 16/10/2014 8:25 pm, John Sampson wrote: at lib\site-packages\win32com\gen_py I see more files in the version causing trouble than in the version that works OK. How would I recognise the generated support you mention? Those files *are* the generated

[python-win32] pythoncom

2014-10-16 Thread John Sampson
On 16/10/2014 07:48, Mark Hammond wrote: On 16/10/2014 12:50 AM, John Sampson wrote: The interface has a function which returns a string from an array of strings as it is supposed to in Windows 64-bit, or if called from VBA. In 32-bit Windows Python it returns the number of the item in the

[python-win32] pythoncom

2014-10-15 Thread John Sampson
On 14/10/2014 18:15, Tim Roberts wrote: John Sampson wrote: I have a proprietary program with a command interface implemented as an ActiveX DLL. Importing win32com.client and pythoncom, I can call functions from Python scripts. Some of these work properly in 32-bit Windows 7, but others only in

[python-win32] pythoncom

2014-10-14 Thread John Sampson
work with Windows 64-bit only? Is there a version that works with 32-bit Windows? Regards John Sampson ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Win32 GUI for beginners.

2013-12-31 Thread John Grant
/PyQt Good luck, John On Dec 31, 2013 3:11 AM, "Sean Murphy" wrote: > Hi all. > > I am very very new to Python. I have read the book on programming for > Windows with Python that was released in 2000. The book is very good but > doesn't give me the basic informat

Re: [python-win32] Python and Win 7 Registry VirtualStore

2013-06-08 Thread John Spitzer
r. With KEY_READ access, I can read the key. With KEY_ALL_ACCESS I get the error: [Error 5] Access is denied. How do I code this so that the access is directed to the Virtual Store, or am I not understanding how this is suppose to work (very possible). I am certain that I'm not the first t

[python-win32] Python and Win 7 Registry VirtualStore

2013-06-03 Thread John Spitzer
penKey call being redirected to the VirtualStore? What can I change in the program, ACLs or other to make it be redirected? Any help would be appreciated. Thanks, John -- John Spitzer johned9...@comcast.net 503-590-7434 ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] hook to obtain WM_GESTURE

2013-05-09 Thread John Grant
ure that I declared with ctypes. This return type might need to match the argtype of 'CallWindowProc', which was an int. Now they are both WNDPROC (declared with ctypes). Thanks for all the help. I feel like I learned a magic trick. John On Thu, May 9, 2013 at 5:59 PM, Tim Roberts wrote:

Re: [python-win32] hook to obtain WM_GESTURE

2013-05-09 Thread John Grant
violation reading 0xblahblah). Does anyone see an error with the way I am calling the "oldWndProc" or the print statement in the code below? Maybe the way I have defined the return argument for SetWindowLongPtrW is incorrect? Thanks for any help, John from ctypes import * import cty

Re: [python-win32] hook to obtain WM_GESTURE

2013-05-09 Thread John Grant
I believe found access to the HWND. mHWND = ctypes.windll.user32.GetActiveWindow() On Thu, May 9, 2013 at 11:13 AM, John Grant wrote: > Hi Tim, > > Thanks for the great explanations. > > Yes, you are right, I am trying to intercept gestures in a window within > the same pr

Re: [python-win32] hook to obtain WM_GESTURE

2013-05-09 Thread John Grant
rticle. I just browsed the Blender C source code and they also use "SetWindowLongPtr" for GWLP_USERDATA, but not for GWLP_WNDPROC. I think everything will work out fine when I find the HWND. Thanks for the expert help. John On Thu, May 9, 2013 at 9:46 AM, Tim Roberts wrote: > John

[python-win32] hook to obtain WM_GESTURE

2013-05-09 Thread John Grant
up for the ML here because it seems like this is the best place for Windows expertise concerning Python. I saw a few emails on this list about hooks and callbacks. I've used the IDE with pywin32 for years - its the best! Many thanks for any help on this critical task

[python-win32] Casting to IRTDUpdateEvent object

2012-04-06 Thread John S
I'm trying to implement excelRTDserver.py ( http://www.math.uiuc.edu/~gfrancis/illimath/windows/aszgard_mini/movpy-2.0.0-py2.4.4/movpy/lib/win32com/demos/excelRTDServer.py). I'm running Excel 2010 (32bit) so I change the EXCEL_TLB_MINOR value to 7. The add-in is visible in the Excel add-ins list an

[python-win32] Query related to Python

2012-01-26 Thread amy john
Hi, My name is Nupur Jha. I have one query related to Python. [1] I would like to know if we update any python file then while saving it can we extract the updated line and paste in excel. [2] If so what all we are suppose to do. I will be thankful if I will get a positive reply from your side.

Re: [python-win32] windows service problem and twisted

2011-10-14 Thread John Aherne
On Fri, Oct 14, 2011 at 12:51 PM, Mark Hammond wrote: > On 14/10/2011 7:47 PM, John Aherne wrote: > ... > > What I am trying to work out is should I import twisted.reactor etc >> inside the thread start in SvcDoRUn or import it globally as one of the >> examples does.

[python-win32] windows service problem and twisted

2011-10-14 Thread John Aherne
without fully understanding it at the moment. If anyone can throw some light on what to do I shall be very grateful. It could be that I should post this question to python-windows mailing list since it seems to me more pertinent to windows than twisted. Thanks for any info. John Aherne Here is 1st

Re: [python-win32] Creating PyCComboBox?

2011-06-11 Thread John Sheehan
Just my opinion, but if anyone decides to create a combo box, the one that has been part of MS Access since at least version 2.0 would be the one to model it after. I have yet to see any combo box in any language/platform/application that has worked as well as that one does. John Sheehan

Re: [python-win32] win32com client Workbooks.Open throws exeption

2010-08-18 Thread John Machin
On 19/08/2010 4:00 AM, Tim Roberts wrote: @©ħα® wrote: Workbooks.Open fails randomly throws an exception ... calling logToXLS() occasionally throws the mentioned error at xl.Workbooks.Open(filePath) File "C:\Python25\Lib\site-packages\win32com\client\dynamic.py", line 496, in __geta

Re: [python-win32] pywin32-214 DLL install error

2010-07-25 Thread Freking John
Paul, Thanks that worked great. But, I don't understand what you mean by the import hook doesn't work properly. The .pyd files were in the site-packages subfolders so why couldn't Python find them? Thanks, John Freking From: Paul Keating [mailto:keat..

[python-win32] pywin32-214 DLL install error

2010-07-21 Thread Freking John
m26.dll and PyWinTypes26.dll, into the system32 directory which also didn't work. Thanks, John Freking ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] unable to read mssql varchar(max)

2010-05-27 Thread John
gest what the problem might be? Thanks, John ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] can't set a property

2009-12-09 Thread John
On Wednesday 09 December 2009 11:21:40 am Tim Roberts wrote: > John wrote: > > ... > > I'm attempting to use a OCX designed to talk with QuickBooks. I'm using > > win32com for the first time and have discovered an issue that I'm sure > > others have run i

[python-win32] can't set a property

2009-12-09 Thread John
Newbie here. I thought my question would have been a common one but I have checked the archive for the last year and only found one message even close. I'm attempting to use a OCX designed to talk with QuickBooks.  I'm using win32com for the first time and have discovered an issue that I'm sur

Re: [python-win32] [pygtk] ANN: PyGUI 2.1

2009-11-15 Thread John Finlay
Greg Ewing wrote: John Finlay wrote: Greg, Why do you post to mailing lists that are unrelated to your project? I would appreciate it if in future you didn't post a message about your project ot the PyGTK mailing list. I posted the announcement to the pyobjc, pygtk and py

Re: [python-win32] AddMembershipRule(SMS_CollectionRuleDirect): Generic failure

2009-05-11 Thread John Randolph
ve write access. oops. Unfortunately I learned no further details on how to decode "Generic failure" into "Bad permissions" for the list, though, sorry. The WMI service logs look clean so you probably need to dive into the SMS logs. Thanks John __

Re: [python-win32] AddMembershipRule(SMS_CollectionRuleDirect): Generic failure

2009-04-21 Thread John Randolph
On Sat, Apr 18, 2009 at 8:09 PM, Tim Golden wrote: > John Randolph wrote: > >> Actually I had previously placed a delay between the new_rule creation >> and calling AddMembershipRule for another reason -- to make a clear >> break in the timestamps on the server side

Re: [python-win32] AddMembershipRule(SMS_CollectionRuleDirect): Generic failure

2009-04-17 Thread John Randolph
y. I've been unable to cough up anything interesting on the server side, and I'm not very windows or sms savvy. Regards, John > > I'm afraid I'm not at all familiar with SMS and I'm certainly > nowhere near an installation, so it's hard for me to test or >

Re: [python-win32] AddMembershipRule(SMS_CollectionRuleDirect): Generic failure

2009-04-17 Thread John Randolph
On Fri, Apr 17, 2009 at 4:59 PM, John Randolph wrote: snip > wmi.x_wmi: -0x7ffdfff7 - Exception occurred. >  Error in: SWbemObjectEx >  -0x7ffbefff - Generic failure > (er, message got cut off) anyway, enabling verbose WMI logging didn't produce anything revealing. any

[python-win32] AddMembershipRule(SMS_CollectionRuleDirect): Generic failure

2009-04-17 Thread John Randolph
Hi list: I've been beating my head against this problem for 2 days and can't figure it out. Searching the archives produced a semi-relevant thread from the past but the former fixes haven't worked for me. Using wmi 1.3.2, I've got the following simple code: system = wmih.SMS_R_System(Netbio

[python-win32] [Fwd: Re: Problems installing pywin32]

2009-01-18 Thread John Machin
my reply to the OP went him alone, not the list ... sorry. --- Begin Message --- Thank you very much John. Somehow the first thing I came across while searching a python implementation for win32ras was the source code. When I tried to run it a message was printed requesting a vs2003 installation

[python-win32] Adding an exe to startup...

2008-09-16 Thread John Bunting
cause I'm also going to be giving out some of this code to different users and I don't want to have to have them manually add the exe. Thank alot everyone, ~John ___ python-win32 mailing list python-win32@python.org http://mail.python.org/m

Re: [python-win32] A question about custom command options in win32serviceutil

2008-09-02 Thread John Bunting
sorry pressed enter too soon Am i just setting up a function to parse the arguments and set class variables? or is it something else! Sorry for the double email >.< ~John Bunting On Tue, Sep 2, 2008 at 1:25 PM, John Bunting <[EMAIL PROTECTED]> wrote: > Hey everyone, >

[python-win32] A question about custom command options in win32serviceutil

2008-09-02 Thread John Bunting
Hey everyone, I'm creating a program for my work that will let the users automatically connect to a server that we have set up and read some data, etc. I have been trying to figure out a way to use the win32serviceutil custom options to pass some extra arguments for my users. as far as I underst

Re: [python-win32] Get Blank Lines in a text file

2008-07-04 Thread John Machin
" else: if DEBUG: # If you can't understand what's happening in your program, # do some debugging! print "Last line is", repr(lines[-1]) if lines[-1].strip(): print "Last line is NOT blank" # Note: I changed the order else: print "Last line is blank" Hope this helps, John ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] (no subject)

2008-05-01 Thread John Siegrist
a wider problem with how dlls are handled. Itmakes sense that the Python VM would only want to load 1 copy of anydlls for memory and performance reasons, but then it leaves problemslike this one. Maybe the only 'workaround' is to compile exter

Re: [python-win32] exception while opening excel file

2008-04-16 Thread John Machin
cel files"??? What is your underlying problem? (1) You are creating corrupt XLS files, and are now trying to get information about the nature of the corruption, so that you can fix the creating code? (2) You have a collection of corrupt XLS files, and you are now trying to recov

[python-win32] Adding Users to a Specific Organization Unit in a Domain

2008-04-02 Thread Ian John Newton
Hi I need to take a text file with a list of users, groups and Organization Units and then add these users into a Domain. Currently the server is Win 2K, but I will also need to do this on Win2003. I used the BatchUserCreate.py from ch 16 of Mark Hammonds Python Programming on Win32

Re: [python-win32] Running SQL queries on excel sheets

2008-03-16 Thread John Machin
the data is cell-by-cell -- you can then compare that with your expectations. HTH, John ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] JPEG to TIFF conversion

2007-12-10 Thread John Machin
accomplish this in > Python? I will be thankful for the comments and suggestions. I am > using Python 2.3. http://www.pythonware.com/products/pil/ This may do the job -- check its manual (data formats in an appendix). Runs on any Python-supported platform, not just

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

2007-11-21 Thread John Machin
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 > What does "run from python" mean?? > > <<< > What's that "<<<"?? If you meant to

Re: [python-win32] Excel win32com newbie question

2006-10-06 Thread John Machin
gives you a weird syntax error (like the syntax error you showed in the response to Tim Roberts), that could be an old bug (in Python, I believe). Ensure that you have Python 2.4.3, and the latest build of pywin32, and try it again. IIRC, the workaround involved editing the file with

Re: [python-win32] Excel win32com newbie question

2006-10-05 Thread John Machin
bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> from win32com.client import Dispatch, constants >>> print getattr(constants, 'xlHAlignRight', 'Bt!') Bt!

Re: [python-win32] Picture.Insert, Excel issue

2006-10-01 Thread John Machin
t the picture?? Four problems: (1) VBA syntax instead of Python syntax (2) Not reading error message (3) Courting danger with backslashes in filenames (4) Courting danger keeping misc cruft in root directory Solution: xl.ActiveSheet.Pictures().Insert(r"C:\misc_cruft\a.jpg") HTH, John ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Trying to run an external program

2006-09-20 Thread John Machin
> Any ideas on what I might do to troubleshoot this? > (1) Read the manual: "Availability: Unix" (2) Read line 25 of the source code (c:\python25\lib\commands.py) Others may know of canned Python solutions for Windows; all I can suggest is to write something like the (very short) comma

Re: [python-win32] Fatal Error

2006-09-19 Thread John Machin
- so it's not a Python problem. Your e-mail address suggests that you are working for a U.S. state government agency, which has presumably paid a licence fee for the product. In that case I suggest you avail yourself of whatever support options

Re: [python-win32] EasyDialogs - how to set initial path

2006-07-03 Thread John Machin
es it save you counting args, it helps document your code. Here's a (slightly edited) example from one of my scripts: import EasyDialogs infname = EasyDialogs.AskFileForOpen( windowTitle='Fu or Bar file from XYZ', typeList=[ ('All files (*.*

Re: [python-win32] Building win32 extensions to Python - crash

2006-06-16 Thread John Machin
If there is a function in the Python/C API that does the job, use it in preference to an RTL function. This applies especially to malloc() and free(). 3. Don't try to use resources across RTL boundaries e.g. trying MinGW fwrite() on a (FILE *) that was opened by the MSC RTL and obtained by calling PyFile_AsFile() HTH John ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] deviceiocontrol string format

2006-05-25 Thread John Machin
compile Python (Microsoft), which may differ from the alignment used by the compiler used for the driver (gcc?). If the answer is 4, then the problem is not with your usage of struct.pack. > > Apparentely the error is coming from 1020. However it is define as ulong > for both case the c struct and the python struct.pack. > HTH, John ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Try to got short path for files - but goterror...

2006-05-25 Thread John Machin
On 25/05/2006 8:12 PM, Metz, Bobby W, WWCS wrote: > Mark, > Thanks for that. I didn't read an earlier entry from the > submitter close enough. Someone else had told them that > GetShortPathName wasn't supported but I didn't pay attention to the W at > the end...could have saved myself a cou

Re: [python-win32] Why I get wrong filetime values with win32 api(FindFilesW) ?

2006-05-11 Thread John Machin
On 11/05/2006 5:47 PM, Christian Stooker wrote: > Mark Hammond írta: >> I'm guessing it is related to the GMT offset. The MSDN docs for the >> FILETIME structure say: >> >> Furthermore, FAT records times on disk in local time. However, >> NTFS records times on disk in UTC. For more information

Re: [python-win32] curses and _curses

2006-05-02 Thread John Machin
readers know why the "_curses" library is missing, or in other >>>>> words, have I found an "error of omission"? >>>>> >>>> >>>> http://www.amk.ca/python/howto/curses/ >>>> >>>> "Nobody has made a

Re: [python-win32] curses and _curses

2006-05-01 Thread John Machin
On 2/05/2006 8:16 AM, Dean Allen Provins wrote: > Hello: > > I just installed the 2.4 version of Python on a WinXP box. I then > copied over my python code which runs under Linux. This code uses > "curses.ascii" (isspace specifically). > > The Win version of the libraries has a curses directory

[python-win32] SimpleXMLRPCServer Windows service

2006-04-27 Thread John Ferrell
annot figure out what the problem is.   I have searched around, but can't find any example code.  Hopefully someone can point me in the right direction. thanks, John ## XML-RPC Service import win32serviceutil import win32service import win32event import win32evtlogutil import win32f

Re: [python-win32] py2exe & transparent icons

2006-04-18 Thread John Machin
On 19/04/2006 2:49 AM, Metz, Bobby W, WCS wrote: > All, > This may not be the right list for this, but I figured there's > bound to be some py2exe experts. [snip] There's bound to be even more py2exe experts on [EMAIL PROTECTED] :-) > > Thanks, > > Bobby > ___

Re: [python-win32] driving MS Access from python

2006-03-13 Thread John Machin
On 14/03/2006 11:19 AM, Phill Atwood wrote: > >> >> Sorry, you've lost me ... I thought "this" (installing mxODBC) was as >> simple as downloading the two installers ("base" and "commercial") >> that match the version of Python that you are using, and running them. >> What docs are you reading?

Re: [python-win32] driving MS Access from python

2006-03-13 Thread John Machin
. > > Phill > Phill, Sorry, you've lost me ... I thought "this" (installing mxODBC) was as simple as downloading the two installers ("base" and "commercial") that match the version of Python that you are using, and running them. What docs are you rea

Re: [python-win32] Python Newbie Question

2006-02-23 Thread John Machin
f Python 2.3 before re-installing. Please don't top-post. > On 2/23/06, John Machin <[EMAIL PROTECTED]> wrote: > >>On 24/02/2006 3:02 AM, Heang Lim wrote: >> >>>Hello John, >>> >>>Here is the sys.path output: >>> >>>C:\\Apach

Re: [python-win32] Python Newbie Question

2006-02-22 Thread John Machin
On 23/02/2006 11:53 AM, Heang Lim wrote: > I've installed Python on my c:\python23 directory and Apache on my > c:\Apache2 directory. On my DOS windows, I went to c:\Apache\htdocs > directory and enter 'python' to go into the interactive mode. When I > tried to import some modules such as 'import

Re: [python-win32] COM ports connecting

2006-02-21 Thread John Machin
On 22/02/2006 5:51 AM, Math wrote: > Hello, > > Anybody could give me an example code of how connect/comunicate through > COM ports (i.e. COM1, COM2). > I'm under windows XP > > Thanks!!! > Math http://pyserial.sourceforge.net/ ___ Python-win32 mai

Re: [python-win32] Excel using python

2006-02-20 Thread John Machin
On 20/02/2006 10:37 PM, Tim Golden wrote: > | From: John Machin [mailto:[EMAIL PROTECTED] > | > | Tim, that's fantastic. Hold out your hand for the elephant stamp :-) > > Must be an American thing? (Obligatory Monty Python > reference: I'm sorry, old man, I don&

Re: [python-win32] Excel using python

2006-02-20 Thread John Machin
On 20/02/2006 10:15 PM, Tim Golden wrote: > [John Machin] > > | > OK, given the workbook created in my previous post... > > [ ... snip more code ...] > > | OK, great, Tim, we're almost there :-) > | "when i try to acces it always goes to the last sheet.&q

Re: [python-win32] Excel using python

2006-02-20 Thread John Machin
On 20/02/2006 8:02 PM, Tim Golden wrote: > [John Machin] > | > | On 20/02/2006 7:46 PM, Tim Golden wrote: > | > [yeswanty devi] > | > > | > | Hello all, > | > | if we have number of excel sheets in a workbook.can > | > | we access a select

Re: [python-win32] Excel using python

2006-02-20 Thread John Machin
On 20/02/2006 7:46 PM, Tim Golden wrote: > [yeswanty devi] > > | Hello all, > | if we have number of excel sheets in a workbook.can > | we access a selected sheet in the workbook. when i try to > | acces it always goes to the last sheet. > > I assume this is the kind of thing you want

Re: [python-win32] Using win32com Constants

2006-02-17 Thread John Machin
t; > >>> win32com.client.constants.acViewNormal > > If that's not working, then I'd say there's nothing *too* obvious that you're > missing. You've obviously run makepy, otherwise even the convolution > wouldn't > work... > David, Forget your convolvulus; show us a small complete runnable piece of code that tries to do what you expect/want, but fails. Cheers, John ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Apologies - Spawn problem

2006-01-31 Thread John Machin
nning Python 2.1??? BTW, print is not a function, it's a statement. You should get out of the backslashitis habit ('c:\python21\\python.exe') very quickly. Apart from the fact that for consistency you should have had 'c:\\python21\\python.exe', it is much easier to comp

Re: [python-win32] Excel

2006-01-10 Thread John Machin
bob wrote: > 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 &

Re: [python-win32] Excel

2006-01-10 Thread John Machin
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 line? Yes. Two

Re: [python-win32] Excel

2006-01-10 Thread John Machin
bob wrote: > Viola, it displays 6. :-) Cello, it displays 7. (-: ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] ADSI and LDAP Searches

2005-12-08 Thread Gooch, John
rking example of searching Active Directory? Of you course you can put in made up domain/server names where necessary. Thank You, John A. Gooch Systems Administrator IT - Tools EchoStar Satellite L.L.C. 9601 S. Meridian Blvd. Englewood, CO 80112 Desk: 720-514-5708 _

Re: [python-win32] win32 meta-topic

2005-12-05 Thread John Machin
81f38ba > > TJG Thanks, Tim. Maxima mea culpa. I'll pull my head in :-) Does anyone have any suggestions on what advice to give (a) people who post from work via e-mail, engendering enormous disclaimers (b) possibly over-sensitive folk who are annoyed by (a)? Cheers, John ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] os.popen4 and spaces in the directory name

2005-12-04 Thread John Machin
ommand, operable program or batch file. C:\junk>"c:\program files\textpad 4\textpad.exe" [works OK] > I am > using python 2.4 on a Windows 2003 server. I am also running this > command on Windows 2003 server. > Fourthly, this mailing list is for discussion of Mark Ha

Re: [python-win32] Application exception in Python.dll

2005-11-23 Thread John Machin
at a bug in core Python. Report the problem using the SourceForge bug tracker. This mailing list is for Mark Hammond's win32all aka pywin32 package. Cheers, John ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Pythonwin - Word automation - Removing watermark not working

2005-11-05 Thread John Machin
Gregory Piñero wrote: > See below: > > On 11/5/05, *John Machin* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Gregory Piñero wrote: > > > > > Would anyone happen to know why this my function removewatermark() in >

Re: [python-win32] Pythonwin - Word automation - Removing watermark not working

2005-11-05 Thread John Machin
nt > > How do you know it didn't work? Your class and its methods don't have any problems that I can see -- but it's early here and I'm not quite awake. Is it possible for you to show us the few lines of code that you actually used to test this? You know, something

[python-win32] Installation issues....

2005-11-04 Thread John Augustine
d indicate network error or problem with the package. I downloaded it several times using both IE and mozilla just in case it was a download error. That did not resolve it. Has anybody else encountered this and resolved it? Let me know how you did it. Th

Re: [python-win32] Illegal instruction while installing win32 extensions

2005-11-01 Thread John Machin
Olivier Lefevre wrote: > Trying to run pywin32-205.win32-py2.4.exe on a Windows XP SP2 machine > with a HT P4 processor gives me "The NTVDM CPU has encountered an > illegal instruction error". Any idea? > Gives me one of those stupid "do you want to send your life history to Microsoft" dialogu

Re: [python-win32] wdFormatText

2005-10-23 Thread John Machin
Michel Claveau wrote: > Hi_release_2 ! > Anyway I wonder if this could be found in MSDN documentation or in word macro itselfjust for the next time I am in the same situation... >>> > I don't know why you are sending this to me -- the above quote is from "geon", and as for the

Re: [python-win32] wdFormatText

2005-10-23 Thread John Machin
rived fom it :-) Later on there's this: http://herlock.com/ob/pythoncb/0596007973/chp-2-sect-27.html By the way, you have u'text' in your code -- are you sure that you don't mean u'txt'? Cheers, John ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] detecting windows type

2005-09-08 Thread John Machin
Roel Schroeven wrote: >le dahut wrote: > > >>Hello, >> >>How is it possible to detect which kind of windows a python script is >>running on ? (9x, Me, 2k, XP, 2k3) >> >> > >You can use sys.getwindowsversion() for that. Check MSDN documentation >for the precise meaning of the result. > > >

Re: [python-win32] Querying Password Change Privilege on an Activ e Directory User Ac count

2005-07-29 Thread Gooch, John
ns problems while I sleep. :) -Original Message- From: Jim Vickroy [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 12:34 PM To: Gooch, John Cc: python-win32@python.org Subject: Re: [python-win32] Querying Password Change Privilege on an Active Directory User Ac count Hello John, Why does it mat

[python-win32] Querying Password Change Privilege on an Active Directory User Ac count

2005-07-29 Thread Gooch, John
ns.pwdLastChanged1,trans.pwdLastChanged2 )   else:   #print "Password change verification success - PasswordLastChange Value did change after executing the SetPassword Command.Before:%s Date After Date:%s" % ( trans.pwdLastChanged1,trans.pwdLastChanged2 )  

Re: [python-win32] EasyDialogs - how to set initial path

2005-06-30 Thread John Machin
Radovan Grznarik wrote: >Thank you very much, I was so close, it's the 4th one:))) >Next time before the question I will look at the code. > >now it works >filename = EasyDialogs.AskFileForOpen("","","","d:\\") > > Bletch. Try this: filename = EasyDialogs.AskFileForOpen(defaultLocation="d:\\")

Re: [python-win32] EasyDialogs - how to set initial path

2005-06-30 Thread John Machin
Radovan Grznarik wrote: >Hi, > >I am using EasyDialogs (AskFileForOpen) and I am not able to set the >initial open path. I found in Python help > Python help describes the *Mac* version; EasyDialogs for Windows by Jimmy Retzlaff has slightly different arguments; there is a readme.txt in .\si

[python-win32] ADSI and LDAP Searches

2005-06-29 Thread Gooch, John
. I could be complete off-base here as the document I have found via Google don't explain what the code is doing, so I am left guessing. Any help would be appreciated. Thank You, John A. Gooch Systems Administrator IT - Tools EchoStar Satellite L.L.C. 9601 S. Meridian Blvd. Englewood, CO 8

[python-win32] threading in python

2005-06-28 Thread john taylor
g new thread. none of them works. anybody can help? cheers, john ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] How to send an array of clusters to labview??

2005-06-28 Thread john taylor
aus Variants wird erwartet.', None, 0, 0), None) it says, 1D-Array of Variants is expected. i've succeeded in sending 1d and 2d arrays, or a cluster. the only problem is to send an array of clusters (elements of different types). anybody with experience in python/com/labview has i

  1   2   >