Re: [python-win32] FIle I/O on Windows XP

2009-06-15 Thread python
Hi Tony, > I was trying to see if I could speed up processing huge files (in the 10's of > Gigabytes) by passing various values to the readline() method of the file > object. We also work with large sized text files (we use Python for ETL jobs in the 100-200 Gb range) and have n

[python-win32] Read USB memory stick serial number

2009-12-29 Thread python
Apparently retrieving the serial number of a USB memory stick is much more complicated than one would think. Is there a published Python recipe for determining a USB memory stick's device level serial number under Windows and/or Linux/Mac? My Windows research follows my signature. Any fee

Re: [python-win32] Read USB memory stick serial number

2009-12-29 Thread python
uot;): print usb.PNPDeviceID _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Create a QueryInfo type Windows Shell Extension to provide InfoTip data in Windows Explorer

2010-01-04 Thread python
Wondering if its possible to create Windows Shell Extensions using pywin32 and if so, has anyone has tried to create a QueryInfo type Windows Shell Extension? I would like to create a Python equivalent of the simple InfoTip described in this well written tutorial. http://www.codeproject.com/KB

[python-win32] Detect when application is running in a VM environment?

2010-03-03 Thread python
Any suggestions? Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] WMI script that shows general info about a computer

2010-03-03 Thread python
my google-mojo is failing me. Thank you, Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Detect when application is running in a VM environment?

2010-03-03 Thread python
an we had hoped. Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] WMI script that shows general info about a computer (SOLVED)

2010-03-03 Thread python
OP here. When in doubt, read the (very well commented) wmi.py source code :) computerSystem = wmi.WMI().Win32_ComputerSystem()[0] Sorry for the interuption. Malcolm - Original message - From: pyt...@bdurham.com To: python-win32@python.org Date: Wed, 03 Mar 2010 21:01:19 -0500 Subject

[python-win32] How to enumerate a WMI object to discover its properties?

2010-03-03 Thread python
ld I get a list of WMI properties like .TotalPhysicalMemory without having to know each property ahead of time. Thank you, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to enumerate a WMI object to discover its properties?

2010-03-04 Thread python
eers, Malcolm - Original message - From: "Tim Golden" To: Cc: "zz Python Win32 Newsgroup" Date: Thu, 04 Mar 2010 08:49:28 + Subject: Re: [python-win32] How to enumerate a WMI object to discover its properties? On 04/03/2010 06:38, pyt...@bdurham.com wrote: >

Re: [python-win32] WMI script that shows general info about a computer (SOLVED)

2010-03-04 Thread python
Hi Tim, > Well I'm always glad to hear a positive comment on the > source code, but there *is* some documentation: > > http://timgolden.me.uk/python/wmi/index.html > http://timgolden.me.uk/python/wmi/tutorial.html > http://timgolden.me.uk/python/wmi/cookbook.html I re

Re: [python-win32] WMI script that shows general info about a computer (SOLVED)

2010-03-05 Thread python
lown away. Very nicely done. And very, very helpful!!! THANK YOU TIM! Cheers, Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Detect whether a workstation is a laptop or desktop/server?

2010-03-05 Thread python
d look for battery properties, but I'm not sure that would allow me to distinguish between a laptop and a server with an attached UPS. Any suggestions? Thank you, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/m

Re: [python-win32] Detect whether a workstation is a laptop or desktop/server?

2010-03-06 Thread python
would find a database for some of the machines we have. I'm hoping that there's a WMI property that allows me to distinguish between a laptop battery and an external UPS. (I've been looking, but my google-fu is failing me). Thanks for your help, Regards, Malcolm __

Re: [python-win32] Detect whether a workstation is a laptop or desktop/server?

2010-03-06 Thread python
Steve, Those are some great ideas! I'll give it a shot and see what works for us. Thanks for your help, Malcolm - Original message - From: "Steven James" To: python-win32@python.org Date: Sat, 6 Mar 2010 10:17:43 -0500 Subject: Re: [python-win32] Detect whether a w

Re: [python-win32] Detect whether a workstation is a laptop or desktop/server?

2010-03-07 Thread python
-us/library/aa394587%28VS.85%29.aspx Oddly enough, this function indicates that my laptop (new Sony Vaio running Windows 7 Professional (64-bit) has no enclosure. :) Well, its a start! Thank you all for your ideas and help! Malcolm ___ python-win32

[python-win32] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-07 Thread python
__init__? Here are my results from Python 2.6.4 (32-bit) run on a Sony Vaio laptop with Windows 7 Professional (64-bit): >>> import wmi >>> c = wmi.WMI().Win32_SystemEnclosure >>> c <_wmi_class: \\SONYLAPTOP-01\ROOT\cimv2:Win32_SystemEnclosure&g

Re: [python-win32] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-08 Thread python
r me with the ***c.Win32_SystemEnclosure class***. > And likewise for the battery class No. The battery class appears to really return no information. Here's my updated battery code: import wmi c = wmi.WMI() for battery in c.Win32_PortableBattery(): print battery This code doesn&#

Re: [python-win32] [Correction] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-08 Thread python
ttery class is for machines with advanced power supply management capabilities. Thank you for your help! Regards, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] [Correction] Trying to get the Win32_PortableBattery and Win32_SystemEnclosure classes to work

2010-03-08 Thread python
>> I suspect the win32_PortableBattery class is for machines with advanced >> power supply management capabilities. > Obviously it's for machines that have a *wireless* battery. :) Now you tell me! Malcolm ___ python-win32 maili

[python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-09 Thread python
I'm looking for simple ways to monitor and limit the number of instances of our Python application that gets run on our in-house Terminal Servers (2003 and 2008). The purpose of this restriction is to make sure we don't overload our servers. This is an internal administrative requirem

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-10 Thread python
there may be no such thing as Global (that are visible across user sessions) semaphores and mutex's. So I'm back to thinking about your PID file idea :) Regards, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-12 Thread python
Greg, Very clever! Thank you, Malcolm - Original message - From: "Greg Ewing" To: "zz Python Win32 Newsgroup" Date: Sat, 13 Mar 2010 00:15:19 +1300 Subject: Re: [python-win32] Technique to limit number of instances of our application under Terminal Server Her

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-12 Thread python
ocess is holding a resource or not, eg. they consistently get released when a process terminates abnormally. - Original message - From: "Mark Hammond" To: pyt...@bdurham.com Cc: "Tim Golden" , "zz Python Win32 Newsgroup" Date: Thu, 11 Mar 2010 12:52:43 +110

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-12 Thread python
exes. Thanks for your feedback, Mal _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-12 Thread python
From: "Tim Golden" To: Cc: "zz Python Win32 Newsgroup" Date: Thu, 11 Mar 2010 15:31:22 + Subject: Re: [python-win32] Technique to limit number of instances of our application under Terminal Server On 10/03/2010 21:16, pyt...@bdurham.com wrote: > Hi Tim, > >

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-12 Thread python
be suprised how many times our apps get abnormally terminated so we do need a fairly accurate way to track running instances or the entire process is not worth pursuing. Regards, Malcolm - Original message - From: "Christopher Nilsson" To: "Tim Golden" Cc: "zz Py

Re: [python-win32] Technique to limit number of instances of our application under Terminal Server

2010-03-12 Thread python
y different than managing a pool of mutex's? I haven't tried it yet, but intuitively I would think that a pool of mutex's would be faster to iterate through and more resource efficient? Regards, Malcolm - Original message - From: "Tim Golden" To: Cc: "z

Re: [python-win32] Python Windows Socket problem after Py2exe and install

2010-03-13 Thread python
ges for a general purpose reusable PY2EXE runtime'. This post got zero feedback so our idea is either too stupid or too obvious to warrant further conversation :) Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python Windows Socket problem after Py2exe and install

2010-03-13 Thread python
f modules. Good catch! Thank you, Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] MAPI with win32com

2010-03-22 Thread python
Werner, I'm not sure I understand the benefit of being locked into the proprietary and awkward MAPI protocol? Why can't you use industry standard SMTP to send your messages? Simpler and more portable. Malcolm - Original message - From: "Werner F. Bruhin" To: pyt

Re: [python-win32] MAPI with win32com

2010-03-22 Thread python
een sent. We solved the configuration issues by posting to a PHP form that in turn sends out our emails. We solved the record/archive concern by bcc-ing the customer's email with a copy of what was being sent. Malcolm _______ python-win32 mailing list

[python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app?

2010-03-22 Thread python
Is there a Windows API call I can use to display a BMP or a PNG file in a window centered on a user's display? This function would be called from a console app to display a splash screen. Motivation: I would like some of our customer facing Python console utilities to display a splash scre

Re: [python-win32] Win API call to display a BMP/PNG file as a splash screen for a console app?

2010-03-22 Thread python
ature like a splash screen. Regards, Malcolm - Original message - From: "Tony Cappellini" To: python-win32@python.org Cc: pyt...@bdurham.com Date: Mon, 22 Mar 2010 15:47:47 -0700 Subject: Re:Win API call to display a BMP/PNG file as a splash screen for a console ap

[python-win32] Detect OS shutdown or user logout

2010-04-26 Thread python
Any suggestions on how I can have a Python script detect when its operating system is shutting down or a user is logging out? The script in question is a local web server (based on CherryPy). Thank you, Malcolm ___ python-win32 mailing list python

Re: [python-win32] ide for python 3.x

2010-05-17 Thread python
Vineet, > > Till now, I have been programming with VFP & MySQL. Check out dabodev.org. Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Creating a list of stress tests for unit tests involving files

2010-06-09 Thread python
7;file_locked.tmp' unittest_file_locked = open( UNITTEST_FILE_LOCKED, 'w' ) UNITTEST_UNICODE_PATH= ur'\xunicode_test_\xb0_\xb1_' Thank you, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Possible to update exe file properties and/or icon via the win32api library?

2010-07-26 Thread python
pdate an exe's file properties using an external resource file? Or would I be better off finding a Windows utility that might allow me to script exe resource file updates? Thank you, Malcolm _______ python-win32 mailing list python-win32@pytho

[python-win32] Simple Windows progressbar dialog (like messagebox) via Win32 API?

2010-09-30 Thread python
I know there is a simple interface to the Windows messagebox interface. Is there an equivalent type of simple dialog box for showing a progressbar or progressbar-like information? Use case: I have a collection of Python command line utilties that can take up to several minutes to run. These are

Re: [python-win32] Simple Windows progressbar dialog (like messagebox) via Win32 API?

2010-09-30 Thread python
Tim, > If you look in site-packages\pythonwin\pywin\Demos, you'll find > "progressbar.py". This is a Python wrapper around the MFC CProgressCtrl > class. You might be able to adapt that to do what you need, although I'm not > sure MFC is any lighter weight than

Re: [python-win32] Simple Windows progressbar dialog (like messagebox) via Win32 API?

2010-09-30 Thread python
Tony, >Try Easy Dialogs > http://www.averdevelopment.com/python/EasyDialogs.html > > It has a progress bar. Easy Dialogs just wraps the native OS calls, and makes > them sensible & cross platform. > > Using a progress bar is only a few lines of code. Thanks for this r

[python-win32] Using Win32 API to get around Tkinter limitations?

2010-10-29 Thread python
___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Using Win32 API to get around Tkinter limitations?

2010-10-29 Thread python
Eric, The short answer (for people searching the archives) is that the cursor='@\path\to\cursor_file.cur' technique DOES work exactly as advertised ... when used in a script run outside of IDLE (I know, I know ... never test Tkinter code in IDLE!). > Did you try it? Yes. Running P

Re: [python-win32] [Tkinter-discuss] Using Win32 API to get around Tkinter limitations?

2010-10-29 Thread python
d that, but from within IDLE (Python 2.7) this syntax raises an exception. Using this technique in scripts running from the command line (outside of IDLE) works well. Malcolm References 1. http://wiki.tcl.tk/8674 ___ python-win32 mailing list python-win32

[python-win32] Win32 equivalent of VB doevents() or just use time.sleep()?

2010-11-05 Thread python
n the pros and cons of this technique vs. a strategy that proactively pumps waiting messages. Malcolm [1] http://mail.python.org/pipermail/python-win32/2005-October/003920 .html _______ python-win32 mailing list python-win32@python.org http://mail.python.o

[python-win32] Prevent a (Tkinter) window from maximizing via win32 api call?

2010-12-02 Thread python
would like to keep). Thank you, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Prevent a (Tkinter) window from maximizing via win32 api call?

2010-12-02 Thread python
ove the window's border and titlebar (both of which I would like to keep). References 1. mailto:pyt...@bdurham.com ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] DVCS options for pywin32

2011-02-07 Thread python
s, Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Detect new/changed file in a folder

2011-03-08 Thread python
ith a simple polling technique that I should be aware of? Thank you, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Detect new/changed file in a folder

2011-03-08 Thread python
Tim, Ben and Brian, Thank you all for your posts - excellent information(!!!). You have all answered my question. Cheers, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32print.StartDocPrinter

2011-07-11 Thread python
Anthony, Dabo (dabodev.com) is an open source GUI framework built on top of wxPython. Dabo has a very impressive report writer. Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] manipulating service action restart behavior?

2011-08-10 Thread python
Andrew, Thanks for sharing the solution! Regards, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Detecting user (in)activity and changing process prioritization?

2011-10-31 Thread python
e the priority of a running process, or can the priority of a Windows process only be set when the process is launched? Thanks, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Passing an object to a process

2012-03-14 Thread python
What about logging to a database? Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] DIR reports file timestamp and size, but os.path.getctime(), os.path.getsize() raise WindowsError [Error 5] Access is denied

2012-05-21 Thread python
tamps and file sizes for the above files. Background; 64-bit Windows 7; 32-bit Python 2.7.2 Any ideas on how I can retrieve timestamps and file sizes like DIR without raising exceptions? Thank you, Malcolm ___ python-win32 mailing list python-w

Re: [python-win32] How to invoke Python program from Windows service?

2012-06-22 Thread python
>> For reference, this is the kind of pattern I use when writing Windows >> Services in Python: > This is incredibly useful. Thank you. +1 Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/

[python-win32] remote copy with compress/decompress

2004-12-13 Thread python
ile to desktop 4: decompress file step 3 and 4 is to develop a socket with python 5: print it on lokal printer => solved What do you think about it. I think of sockets because step 4 should be done automatically when the file arrives at the workstation. Otherwise I have to check a directory on the workst

Re: [python-win32] remote copy with compress/decompress

2004-12-15 Thread python
Hello Jens, hello all, thanks for your replay. I tried your solution first and get some errors. Independing of the size in socket.recv and f.read I allways get an empty datastring after 1770 bytes. But I found a similiar solution here http://mail.python.org/pipermail/python-list/2002-July/111754

[python-win32] Re: remote copy wiht compress/decompress

2004-12-20 Thread python
ocess fails if python is not installed on that machine. I have to install this service on a users computer without python. Normally I run Gordon McMillans Installer and ship the exe-file to the users computer. Is there a way to register the pythonservice without installing python, or run the se

[python-win32] Geting values from a thread

2005-01-10 Thread python
ow can I pass values from the thread function to the main thread ? regards, Jürgen - This mail sent through IMP: http://horde.org/imp/ ___ Python-win32 mailing list Python-win32@python.org http://mai

AW: [python-win32] Geting values from a thread

2005-01-11 Thread python
problem. Don't know how to solve :-( regards, Jürgen - This mail sent through IMP: http://horde.org/imp/ ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] (no subject)

