[python-win32] Does it support the 64-bit Excel

2021-04-23 Thread Ben Hui
library. I cannot seem to locate it on Github repository. Thanks in advance, Ben ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Restart/re-run a thread

2011-10-27 Thread Ben Timby
Jacob, What you are looking at is called a thread pool. The simple case you have now is that you start a thread whenever there is work to do (playing a sound). The thread does this work, then exits. A thread pool means you have a set number of threads idling and receiving work via a queue. When wo

Re: [python-win32] checking file permission on network share

2011-09-01 Thread Ben Timby
On Wed, Aug 31, 2011 at 8:38 AM, Steffen Frömer wrote: > Hello, > > i try to check, if a file on network-share is read only. I tried different > ways. Not the prettiest, but if you want to know if the SHARE is read only, you can do a functional test. import os, tempfile def check_write(filename

Re: [python-win32] Backup up Windows ACLs

2011-03-18 Thread Ben Timby
On Fri, Mar 18, 2011 at 9:40 PM, Randy Syring wrote: > > On 03/18/2011 08:21 PM, Ben Timby wrote: >> >> I would suggest looking at Samba. This would help you solve two problems. >> >> 1. Transporting files to the Linux server. >> 2. The ACL issue, you can u

Re: [python-win32] Backup up Windows ACLs

2011-03-18 Thread Ben Timby
On Fri, Mar 18, 2011 at 5:28 PM, Randy Syring wrote: > I'm working on a backup solution using the ZFS file system.  The idea is > somewhat like rdiff-backup, except that the backup tool doesn't need to > worry about versioning, compressiong, or deduplicating the files.  ZFS will > handle compressi

Re: [python-win32] Trouble with SetWindowLong().

2011-01-16 Thread Ben Timby
No problem Tim. I am not a Windows developer so I barely know what I am talking about. I am in fact NOT in a windowed environment. I have a background process that is spawned by a GUI that I want to kill gracefully. I am trying to emulate the pattern that I use on Linux: os.kill(pid, signal.SIGTE

Re: [python-win32] Trouble with SetWindowLong().

2011-01-16 Thread Ben Timby
IIUC, WndProc receives messages from the message pump. I am attempting to override the default message handler with my own. The code I posted is a contrived example. So really, I am not interested in the correctness of it, but why does the call to SetWindowLong() fail the way it does when I call it

[python-win32] Trouble with SetWindowLong().

2011-01-15 Thread Ben Timby
I am using pywin32 214 on Windows XP 32 bit. I am calling SetWindowLong like so: -- import win32api, win32con def fun(): print 'fun' h = win32api.GetCurrentProcess() win32api.SetWindowLong(h, win32con.GWL_WNDPROC, fun) -- But receiving: TypeError: Unable to convert function to pointer-size

Re: [python-win32] Unreliable results with Winreg & WMI

2009-02-25 Thread Ben
> I have generally been getting better results using winreg than using WMI, > but even Winreg (or config problems on our server) are causing me > problems. For example I'd use this code to find out if a certain > I'm beginning to think this is because of 32 vs 64 bit, because the server running

[python-win32] Unreliable results with Winreg & WMI

2009-02-25 Thread Ben
Hello I have generally been getting better results using winreg than using WMI, but even Winreg (or config problems on our server) are causing me problems. For example I'd use this code to find out if a certain security update is installed across all our servers: def KB958644(OS, servername):

Re: [python-win32] Casting to interface from different typelib?

2009-01-11 Thread Ben Gordon
an't work out a fix, do you have any idea of what could be going wrong? -Ben ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Casting to interface from different typelib?

2009-01-10 Thread Ben Gordon
ent in VBA/VB (VB requires an explicit CType call), without the need to lookup CLSIDs/IIDs. Thanks again, -Ben ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Casting to interface from different typelib?

2009-01-09 Thread Ben Gordon
nt not found" error. All I know about InterfaceB is that it is probably a Collection or derived from a Collection. I've read somewhere about issues with "dependent typelibs." Is this what I'm coming up against? Any ideas? Many thanks, -Ben ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] looking for pythonwin gui tutorials

2007-03-16 Thread Ben
Hi all, I have been using Python just for two weeks, and I feel very comfortable with it. The only stumbling blocks is on learning to build gui with pywin (pythonwin). Is there any good tutorials or good documentations out there ? (I can not find any good one on the internet). I really appreciate

[python-win32] Setting string properties

2006-09-22 Thread Ben . Young
x27;" % (repr(self), attr) AttributeError: '' object has no attribute 'SetValue' Is it possible to set string properties? If so, what am I doing wrong? Thanks for your help! Cheers, Ben class IPanScriptTFOSlice2(DispatchBaseClass): """PanScript TF

[python-win32] bad W32 logfiles cause win32evtlog to exit without an error

2006-02-17 Thread Ben Vinger
to trap the problem automatically when occurs, so something automated can happen when this occurs. Thanks Ben ___ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk