Re: [python-win32] win32api - small patch for win32verstamp.py

2014-12-06 Thread Roger Upole
Thanks for the patch, applied in http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/rev/fcfbe0ff52ca Roger From: Chris Clark Sent: Wednesday, December 03, 2014 7:08 PM To: rup...@spideroak.com Cc: python-win32@python.org Subject: win32api - small patch for win32verstamp.py I found a

Re: [python-win32] Error R6034 when I import uuid

2014-11-05 Thread Roger Upole
This appears to be due to way rpcrt4.dll is loaded by ctypes. If a side-by-side assembly has already loaded a version that’s not compatible with the activation context of Python itself, ctypes will attempt to use it anyway. Roger "Blair Hall" wrote in message news:CAJeTVArsN8Vp_e6cnF3yU

Re: [python-win32] python 3.4 and pywin32

2014-04-03 Thread Roger Upole
It appears that pywintypes34.dll won't be loaded automatically when it's copied beside python.exe, but will load when copied to system32. May be due to python using the flag LOAD_WITH_ALTERED_SEARCH_PATH when loading pyd's, but it will take some more study of the MSDN docs for LoadLibraryEx. I

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

2014-03-30 Thread Roger Upole
Should be able to open the file in binary mode (as RunScript above it does) and append the \n as bytes. Roger "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 inv

Re: [python-win32] Printing PDFs without external tools

2014-03-05 Thread Roger Upole
You may be able to call win32print.SetPrinter to change the paper orientation and size before calling ShellExecute. Roger "Andreas Holtz" wrote in message news:5314f09b.20...@gmx.net... > Hi guys, > > I need want to print PDF files without the usage of tools like Adobe, Foxit, > etc. > THe

Re: [python-win32] win32api & win32gui help

2014-03-02 Thread Roger Upole
Where does the hardcoded 9 come from in this line ? win32api.PostMessage(hwnd,message,1,9) If I'm interpreting the docs correctly, that parm should be a handle to a top-level window you create yourself that receives messages from the app. Also, you'll need to be running a message

Re: [python-win32] Need help creating a wheel of pywin32

2014-03-02 Thread Roger Upole
Can you try building from a Mercurial checkout ? Looks like some files aren't being included in the source dist download. Appears that our Manifest.in needs to be updated, as there are also a few other things missing. Roger "Vye" wrote in message news:cabyyas+du_icyjfzet0dfk0t2hzwayhc_ndwk

Re: [python-win32] Removing inheritance

2014-01-17 Thread Roger Upole
You can call win32security.SetNamedSecurityInfo with PROTECTED_DACL_SECURITY_INFORMATION to prevent inheritance. Roger "Joseph L. Casale" wrote in message news:cc848ab27fe14b629765c07002547...@exch.activenetwerx.com... > How does one accomplish the effect of the SetAccessRuleProtection cal

Re: [python-win32] Setting ownership and permissions

2013-12-31 Thread Roger Upole
You should be able to just adjust privs once, instead of doing it in each call for every file. Roger "Joseph L. Casale" wrote in message news:assp.006455fdda.50f65708cf40439eba7f2abd9c2d8...@exch.activenetwerx.com... >I have a situation where I need to remove large directories and in doing

Re: [python-win32] Canonical ordering of an ACL

2013-12-31 Thread Roger Upole
See function _ReorderACL in PyACL.cpp: http://pywin32.hg.sourceforge.net/hgweb/pywin32/pywin32/file/90d1d37b2444/win32/src/PyACL.cpp Roger "Joseph L. Casale" wrote in message news:assp.0077d9e4c1.e9def4441d094aa091d586758fbd3...@exch.activenetwerx.com... >I can't seem to find any info on t

Re: [python-win32] Missing memory de/allocation in com server causes APPCRASH?

2013-12-12 Thread Roger Upole
I'm guessing you have a 32/64 bit problem, as most XP installs are 32-bit. I'd take a closer look at hServer, since handles are pointer-sized (4 bytes on 32 bit and 8 bytes on x64). Roger "Wedel, Jan" wrote in message news:47ee7f193edc7e468e74bb0acfb17929011692c...@ex10mbox1b.hosting.inetse

Re: [python-win32] Python 3 --> Can't pickle

2013-04-18 Thread Roger Upole
The pickle module is looking at the name of the class, and verifying that there's a module.class that matches. However, our subclass of datetime.datetime is registered in pywintypes' dict as TimeType instead. As a workaround, try pywintypes.datetime = pywintypes.TimeType Roger "Vernon D.

Re: [python-win32] survey question: should data from database columns of type "adGUID" be returned as instances of class "uuid"?

2013-04-15 Thread Roger Upole
-- > Vernon > > > On Mon, Apr 15, 2013 at 10:04 AM, Roger Upole wrote: > >> I think the uuid module was introduced in python 2.5, might want to bear >> that in mind. >> >> Roger >> >> "Vernon D. Cole" wrote in message >> new

Re: [python-win32] survey question: should data from database columns of type "adGUID" be returned as instances of class "uuid"?

2013-04-15 Thread Roger Upole
I think the uuid module was introduced in python 2.5, might want to bear that in mind. Roger "Vernon D. Cole" wrote in message news:CAH-ZgAeC9D+=1uybyjrztdob6bedjs8ayehrmqp-iyfwonm...@mail.gmail.com... >I am doing a major update to adodbapi, and have an ideal opportunity to add > a new fea

Re: [python-win32] Dropping support for Python 2.3?

2013-03-27 Thread Roger Upole
Python 2.4 is VS.Net 2003 (aka VC7). If we can drop support for Windows 95/98/ME while we're at it, it would eliminate some more maintenance headaches. At this point in time, even dropping Windows NT isn't unreasonable. Roger "Mark Hammond" wrote in message news:5151967f.3020...@gmail.com.

Re: [python-win32] win32com.client.gencache.EnsureModule works but win32com.client.Dispatch does not for a certain TypeLib

2013-03-27 Thread Roger Upole
You'll need to use 32-bit python to be able to load a 32-bit COM object directly. Roger "Costis Hatzopoulos" wrote in message news:CAMFgko=J+TwSr1QfQqZE4YhRVt5-=r-qtn=-ijf_ddhpcxz...@mail.gmail.com... > Hello, > > I have updated to the latest version of python-win32 on Windows 7 64bit, >

Re: [python-win32] Dropping support for Python 2.3?

2013-03-26 Thread Roger Upole
I'm wholeheartedly in favor of dropping it. Changes in the Python's C api since 2.3 are a major pain when building extension modules. Also, the compiler it's built with (VC6) has many incompatibilities with the newer versions of Visual Studio. Roger

Re: [python-win32] (only in Python 3) decimal.Decimal cannot beconverted to a COM VARIENT

2013-03-25 Thread Roger Upole
Looks like it's due to way the type is name-checked (oleargs.cpp, line 263): else if (strcmp(obj->ob_type->tp_name, "Decimal")==0) That doesn't work in 3.3 anymore. However, the function it calls to do the actual conversion has already been modified to use an isinstance check instead so it shoul

Re: [python-win32] win32gui.EnumWindows does not work on workerthreads

2013-02-06 Thread Roger Upole
What version of Pywin32 are you running ? There was a recent change to fix a problem with win32gui.EnumWindows in build 218. Roger "Radu Savutiu" wrote in message news:cabjn2yikltakugglr7fmh2gbc7vu+ohf_gac8kp3iywnw3y...@mail.gmail.com... >I appreciate answers received, however none worke

Re: [python-win32] Context menu for library

2012-11-16 Thread Roger Upole
You should be able to get the context menu by creating a shell item for the library file (using eg shell.SHCreateShellItem), and then call BindToHandler using BHID_SFUIObject and IID_IContextMenu. That should result in an IContextMenu object, from which you can fill in a menu handle using QueryCont

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-10 Thread Roger Upole
raf wrote: > Roger Upole wrote: > >> raf wrote: >> >> > so my questions are: >> > did the sid for the account name ever uniquely identify the user? >> >> Yes. In fact it's the only way, since you can change the login name of an >> a

Re: [python-win32] HKLM\SOFTWARE\...\ProfileList\... registry subkeyquery

2012-09-06 Thread Roger Upole
raf wrote: > so my questions are: > did the sid for the account name ever uniquely identify the user? Yes. In fact it's the only way, since you can change the login name of an account. > how do i obtain the "1009" that needs to be appended to the sid > to complete it? win32security.LookupAccou

Re: [python-win32] Example code for SHOpenFolderAndSelectItems?

2012-09-04 Thread Roger Upole
Scott Nelson wrote: > Greetings... > > Would anyone happen to have some sample code of how to use > SHOpenFolderAndSelectItems? I've been tinkering with it and haven't got > anything to work yet. This is the closest I've got: > from win32com.shell import shell shell.SHOpenFolderAndSele

Re: [python-win32] Running makepy without a typelib

2012-08-30 Thread Roger Upole
Dudley Carr wrote: > The COM object I'm trying to access via Python has a CLSID and a ProgID > registered, but no typelib as far as I can tell. Is it possible to use > makepy without having a typelib? Having looked at makepy.py that doesn't > seem to be the case. > > Thanks, > Dudley Makepy does r

Re: [python-win32] Power management functions in pywin32?

2012-08-08 Thread Roger Upole
Radek Holý wrote: > Hello, > > are somewhere in pywin32 library implemented these functions: > http://msdn.microsoft.com/en-us/library/windows/desktop/aa373163%28v=vs.85%29.aspx > ? Most of these are not in Pywin32, except for GetPwrCapabilities. > If not, can you please advise how to use for ex

Re: [python-win32] creating disk image

2012-08-04 Thread Roger Upole
There's a FileStream class in \win32com\server\util.py that creates an IStream connected to a file. If you still need SHCreateStreamOnFileEx, put in a feature request on Sourceforge, and I'll try to get that function added to win32com.shell. Roger __

Re: [python-win32] Modules installed in the Windows registry

2012-07-28 Thread Roger Upole
Amaury Forgeot d'Arc wrote: > Hello, > > You probably know that Python3.3 has a completely new implementation > of the import system: > http://docs.python.org/dev/whatsnew/3.3.html#using-importlib-as-the-implementation-of-import > (yes, import is now written in Python!) > > But there is a missing f

Re: [python-win32] Need data type identifiers

2012-07-21 Thread Roger Upole
The first number is a combination of VARENUM values (pythoncom.VT_*) indicating the type, and the second is from PARAMFLAGS (pythoncom.PARAMFLAG_*). (24584, 3) is (VT_ARRAY|VT_BYREF|VT_BSTR, PARAMFLAG_FIN|PARAMFLAG_FOUT) (24588, 3) is (VT_ARRAY|VT_BYREF|VT_VARIANT, PARAMFLAG_FIN|PARAMFLAG_FOUT)

Re: [python-win32] Does pywin32 support SD card operation(IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL)?

2012-07-16 Thread Roger Upole
That one isn't in winioctlcon.py yet, but you should be able to define it relatively easily. According to the headers: #define IOCTL_SFFDISK_QUERY_DEVICE_PROTOCOL \ CTL_CODE( FILE_DEVICE_DISK, 0x7a0, METHOD_BUFFERED, FILE_ANY_ACCESS) You'll probably need to create the output buffer

Re: [python-win32] How to find the current/last system state from Python

2012-07-05 Thread Roger Upole
"prashant padaganur" wrote in message news:CAFypNu8RuhnRAQXWu5GtFZkuje1Dj-=cnrun7an+uuhjvdo...@mail.gmail.com... >I want to write an application that puts the system in to different sleep > states. Like S0,S1...S4. > > Before changing from one state to another I want to know the > current/previo

Re: [python-win32] How to find the current/last system state from Python

2012-07-05 Thread Roger Upole
"prashant padaganur" wrote in message news:CAFypNu8RuhnRAQXWu5GtFZkuje1Dj-=cnrun7an+uuhjvdo...@mail.gmail.com... >I want to write an application that puts the system in to different sleep > states. Like S0,S1...S4. > > Before changing from one state to another I want to know the > current/previou

Re: [python-win32] pywintypes assert sys.modules[modname] is old_mod

2012-06-29 Thread Roger Upole
Jim Carroll wrote: >> Look for duplicate versions of pywintypes27.dll or pythoncom27.dll, >> most likely in the python installation and your System32 directory. > > Could pywintypes27.dll be colliding with pywintypes26.dll? > I just tried moving everything to Python 2.7, > and disabling python 2.6,

Re: [python-win32] pywintypes assert sys.modules[modname] is old_mod

2012-06-28 Thread Roger Upole
Jim Carroll wrote: > I'm running django1.2.4 against mssql, using sqlserver_ado,and pywin32 v214 > and it runs for a few hours, then starts failing with: > > > File "C:\\Python27\\lib\\site-packages\\django_mssql-1.0.0.dev_unknown- > py2.7.egg\\sqlserver_ado\\dbapi.py", line 41, inimport python

Re: [python-win32] Trouble With Events in Inventor

2012-06-25 Thread Roger Upole
If you're running the script from python.exe, you'll need to run a message loop (pythoncom.PumpMessages()) to receive events. You don't need that in Pythonwin since it runs its own message loop. Also, are you sure the event class should be attached to the button itself ? I'm not familiar with thi

Re: [python-win32] BCD WMI modification via pywin32 without effect

2012-06-15 Thread Roger Upole
Looks like the parameters to SetIntegerElement are reversed: >>> objWBM.Methods_('SetIntegerElement').InParameters.Properties_[0].Name 'Integer' >>> objWBM.Methods_('SetIntegerElement').InParameters.Properties_[1].Name 'Type' If I switch the call to success, = call(objWBM, "SetIntegerElement", 5,

Re: [python-win32] win32evtlog - Event Log parsing issue

2012-05-03 Thread Roger Upole
with that API, but the crash is because >> EvtOpenLog is returning a handle with a value of 1 and ReadEventLog is >> crashing with that handle. A quick google doesn't find anyone trying to >> use ReadEventLog with a handle returned by EvtOpenLog but instead uses >> EvtGetL

Re: [python-win32] Bug in pywin32 PyIADs?

2012-04-22 Thread Roger Upole
"Tim Golden" wrote in message news:4f944314.4030...@timgolden.me.uk... > Could someone glance at this to confirm that it does indeed > seem to be a bug before I start hunting up the chain of > function calls to spot the issue, please? > > Steps are simple: > > 1) Use Python 3.2 and pywin32 217 >

Re: [python-win32] Another minor irritant.

2012-04-08 Thread Roger Upole
"bob gailer" wrote in message news:4f7f47c9.7030...@gmail.com... > In the watch window ctrl-x,c,v do not work (for cut copy and paste). I > must use the context menu. The API doesn't supply any way to change how the Edit control is created. Looks like we're just going to have to live with this

Re: [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-08 Thread Roger Upole
"bob gailer" wrote in message news:4f7f0cf8.7010...@gmail.com... >I open a .py file, work away and all is OK. > I drag the vertical divider to show the object treeview. > I type some text then a period and get: > > >>> Firing event 'KeyDot' failed. > Traceback (most recent call last): > File >

Re: [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 Roger Upole
Looks like this is due to some of the changes to support Python 3. As I recall, it was difficult to get the inheritance from pywin.mfc.object.Object to work properly for both Python 2 and 3. The autocomplete code is doing some introspection, so the attribute lookup gets even more complicated. I'l

Re: [python-win32] Editor find and replace can't count - off by oneerror

2012-02-11 Thread Roger Upole
Mark Lawrence wrote: > Hi all, > > I assume that this is a long time known problem that is regarded as a joke > but when I do a find and replace the number of items > reported as replaced is always one less than it should be. Fix and/or > workaround pretty please. > > -- > Cheers. > > Mark Law

Re: [python-win32] py2.7 and multiple DDE servers on Win32, possible?

2011-06-13 Thread Roger Upole
Compiling with VC 2008 Express is going to be a problem. The free compiler doesn't seem to support using the atl/mfc headers and libraries. Roger ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] py2.7 and multiple DDE servers on Win32, possible?

2011-06-11 Thread Roger Upole
If you can build the dde module yourself, reenabling multiple servers for 32-bit is just a matter of uncommenting // #define _CALLHACK_ in stddde.cpp. Roger ___ python-win32 mailing list python-win32

Re: [python-win32] Strange error withwin32security.AdjustTokenPrivileges

2011-04-14 Thread Roger Upole
In the call to OpenProcessToken, you'll need to specify TOKEN_QUERY also. Roger "Gremlin" wrote in message news:7C1FF6262D1C41509DEDE93ABBA01CFC@BELLO... > Hello. > > > > I want to adapt the following technique into python: > http://blogs.msdn.com/b/aaron_margosis/archive/2009/06/06/faq-ho

Re: [python-win32] Problem using win32com.client.Dispatch on Win764bit

2011-04-10 Thread Roger Upole
"Misy" wrote in message news:loom.20110411t043551-...@post.gmane.org... > Roger Upole hotmail.com> writes: >> >> You may be able to create an out of process proxy for your 32-bit app. >> >From Administrative Tools->Component Services, navigate to >

Re: [python-win32] Problem using win32com.client.Dispatch on Win764bit

2011-04-09 Thread Roger Upole
Misy wrote: > Mark Hammond gmail.com> writes: > >> >> 64bit processes can't use 32bit COM objects (at least not in-proc - not >> sure about external) and I guess your COM object is 32 bit. >> >> The easiest answer is probably just to install the 32bit Python and >> 32bit pywin32 extensions - you

Re: [python-win32] GetScrollInfo and SetScrollInfo method signatures?

2011-03-14 Thread Roger Upole
"Greg Ewing" wrote in message news:4d7db564.8090...@canterbury.ac.nz... > According to the pywin32 docs, PyCWnd.GetScrollInfo and > PyCWnd.SetScrollInfo have the following signatures: > >int = GetScrollInfo(nBar, mask) >int = SetScrollInfo(nBar, redraw) > > Surely these can't be right? S

Re: [python-win32] Missing adsi.pyd, pwin32-216

2011-03-11 Thread Roger Upole
"Roger Upole" wrote in message news:ilbjrn$f6k$1...@dough.gmane.org... > > "Tim Golden" wrote in message > news:4d78b66d.9080...@timgolden.me.uk... >> On 10/03/2011 11:29, Tim Golden wrote: >>> On 09/03/2011 16:40, Graham Bloice wrote: >>>

Re: [python-win32] Conversion to Mercurial is done

2011-03-11 Thread Roger Upole
"Vernon Cole" wrote in message news:aanlktingkzzut4kpzjuqa5drt2ijiys50pqtc6wa6...@mail.gmail.com... > Working fine here. Here's a sample for anyone who has not tried sourceforge > hg before. > I have PuTTY loaded on this machine, and already have my ssh keys set up on > sourceforge -- just like

Re: [python-win32] Missing adsi.pyd, pwin32-216

2011-03-10 Thread Roger Upole
and 64 bit variants and it's missing from both. >> >> Roger Upole can obviously speak for himself, but in a email >> conversation I had with him a while back, he said that they hadn't >> been able to build it because of an issue with the version >> of SWIG

Re: [python-win32] Repost: Classic ASP in IIS with Python -500 ServerError

2011-03-07 Thread Roger Upole
jdm...@comcast.net wrote > Now what? Is there a log or something that would get created if python were > ever invoked by ASP? Open Pythonwin and select Tools->Trace collector debugging tool This will show a window that displays any debug output. Roger _

Re: [python-win32] Repost: Classic ASP in IIS with Python - 500 ServerError

2011-03-06 Thread Roger Upole
"Roger Upole" wrote in message news:... > J.D. Main wrote: >> (repost of previous message apparently HTML'd by my mailer...sorry) >> >> Hello, >> I have been hunting for a solution to this one for some time. I've >> already tried all the e

Re: [python-win32] Fonts behaving differently - The plot thickensa bit

2011-03-06 Thread Roger Upole
"Greg Ewing" wrote in message news:4d7401e6.2070...@canterbury.ac.nz... > Roger Upole wrote: > >> The conversion in win32ui has changed since 212. At one time it >> was negating the height that was passed in: >> >> if (PyInt_Check (v)) >>

Re: [python-win32] Repost: Classic ASP in IIS with Python - 500 ServerError

2011-03-06 Thread Roger Upole
J.D. Main wrote: > (repost of previous message apparently HTML'd by my mailer...sorry) > > Hello, > I have been hunting for a solution to this one for some time. I've > already tried all the easy stuff. I have IIS 5 on a WinXP Pro machine. > I recently posted this to the Python WEB sig - apparent

Re: [python-win32] Fonts behaving differently - The plot thickens a bit

2011-03-06 Thread Roger Upole
Mark Hammond wrote: news:4d731ec1.4060...@gmail.com... > On 6/03/2011 3:07 PM, Greg Ewing wrote: >> I think I've narrowed down what's going on with the font >> sizes a bit more. It has to do with the interperetation >> of the nHeight parameter to CreateFont. >> >> It appears that you can specify

Re: [python-win32] Problem with win32print.SetPrinter

2011-03-01 Thread Roger Upole
"Tefnet Developers" wrote in message news:1298974742.7642.1.camel@cacko... > Dnia 2011-02-28, pon o godzinie 19:11 -0500, Roger Upole pisze: >> I think this is dependent on the printer driver. >> Some use the paper size defined by the the form, >> and others us

Re: [python-win32] Problem with win32print.SetPrinter

2011-02-28 Thread Roger Upole
I think this is dependent on the printer driver. Some use the paper size defined by the the form, and others use the PaperSize member. Roger "Tefnet Developers" wrote in message news:129553.2645.29.camel@cacko... > Hi, > > I am adding some printers connection as a user with > win32pri

Re: [python-win32] attaching an event handler to alreadycreated object

2011-01-31 Thread Roger Upole
Many OCX controls require a full activex container to function correctly. Pythonwin can act as a host, or you could embed your control in IE with an tag and access it thru IE's COM interfaces. Roger "Patricio Stegmann" wrote in message news:snt128-w10372245b8a4d462238f49d9...@phx.gb

Re: [python-win32] attaching an event handler to alreadycreated object

2011-01-30 Thread Roger Upole
Try replacing self.m__signpad = TopazSigPlus.SigPlus() with self.m__signpad = win32com.client.DispatchWithEvents(TopazSigPlus.SigPlus(), MyEvents) Roger Patricio Eduardo Stegmann wrote: > Hi Roger, > > could you please be a bit more specific ? > > > - Original message - >> You c

Re: [python-win32] attaching an event handler to already created object

2011-01-30 Thread Roger Upole
You can pass an existing IDispatch object to DispatchWithEvents as the first arg in place of a clsid. Roger ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to use win32file.TransmitFile with nonblockingsockets?

2011-01-28 Thread Roger Upole
mmediately. "wait for an async operation to complete" sounds kinda wrong to me. --- Giampaolo http://code.google.com/p/pyftpdlib/ http://code.google.com/p/psutil/ 2011/1/28 Roger Upole : > Giampaolo Rodolà wrote: >> Hi all, >> I'm trying to take advantage of Tra

Re: [python-win32] How to use win32file.TransmitFile with non blockingsockets?

2011-01-28 Thread Roger Upole
Giampaolo Rodolà wrote: > Hi all, > I'm trying to take advantage of TransmitFile function in pyftpdlib: > http://code.google.com/p/pyftpdlib/issues/detail?id=152 > > I've noticed pywin32 provides a wrapper: > http://sourceforge.net/tracker/index.php?func=detail&aid=1962146&group_id=78018&atid=55195

Re: [python-win32] Fetching Battery Monitor Data

2011-01-18 Thread Roger Upole
"FT" wrote in message news:2B602B53D89E450ABF2B9DA00081CE1B@1B1B1L1... > > Hi Mark, > >I could not find using Google any information on how to get the Laptop > Battery Level information so I could have my Screen Reader Or voices from > Sapi to talk the information. >So, I would need th

Re: [python-win32] Passing parameters to FoxPro COM methods

2011-01-16 Thread Roger Upole
Dynamic objects have a _make_method method that you can use to ensure that it will be called with parameters. Roger "Richard Lawrence" wrote in message news:AANLkTi=5d1egw5dxru-bu_-ioka4nqvsnx-fotw_v...@mail.gmail.com... Dear Pythonistas, I still haven't figured out a way around this

Re: [python-win32] set mouse pointer to custom image?

2011-01-16 Thread Roger Upole
There's an accessibility option built into Windows to do something like this. Look under Control Panel->Mouse->Options, and you should see an option to highlight the mouse cursor when the CTRL key is pressed. Roger "Alex Hall" wrote in message news:AANLkTi=y0mX86gcR67Ot=szzdjq1mfhvuzx-+x

Re: [python-win32] Boolean type changed in Python 3.0?

2011-01-16 Thread Roger Upole
A fix has been committed to the code base, but there hasn't been a release in the meantime. If you can build from source, check out the current CVS and make sure it solves your issue. Roger "Tom" wrote in message news:loom.20110115t161528-...@post.gmane.org... >I have the same problems and

Re: [python-win32] get file tags in windows7 vista

2010-12-12 Thread Roger Upole
nonino wrote: > > Ok, Lets start from the beginning: > I am doing a PhD in information science. As part of my study I am studying > the use of folders vs. tags. starting from windows vista there is an > option > in windows to add tags to office files photos and other file formats. In > the > firs

Re: [python-win32] Running GUI apps from a python/IIS web application

2010-12-01 Thread Roger Upole
You might be able to use win32service.CreateDesktop to give the program a desktop to work with. Roger Randy Syring wrote: >I have been tasked with integrating an command line program (.exe) with a >python web application. The program is intended to be run by a normal user >and therefore p

Re: [python-win32] PyGUI blobedit creashes with pywin32-214 but not 212 - traceback - related problems

2010-10-21 Thread Roger Upole
Greg Ewing wrote: > Roger Upole wrote: > >> You instantiate the MFC view object without a document, but in order >> to actually create a window and do anything useful with it, it needs >> a valid document. > > Are you absolutely sure about that? > > At the MFC

Re: [python-win32] PyGUI blobedit creashes with pywin32-214 but not 212 - traceback - related problems

2010-10-20 Thread Roger Upole
"Greg Ewing" wrote in message news:4cbfa5e9.7090...@canterbury.ac.nz... > On 21/10/10 14:02, Roger Upole wrote: > >> The problem stems from these 2 lines in ScrollableViews.py: >> >> rev = ui.CreateRichEditView() >> win_dummy_doc = rev.GetDocument() >&

Re: [python-win32] PyGUI blobedit creashes with pywin32-214 but not 212 - traceback - related problems

2010-10-20 Thread Roger Upole
"Robert" wrote in message news:i9kmoi$cl...@dough.gmane.org... > A) > > What could be the cause for this exception of PyGUI with > pywin32-build214 - but not with build 212 :? > > Traceback (most recent call last): > File "blobedit.py", line 131, in > BlobApp().run() > File "C:\Python2

Re: [python-win32] Python DDE and multiple DDE servers?

2010-10-04 Thread Roger Upole
RJ wrote: >I need to run both a Python DDE server and Python DDE client on the > same machine (separate programs). Is there a reason why when I > Create() the client: > server.Create("PyVibeSurvey") > I get: > dde.error: The server could not be created > for the client program? > When the same cl

Re: [python-win32] Question on parsing Reparse Points

2010-10-04 Thread Roger Upole
pbx wrote: > > hello, there seems to be something wrong with this, > target always seems to be prepended with some data like ?\\? before the > expected string (e.g. C:\Users\...) starts. The '\??\' prefix is normal. That's the designator for a raw path, and is required when creating a reparse p

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

2010-06-22 Thread Roger Upole
Vernon Cole wrote: I ran into the same problem using adodbapi. I tracked it down to the COM call which errored out, and decided that maybe it was a Microsoft problem and ignored it, just leaving the application broken on that feature. If pyODBC can do it, then the problem must be in the COM rout

[python-win32] problems with win32comext\taskscheduler on windows

2010-05-03 Thread Roger Upole
Does job.GetTriggerCount() return 1 ? If it does, but the trigger doesn't appear in the Task Scheduler UI, most likely there's something it doesn't like about the trigger's flags. Roger ___ python-win32 mailing list python-win32@python.org http://

[python-win32] finding pythonXX.dll?

2010-05-03 Thread Roger Upole
Bill Janssen wrote: Is there anyway to tell, from inside Python, where the python26.dll file is? I've got to install the win32 dlls in the same directory. I see that sys contains a symbol "dllhandle", but that's just a numeric handle. Bill win32api.GetModuleFileName(sys.dllhandle) Ro

Re: [python-win32] knowing "file accessed" and "file opened"

2010-02-27 Thread Roger Upole
OptiCar wrote: Hello, i need to know when an updated file has been opened. is it possible to watch the "OPEN" and "ACCESS" event with an adaptation of the Tim Golden's script ? need to work on windows, does pywin32 can ? inotify is only for linux dazuko can catch on linux what can work on windows

[python-win32] Boolean type changed in Python 3.0?

2010-01-06 Thread Roger Upole
From looking at the source of PyCom_VariantFromPyObject in oleargs.cpp, the check for a boolean is done after the check for an int. PyLong_Check is used to determine if the object should be converted to one of the variant integer types. Apparently in Python 3.x, this now returns True for a boo

Re: [python-win32] ANN: PyGUI 2.0.5

2009-11-16 Thread Roger Upole
Greg Ewing wrote: Randy Syring wrote: I am still seeing the bug noted below in 2.1. Do you have plans to tackle it? > win32ui.error: The object has been destroyed. Reportedly it can be worked around by reverting to build 212 of pywin32. I haven't had a chance to investigate what's causing

[python-win32] Calling random Windows function?

2009-10-25 Thread Roger Upole
Aahz wrote: On Fri, Oct 23, 2009, Tim Roberts wrote: Aahz wrote: Perhaps it would be better to think more strategically. I don't actually care about the list of open files. What I care about is a list of files that I want to process and checking whether any of them are open. What would be

[python-win32] faster way to get printer status?

2009-08-06 Thread Roger Upole
You should be able to get the "Work Offline" status using win32print.GetPrinter with level 2. The returned Attributes will contain PRINTER_ATTRIBUTE_WORK_OFFLINE Roger ___ python-win32 mailing list python-win32@python.org http://mail.python.org/ma

[python-win32] Trying to grab exe of foreground window

2009-07-22 Thread Roger Upole
Window() t,p = win32process.GetWindowThreadProcessId(name) handle = win32api.OpenProcess(1,False,p) sleep(1) whee = win32process.EnumProcessModules(handle) nama = win32process.GetModuleFileNameEx(whee, 0) print nama Thanks! Roger Upole wrote: A sequence like this should get

[python-win32] Trying to grab exe of foreground window

2009-07-20 Thread Roger Upole
A sequence like this should get you there. win32gui.GetForegroundWindow win32process.GetWindowThreadProcessId win32api.OpenProcess win32process.EnumProcessModules win32process.GetModuleFileNameEx hth Roger ___ python-win32 mailing list pyth

[python-win32] Examples of Win32Inet use

2009-07-07 Thread Roger Upole
The handle returned by InternetOpen isn't compatible with the WinHttp* functions. Try using win32inet.WinHttpOpen instead. Roger ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] win32file.CreateSymbolicLink and

2009-06-17 Thread Roger Upole
Devin Jeanpierre wrote: I'm new to pywin32 development, but wanted to toy with creating symlinks (and related new things) with a similar API to the current os module. The documentation in pywin32 states that the only flag is "SYMLINK_FLAG_DIRECTORY" (MSDN docs state that in the C++ API, the only

[python-win32] regarding invoking command prompt using python

2009-06-17 Thread Roger Upole
Vernon Cole wrote: Tim: Okay, explain this... C:\BZR\sterling\HL7>c:\python26\python.exe Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. import os os.putenv('x','test') print os.getenv

[python-win32] Re: CreateURLMonikerEx and Win2000

2009-05-22 Thread Roger Upole
According to MSDN, it was added in IE 5.5. Roger ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Re: adodbapi and stored procedure output parameters on

2009-05-22 Thread Roger Upole
Randy Syring wrote: I found this post: http://bytes.com/groups/python/38259-sql-server-stored-prcedures-output-parameters which was helpful in getting me started. However, that method does not yield the output parameters if a recordset is output in the SP. So, if my SP is: CREATE PROCEDUR

[python-win32] Re: CreateURLMonikerEx and Win2000

2009-05-22 Thread Roger Upole
le dahut wrote: Hello, On Windows 2000 SP4, since pywin32-213 I get an error : "CreateURLMonikerEx could not be located" on a program that ran fine with pywin32-212. What's happening ? K. On machines with older versions of IE, this function may not be present in urlmon.dll. This has been

[python-win32] problem getting printer status in Windows

2009-04-21 Thread Roger Upole
Just to clarify, the code is asking for job status rather than printer status. According to the docs: http://msdn.microsoft.com/en-us/library/dd145019(VS.85).aspx the status can be returned either as a string in the pStatus member, or as an int in Status. You'll probably need to change the JOB_

[python-win32] Re: Excel -- Range() not working

2009-04-02 Thread Roger Upole
Gerald Reeder wrote: Hello, I'm trying to get values from a non-contiguous range, specifically "E5:E10,E35" Range("E5:E10,E35").Value -- only returns the values for "E5:E10", ignoring "E35" Range("E5:E10,E35").Address -- however returns "E5:E10,E35" Range("E5:E10,E35").Count -- returns 7, whi

[python-win32] Re: Question on parsing Reparse Points

2009-03-20 Thread Roger Upole
The only way I know of is to call win32file.DeviceIoControl with FSCTL_GET_REPARSE_POINT, and unpack the buffer yourself. Roger import win32con, winioctlcon, winnt, win32file import struct def get_reparse_target(fname): h = win32file.CreateFile(fname, 0, win32con

[python-win32] Re: COM server accessible via "GetObject"

2009-03-07 Thread Roger Upole
pythoncom.RegisterActiveObject inserts an object into the ROT. Roger ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

[python-win32] Re: LsaLogonUser in win32security?

2009-03-06 Thread Roger Upole
Aditya Jayraman wrote: I was wondering if the pywin32 package implements the LsaLogonUser() method (not to be confused with the LogonUser() method) I looked through the win32security module and could not find it. Thanks --Aditya Nope, it's not there yet. I have a partial implementation local

[python-win32] Re: OnCtlColor not working?

2009-03-01 Thread Roger Upole
According to this discussion http://forums.devx.com/archive/index.php/t-81725.html the only way to change a pushbutton's colour is to draw it yourself. Roger ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/lis

[python-win32] Re: OnCtlColor not working?

2009-03-01 Thread Roger Upole
Greg Ewing wrote: Has anyone successfully used the PyCWnd.OnCtlColor virtual function to change the appearance of a control? The program below tries to use it to set the colour of the text in a PyCButton. My OnCtlColor method gets called, but it doesn't have any effect on the appearance of the b

[python-win32] Unexpected feature in win32security?

2009-02-03 Thread Roger Upole
Tim Golden wrote: I *think* this is a bug (or at least an unfortunate effect) but I'll post here first for a sanity check. I'm looking at Windows security: descriptors, ACLs, etc. The conventional wisdom is that a DACL (or an SACL but less commonly) can be one of three things within a security d

[python-win32] no array returned in output parameter

2008-12-16 Thread Roger Upole
Mark Hammond wrote: On 17/12/2008 12:30 AM, Roger Upole wrote: Enric Jaen wrote: It's the library of the Xcalibur, a propietary program used in proteomics. to read spectra. They provide an API, and VB examples to access it. The problem is happening with those methods that return and

[python-win32] Re: no array returned in output parameter

2008-12-16 Thread Roger Upole
Enric Jaen wrote: It's the library of the Xcalibur, a propietary program used in proteomics. to read spectra. They provide an API, and VB examples to access it. The problem is happening with those methods that return and array, as the others work fine. I am using defaultNamedNotOptArg= py

[python-win32] Re: Calling ShellIconOverlayHandlers does not work

2008-11-12 Thread Roger Upole
Thomas Lohse wrote: Hello, could anyone provide some assistance in using ShellIconOverlay-Handlers with pythoncom. I implement a kind of file explorer and would like to call the ShellIconOverlay-Handlers (registered by TortoiseSVN) of the windows explorer to visualize SVN-states. (I'm NOT about

  1   2   3   4   >