2005-01-11 Thread python
e FetchData >function. >That's the whole problem. Don't know how to solve :-( >regards, >Jürgen ----- This mail sent through IMP: http://horde.org/imp/ ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Re: remote copy wiht compress/decompress

2005-01-19 Thread python
il sent through IMP: http://horde.org/imp/ _______ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] getting global addressbook with extended mapi

2005-06-08 Thread python
to set the address type of that dl to 'MAPIPDL', but I'm lacking the permissions - crazy, crazy regards, Jürgen - This mail sent through IMP: http://horde.org/imp/ ___ Python-win32 maili

[python-win32] win32gui.SetCapture

2005-09-16 Thread python
Versandt durch den Webmaildienst der LDC GmbH Bonn ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Overlay Icon Question and network drives

2008-04-16 Thread python
if you have the same issues with the code Roger posted ? Thanks, Jürgen - Versandt durch den Webmaildienst der LDC GmbH Bonn ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mail

Re: [python-win32] Hide the console as soon as the script starts.

2008-05-13 Thread python
Antony, If you're just trying to hide the console Window, rename your python script with a *.pyw file extension or launch it via pythonw.exe vs. python.exe. I have no idea how to have a Python application display an icon in the System Tray (vs. Taskbar). That's a very interestin

[python-win32] Is WMI ever disabled?

2008-05-16 Thread python
available on real-world 'locked-down' corporate workstations. Thank you, Malcolm ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Request for comments

2008-05-22 Thread python
s, Malcolm _______ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Request for comments

2008-05-22 Thread python
the core of this reference. Use "copy and paste" and try them now. Sometimes a line of code is worth a dozen of pages and hours of online searching. http://news2news.com/vfp/index.php Malcolm _______ python-win32 mailing list python-win

[python-win32] Capturing a Python script's Task Manager statistics

2008-06-20 Thread python
Anyone know of a way to have a Python script capture its own Task Manager statistics? I have a long running Python script whose CPU, memory, disk i/o, and network traffic I would like to monitor. An alternative more generic approach would be to run an 'observer' script that would m

[python-win32] win32com in a 64bit laptop

2011-10-28 Thread love python
I just got a 64bit laptop and install python 2.7.2 (Windows AMD64 / Intel 64 / X86-64 binary) and other packages. When i run the previous file, I find to import win32com.client bc the program needs to read a word document as follows: app = win32com.client.gencache.EnsureDispatch

Re: [python-win32] win32com in a 64bit laptop

2011-10-30 Thread love python
Thanks for the reply. I removed the Softwares and reinstall them with 32bit again. But I have the following questions: 1. When installing xlutils1.4.1.win32, I got the following errors: couldn't create key for i) xlutils-py2.7; ii) python 2.7 xltuils-1.4.1 Then I got the error "Couldn

Re: [python-win32] win32com in a 64bit laptop

2011-10-30 Thread love python
I got python from: www.python.org/download and choose •Python 2.7.2 Windows Installer (Windows binary -- does not include source) It should be a good version too, right? What I did is to remove all the 64bit versions and reinstall these software systems for win32. Thanks in advance. Bill

[python-win32] Response.Flush not working

2008-03-07 Thread python-win32
Hi All, I searched for this but couldn't find it anywhere: I've just started running Python in Classic ASP, and would like to Response.Flush periodically on a page with a lot of processing behind it. However, it seems to have no effect. I confirmed that Response.Buffer =

[python-win32] DDE Server Poke

2010-09-08 Thread jon vs. python
Any hint or sample code on how to implement DDE Poke ? Thanks, Jon. (*) Based on http://www.google.com/codesearch/p?hl=es#OAMlx_jo-ck/tools/third_party/python_26/Lib/site-packages/win32/Demos/dde/ddeserver.py&q=dde%20lang:python&sa=N&cd=1&ct=rc ______

[python-win32] pywintypes.com_error- no data source was provided when sending outlook attachment

2016-03-20 Thread Joe via python-win32
Hello,Iam trying to send an email through outlook 2010 on a win 7 64 bit oswith python 2.7 32 bit and win32com 32 bit. I am using the same codeexample found in many Google search results. This chunk of code willrun fine if I rem out the attachment, but once I try adding theattachment, I get an

[python-win32] wincom32.client problem?

2018-10-02 Thread mastro59 via python-win32
I ahve been trying to communicate with an Instrument GUI using python and a COM Object. This is quite simple using wincom32, but somethind with this client required additional extension not needed in other lunguages. I wander id someone here has experience and can explain how to solve this.in VBS

[python-win32] Opening existing memory mapped files with pywin32

2021-02-16 Thread rhyslloyd1 via python-win32
Hello. Sorry if this is the wrong place to ask my question. I am trying to open a memory mapped file using Python. I originally used the "mmap" module from Python however I had issues with it because I had to use a fixed size for the file even though my goal was to open an existi

Re: [python-win32] Clipboard Documentation

2021-11-30 Thread gw1500 via python-win32
are a pain to work with, and of course don't work at all on other systems. _______ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32 _______ python-win

Re: [python-win32] Clipboard Documentation

2021-12-01 Thread gw1500 via python-win32
On 12/1/2021 3:07 AM, Tim Roberts wrote: On 11/30/21 7:04 AM, gw1500 via python-win32 wrote: Thanks for the reply. I read about that but was hoping to use pywin32. I can see now the folly of that decision. I have a working minimal test but am looking for something a bit more automated. I

Re: [python-win32] Clipboard Documentation

2021-12-01 Thread gw1500 via python-win32
rmats:     formats.append(standard_formats[format])     else:     formats.append( win32clipboard.GetClipboardFormatName(format) )     finally:     win32clipboard.CloseClipboard()     return formats ___ python-win32 mailin

Re: [python-win32] python-win32 Digest, Vol 232, Issue 1

2022-10-11 Thread monetclause--- via python-win32
I've had my challenges with 3.10 and stayed on 3.9, with good results. Sent from Android On Tue, Oct 11, 2022 at 11:00, python-win32-requ...@python.org wrote: Send python-win32 mailing list submissions to     python-win32@python.org To subscribe or unsubscribe via the World Wid

[python-win32] Pywin32 Windows Service not responding

2023-03-25 Thread jeremy.farmer1206 via python-win32
event import servicemanager import socket import time import os import sys class MyService(win32serviceutil.ServiceFramework): _svc_name_ = 'MyPythonService' _svc_display_name_ = 'My Python Service' _svc_description_ = 'This is a sample Python

[python-win32] AddObject from C

2023-09-19 Thread dzzie via python-win32
features. Right now I can createobject() and getobject() in python using the new namespaces. Experimenting with using this for app automation similar to the microsoft script control and its addobject functionality. Bringing the COM code into my helper dll to see if I can get around not being able

Re: [python-win32] AddObject from C

2023-09-19 Thread dzzie via python-win32
ey = LCase(StringFromPointer(buf))     Set o = SharedObjects(key)          If Not o Is Nothing Then     HostResolver = ObjPtr(o)     Else     HostResolver = 0     End If   End Function _______ python-win32 mailing list python-win32@python.org htt

[python-win32] VB6 Listbox methods fail through ROT

2023-10-04 Thread dzzie via python-win32
rm1.caption = "test" form1.Move(0) Set List1 = GetObject("PyComTest.List1") List1.AddItem "***** VBS SAYS HELLO ***" Currently using a vb6 standard exe manually adding objects to the ROT, and python 311 exe to run the

[python-win32] __getattr__ Error

2024-03-17 Thread Jannis via python-win32
lation of the client? Or am I looking in the wrong direction? Thank you & Best Regards ioannis ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to correctly handle events using win32com ?

2024-11-29 Thread dornech via python-win32
App.Workbooks.Add() #Create a workbook ws=xlwb.Sheets("Sheet1") #Get the first worksheet xl_events=win32.WithEvents(xlwb,wbEvents) #Add and Event handler # define initalizer keepOpen = True while keepOpen:     time.sleep(0.1)     pythoncom.PumpWaitingMessages() -------- Code2 End

[python-win32] Trouble with list iteration / comprehension for wrapped COM objects

2025-04-18 Thread dornech via python-win32
would alway be increased. It seems, püywin32 has some special support for list comprehension and index adjustment for COM objects? I haven't worked with an iterator before but is this the solution? Thanks in advance. Best Christoph _______

Re: [python-win32] Trouble with list iteration / comprehension for wrapped COM objects

2025-04-19 Thread dornech via python-win32
issue at https://github.com/mhammond/pywin32 since it shouldn't break that way. Cheers On 2025-04-18 8:33 p.m., dornech via python-win32 wrote: Hi there, I am working on an EXCEL wrapper to "phytonize" access to EXCEL. I create a wrapper class for all objects classes derived fr

[python-win32] PYTHON DEVELOPER with 3+ years Exp. ( Job Location : Hyderabad )

2015-09-24 Thread Apple Informatics via python-win32
Hi  We are looking for a PYTHON DEVELOPER  with  3+ years Exp. ·      Strong in Python· Django framework· Good at Rest API·  Decent communication skills· 3+ Years’ experience· Full time – Immediate Joinee            Job Location

Re: [python-win32] Windows 10

2015-10-26 Thread Zachary Turner via python-win32
and vice versa. They are synonyms. On Sun, Oct 25, 2015 at 11:24 PM eryksun wrote: > On 10/25/15, Laura Creighton wrote: > > > > Can I suggest a mailing list name change to reflect 64 bit windows? > > python-windows would be my suggestion .... > > I agree. This list is

Re: [python-win32] Building my own C extension

2015-11-04 Thread Zachary Turner via python-win32
Two questions: 1) Are you embedding this extension in your own application or do you only need to be able to load it into a stock Python distribution? 2) Is Python 3.5 out of the question? On Wed, Nov 4, 2015 at 5:10 PM Ken Brooks wrote: > I have joined this list because I need to learn how

Re: [python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Zachary Turner via python-win32
Why do you need to use Python? Sounds like this is done very easily with Spy++ On Sun, Feb 7, 2016 at 10:12 AM Ram Rachum wrote: > Hi everybody, > > There's a problem in my Windows 7 machine that I want to diagnose using > Python. > > Once in a while, I'm noticin

Re: [python-win32] Figuring out why a window is losing focus

2016-02-07 Thread Zachary Turner via python-win32
6 at 10:39 PM, Zachary Turner > wrote: > >> Why do you need to use Python? Sounds like this is done very easily with >> Spy++ >> >> On Sun, Feb 7, 2016 at 10:12 AM Ram Rachum wrote: >> >>> Hi everybody, >>> >>> There's a problem in

Re: [python-win32] Figuring out why a window is losing focus

2016-02-08 Thread Zachary Turner via python-win32
It's included as part of Visual Studio. Download community edition, it should be there. On Mon, Feb 8, 2016 at 7:33 PM reckoner wrote: > > Where can I safely download this Spy program you are all talking about? > > Thanks! > > > > On 2/8/2016 9:00 AM, python-w

[python-win32] Problem: methods defined in type library's base class are not accessible in inherited class objects of the type library

2016-02-18 Thread Indranil Sinharoy via python-win32
Hi all, I am a relatively new user of pywin32 package, but not Python. I have an application (written in C/#, as I understand) that provides a COM interface for using with other languages such as Python. I am using the pywin32 library to communicate with the application and it works fairly

[python-win32] Python in Visual Studio

2016-04-16 Thread Mark Lawrence via python-win32
For anybody who might be interested this is a podcast featuring Steve Dower from Microsoft https://talkpython.fm/episodes/show/53/python-in-visual-studio -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence

Re: [python-win32] Python in Visual Studio

2016-04-16 Thread Zachary Turner via python-win32
The debugger is good too. I don't know of any other tool that lets you seamlessly step between Python and native code when debugging a program which embeds Python On Sat, Apr 16, 2016 at 5:23 PM Alexander Walters wrote: > As a total aside, PTVS (part of the base VS 2015 install, IIRC

  1   2   >