Re: [python-win32] mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread Tim Roberts
st paste it into Notepad and save it as a .txt file. Or, cut-and-paste it into the email. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] mod_python compilation error in VS 2008 for py2.7.1

2016-06-14 Thread Tim Roberts
ur problem is to delete that line from unistd.h. Alternatively, you could had YY_NO_UNISTD_H to the compiler symbols, and have that file totally skipped. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Track-session-events

2016-06-09 Thread Tim Roberts
tion. > I'm confused. What do you want to know? The code you posted is from a Windows service, which gets launched when the machine boots up and continues to run until the power turns off. That's the only way you can catch logoffs and session changes. Are you writing a service? -- Tim Ro

Re: [python-win32] AutoCAD attribute issue

2016-05-23 Thread Tim Roberts
4.py", line 3, in acad = win32com.client.Dispatch("__**AutoCAD.Application”) So where did the __** come from? Those are, indeed, invalid characters in a COM CLSID name. — Tim Roberts, t...@probo.com<mailto:t...@probo.com> Providenza & Boekelheide, Inc. _

Re: [python-win32] Potential problem with calling Invoke

2016-04-13 Thread Tim Roberts
And if they DO help, well now you have something to contribute to the community. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Potential problem with calling Invoke

2016-04-11 Thread Tim Roberts
but that's so fundamental to IDispatch operation that I don't know the implications of changing the order. In the short term, I suspect you could work around this in an ugly way: cmd = DOpus.Create().Command() cmd._olerepr_.defaultDispatchName = None comm = cmd.CommandList('u') -- Tim

Re: [python-win32] Python Urrgent question

2016-03-28 Thread Tim Roberts
d to happen, and what actually did happen. You did not say that here. Because we do not have your app, we can't run your sample. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org ht

Re: [python-win32] C/C++ COM client calling Python COM server

2016-03-21 Thread Tim Roberts
mes back in vRet. The type will probably have vRet.vt == VT_I4, and the value is in V_I4(). This is why most people don't use late-binding IDispatch objects from C++. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 ma

Re: [python-win32] Python 2.7.11 on Windows Server 2012 R2 standard - Error message "DLL load failed: %1 is not a valid Win32 application" after IMPORT WIN32SERVICE

2016-03-20 Thread Tim Roberts
on. Unlike the 16/32 transition, 64-bit Windows simply does not have the ability to mix 32-bit and 64-bit libraries in a single process. It is for this reason that I still tend to choose 32-bit Python. — Tim Roberts, t...@probo.com<mailto:t...@probo.com> Providenza & Boekelheide, Inc. __

Re: [python-win32] pywintypes.com_error: (-2147467259, 'Unspecified error', None, None)

2016-03-08 Thread Tim Roberts
x80004005, which for MAPI is MAPI_E_CALL_FAILED. Very generic. Have you run gentypes.py on Outlook? Perhaps you should try to generate a static proxy: ol = win32com.client.gencache.EnsureDispatch("Outlook.Application") -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc

Re: [python-win32] equivalent selenium findElement(By.xpath...) with win32com

2016-03-07 Thread Tim Roberts
> under this level. idem with "children" property. You still haven't shown us any of your code. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Error in word with AddTextbox

2016-02-23 Thread Tim Roberts
OrientationHorizontal > left = 100 > top = 100 > width = 200 > height=100 > document.Shapes.AddTextbox(orientation, left, top, width, height) The documentation for AddTextBox would have explained this. You need to use msoTextOrientationHorizontal, not wdTextOrientationHorizont

Re: [python-win32] equivalent selenium findElement(By.xpath...) with win32com

2016-02-22 Thread Tim Roberts
us the code you have? The Internet Explorer COM object surface is very large, so we don't want to waste time explaining what you already know. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list pyth

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

2016-02-19 Thread Tim Roberts
king. When you have a lot of COM interfaces, each with a few methods, you end up doing an awful lot of QueryInterface calls. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Com error invalid class string

2016-02-16 Thread Tim Roberts
I don't know how you can expect anyone to help when you don't show the code. The issue is very clear -- the class string in the call to Dispatch is not a registered class. So, go look up what ID_SETUP_DONGLE is, figure out which DLL is the server for that class, and register it. -- Tim Roberts,

Re: [python-win32] pywintypes Error

2016-02-16 Thread Tim Roberts
e please help me to figure it out? > You have to have the COM server register itself. You didn't post any code, so we can't tell which class it is. Assuming you know which DLL it is, just run "regsvr32 .dll". -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. __

Re: [python-win32] Handling Print Events

2016-02-08 Thread Tim Roberts
sdn.microsoft.com/en-us/library/windows/desktop/dd162861.aspx -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Printer Response

2016-01-31 Thread Tim Roberts
of any kind. You can certainly use win32print.StartDocPrinter, and that does return an identifier, but I don’t know what good that does you. — Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.or

Re: [python-win32] Access Denied

2016-01-23 Thread Tim Roberts
ut going through Outlook. https://msdn.microsoft.com/en-us/library/office/cc839856.aspx — Tim Roberts, t...@probo.com<mailto:t...@probo.com> Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Excel to python COM not working. Please help!

2015-12-28 Thread Tim Roberts
ere did you look in the registry? Remember that, on a 64-bit system, 32-bit components get registered in HKEY_CLASSES_ROOT\Wow6432Node\CLSID, not in HKEY_CLASSES_ROOT\CLSID. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win

Re: [python-win32] drag files with non-ASCII filenames?

2015-12-15 Thread Tim Roberts
ot warranted. No one promised, for example, that a string pasted with "paste" is going to fire kbhit() continuously until empty. > To read it I use: > > file = get_paste() It is unwise to use the name of a built-in type as the name of a variable. -- Tim Roberts, t...@probo.co

Re: [python-win32] drag files with non-ASCII filenames?

2015-12-15 Thread Tim Roberts
Ulli Horlacher wrote: > On Tue 2015-12-15 (11:10), Tim Roberts wrote: > >>> I have a python 2.7 program which runs in a console window and upload >>> files. >>> To specify the files, the user uses Windows drag (via explorer) or >>> copy >&

Re: [python-win32] hoto cast pyobject to ccompnt

2015-11-27 Thread Tim Roberts
efore you can wrap it in a smart pointer. pUnk = (IUnknown*)pyApplication; — Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32com error of 'invalid parameters'

2015-11-19 Thread Tim Roberts
he unhelpful DISP_E_EXCEPTION. It might refer to a pointer or a bad address. The "Invalid Parameters" string suggests you should double-check all of your parameters. -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. ___ python-win32

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

2015-10-08 Thread Tim Roberts
xperience is not as consistent as the desktop version. Too many manufacturer tweaks. Plus, anyone who is running Python on a CE device knows what they are doing and will be able to answer the question without your help. -- Tim Roberts, t...@probo.com Providenza & Boe

Re: [python-win32] Task Scheduler on Windows 7 and pythonw.exe problems

2015-09-22 Thread Tim Roberts
ur scheduled task? Is it running as you? You might consider using the subprocess module to start your netsh commands instead of os.system. os.system is going to want to create a subshell, but processes running in a service (which scheduled tasks do) aren't allowed to interact with the deskt

Re: [python-win32] SAPI COM server

2015-09-08 Thread Tim Roberts
through > SAPI it never even gets called. I tested my class through com client > that I implemented and then it works fine. > Have you selected your engine as the default TTS engine in the Speech applet of Control Panel? -- Tim Roberts, t...@probo.com Providenza & Boekelheide, Inc. _

Re: [python-win32] PythonService.exe Network Service

2015-08-26 Thread Tim Roberts
\username\Documents path, that's almost certainly the issue. Check the file in Explorer to see if it is readable by Everyone. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https

Re: [python-win32] Using WEAP API in Python

2015-08-04 Thread Tim Roberts
Tim Roberts wrote: Are you sure that the app ID is Weap.WeapApplication? Do you know how to troll the registry to verify that? I see in the code samples that this is the correct App ID, so that's not the issue. You might try this from VBScript and see if it works. Create a file called

Re: [python-win32] Using WEAP API in Python

2015-08-04 Thread Tim Roberts
that the app ID is Weap.WeapApplication? Do you know how to troll the registry to verify that? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo

Re: [python-win32] Issues with tkinter, COM servers and Python 3.x

2015-05-19 Thread Tim Roberts
have to think this is a bug in the Python COM interface layer, injecting a value into sys.argv without implementing the Python 3 string changes. I don't see the problem in 5 minutes of perusal, but we should get this on a bug list. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Issues with tkinter, COM servers and Python 3.x

2015-05-18 Thread Tim Roberts
requires screenName, baseName, className, and use to be strings, but only screenName and use are optional. className is not actually used -- the source overrides it. As an experiment, can you change your code to this: tk = Tk( baseName='xxx' ) and see what happens? -- Tim Roberts, t

Re: [python-win32] Issues with tkinter, COM servers and Python 3.x

2015-05-18 Thread Tim Roberts
COMs, I must modify the source codes. It doesn't seem this to be a feasible solution. Is there any other solution? You should be able to modify lib\tkinter\__init.py, and just before the call at line 1851 insert this: if baseName is None: baseName = 'xxx' -- Tim Roberts, t

Re: [python-win32] Issues with tkinter, COM servers and Python 3.x

2015-05-18 Thread Tim Roberts
of baseName to see what it was? I'm wondering if something in the Python COM machinery is faking os.path.basename and didn't get the memo about strings in Python 3. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] Issues with tkinter, COM servers and Python 3.x

2015-05-18 Thread Tim Roberts
how it could get the wrong type. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] I need to make a COM object with py2exe. Please HELP!

2015-05-01 Thread Tim Roberts
graphics objects. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

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

2015-04-22 Thread Tim Roberts
I would have expected. I don't understand why the Intel version of the CRT is getting chosen, and I don't understand why it's failing to link up with it again later. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing

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

2015-04-20 Thread Tim Roberts
search path comes to your folder, the fact that you have provided a manifest means that the system is allowed to find your version of msvcr90. If there is someone else earlier in the search order that also has one, it will find that one instead. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] Win32com Error any suggestions?

2015-04-16 Thread Tim Roberts
to install itself? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] python-win32 Digest, Vol 145, Issue 6

2015-04-16 Thread Tim Roberts
, that should solve the problem. However, EVEN IF it finds the wrong DLL, I don't understand why you would see a failure. If it found msvcr90.dll once, it should be able to find it again and again. That confuses me. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Win32com Error any suggestions?

2015-04-16 Thread Tim Roberts
if this makes a difference. I guess next test would be to try a reinstall of office? No, that's not the issue. The Office apps all run as out of process COM services, which means they run in their own process. Because of that, the 32/64 mismatch doesn't matter. -- Tim Roberts, t...@probo.com

Re: [python-win32] Win32com Error any suggestions?

2015-04-16 Thread Tim Roberts
a scheduled task or a service, are you? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Transfer Access 2010 query results to python script for ArcGIS geoprocessing actions

2015-04-15 Thread Tim Roberts
. However, if Access already has the database open, you can't necessarily open it in another application at the same time. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https

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

2015-04-15 Thread Tim Roberts
manifest? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] howto get the typename of a comobject

2015-03-30 Thread Tim Roberts
GetDocumentation to fetch the object name. That's what VBA is doing behind the scenes. By the way, I can't believe you quoted the original message by grabbing a screen and posting it as an image. That's NOT how you quote a message in a technical forum. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] getting Windows key codes

2015-03-30 Thread Tim Roberts
isn't clear. What key codes and events do you want to grab? Perhaps you should give us a couple of specific scenarios that describe what you want to have happen. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing

Re: [python-win32] I need to make a COM object with py2exe. Please HELP!

2015-03-09 Thread Tim Roberts
useful. The most significant annoying difference is the print function, and you can fix that with a text editor. Occasionally, I'll have an issue with the change in string type to Unicode, but that's about it. The COM stuff still works exactly the same as it did before. -- Tim Roberts, t

Re: [python-win32] I need to make a COM object with py2exe. Please HELP!

2015-02-24 Thread Tim Roberts
, and the registry GUID in specially named class members (_public_methods_, _reg_progid_, _reg_clsid_). I suggest you make the COM part work first. Once you have that working, then you can dig in to py2exe to make it standalone. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] extension modules and msvc version

2015-02-21 Thread Tim Roberts
, there are multiple buffers for “stdin”. Prints from one user will not be seamlessly integrated with prints from the other. — Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman

Re: [python-win32] How pywin tells properties from function in COM?

2015-02-17 Thread Tim Roberts
has methods that start with get_ and/or put_, with one parameter. So, for a property called Size, you would have methods called get_Size and put_Size, each taking one parameter. As you can see, it's a bit squishy. There's no better way to do that in C++. -- Tim Roberts, t...@probo.com

Re: [python-win32] question about word addin , IRibbonExtensibility, GetCustomUI, getImage, IPicture

2015-02-11 Thread Tim Roberts
assume you've been through that thread. From that, you can see that it's not easy. Did you have any success? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org

Re: [python-win32] Implementing an instance of an external/physical .dll file?

2015-01-20 Thread Tim Roberts
, the DLL (or its type library) contains enough information about the parameters and parameter types that the win32com module can automatically generate the Python code to convert between them. This DLL is not a COM server, so you have to do all of that by hand.. — Tim Roberts, t...@probo.com

Re: [python-win32] Storing Passwords.

2015-01-20 Thread Tim Roberts
administration without having to retype the authentication every time. It’s the kind of thing where a Linux user would use ssh with a key forwarding agent. I started to “pooh pooh” the keyring suggestion as well, and as I was typing my reply I realized it was pretty much the right answer. — Tim

Re: [python-win32] Resetting passwords

2015-01-20 Thread Tim Roberts
administrator or local administrator, which already implies a raised level of trust. — Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Implementing an instance of an external/physical .dll file?

2015-01-19 Thread Tim Roberts
-bit Python, you're OK. If you're using 64-bit Python, you can't use the binary. You'd have to build it from source. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https

Re: [python-win32] Storing Passwords.

2015-01-18 Thread Tim Roberts
the plaintext password. If you don’t want to store the passwords, then your only solution is to ask the user to enter them every time. — Tim Roberts, t...@probo.commailto:t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Possible memory leak in pywin32

2015-01-16 Thread Tim Roberts
, 45 MB is nothing. Thunderbird balloons to 400MB on my machine. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Compiler info

2014-12-27 Thread Tim Roberts
and links to that version of the run-time library. Confusion results if you load a DLL that expects a different run-time DLL. — Tim Roberts, t...@probo.commailto:t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] py2exe com_server newbie problem

2014-12-10 Thread Tim Roberts
to the Microsoft download site for the Visual Studio 2008 Runtime that you require. Or, you can ship the redistributable installer with your app. That was the intended solution when VS2008 came out. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Pywin32 copying and pasting via mouse/keyboard

2014-12-09 Thread Tim Roberts
become an operating system unto themselves. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Pywin32 copying and pasting via mouse/keyboard

2014-12-09 Thread Tim Roberts
is. It might be easier to use COM to pull the HTML text of the page, and parse that text for the information. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman

Re: [python-win32] Pywin32 copying and pasting via mouse/keyboard

2014-12-09 Thread Tim Roberts
to do what you are attempting. I always generate email addresses with Javascript, just so that scummy spammer scrapers can't easily grab the text. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] Get key press in Windows 7

2014-11-27 Thread Tim Roberts
. Wasn’t that obvious from your output? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32print pDevMode change DriverData

2014-11-23 Thread Tim Roberts
of devices where it doesn’t work. Anything special features that weren’t anticipated in the abstraction aren’t available except through escapes and overrides, like what you are using. -- Tim Roberts, t...@probo.commailto:t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] pythoncom

2014-10-14 Thread Tim Roberts
proprietary program is a 32-bit application, then you need to install and use a 32-bit Python in order to use it. You can't install 64-bit product on a 32-bit Windows system, so if you are having trouble on a 32-bit Windows system, then there is something else going on. -- Tim Roberts, t...@probo.com

Re: [python-win32] getting underlying OLE object identity for win32com objects

2014-10-01 Thread Tim Roberts
how to compare themselves. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

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

2014-09-17 Thread Tim Roberts
, don't you? (Unlike PHP) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Why doesn't dir() list COM object properties, only methods?

2014-09-15 Thread Tim Roberts
frustrating! Is there any way to list all of the properties of a COM object instance? Check the makepy file and see if they are present. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https

Re: [python-win32] Why doesn't dir() list COM object properties, only methods?

2014-09-15 Thread Tim Roberts
in, he's the real guru in this area, and may know of a more blessed way of getting that info. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo

Re: [python-win32] PyWin32

2014-08-26 Thread Tim Roberts
://stackoverflow.com/questions/1823762/sendkeys-for-python-3-1-on-windows -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Using COM DLL

2014-08-13 Thread Tim Roberts
= cdll.LoadLibrary(‘PasSDK.dll’) sdk.DllRegisterServer() and then call Dispatch. I’m not sure this is any better than, for example: os.system(‘regsvr32 passdk.dll’) -- Tim Roberts, t...@probo.commailto:t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] Excel Paste Special Error

2014-07-28 Thread Tim Roberts
you can always fall back to positional parameters, like what I have above. What version of Python and Python-Win32 are you using? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https

Re: [python-win32] Building PyWin32 with visual studio 2013 and Windows 8.1

2014-07-24 Thread Tim Roberts
also compiling Python yourself (which does not yet officially support anything newer than VS 2010). -- Zach -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https

Re: [python-win32] Problem passing array by reference

2014-07-18 Thread Tim Roberts
it fetches the names of the methods and properties on the fly. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Problem passing array by reference

2014-07-17 Thread Tim Roberts
machinery knows how to handle that. So: hr, bfr = obj.GetComponents() hr = obj.SetComponents(bfr) -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman

Re: [python-win32] Python scripting with Active Directory

2014-07-17 Thread Tim Roberts
backups, you probably want the /copyall option, which also copies the owner and auditing information. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo

Re: [python-win32] Problem passing array by reference

2014-07-17 Thread Tim Roberts
, but if you don't have good documentation to begin with, it will be painful. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Problem passing array by reference

2014-07-17 Thread Tim Roberts
is the code you've already done. Comtypes can do everything Pythoncom can do; you may find that it is not that hard to convert, especially if you have a TLB. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32

Re: [python-win32] How to pass out parameter to win32com

2014-07-01 Thread Tim Roberts
deal with raw pointers. Plus, there's no way for the called function to know how large that buffer is. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman

Re: [python-win32] How to pass out parameter to win32com

2014-06-27 Thread Tim Roberts
declared the function. Right now, it is doing exactly what you asked: you said the function has one integer as output, and that's exactly what you got back. If you need this to return an array, then you need to change your IDL so that it returns an array. -- Tim Roberts, t...@probo.com Providenza

Re: [python-win32] save chart from an existing xlsx as an image

2014-06-20 Thread Tim Roberts
can't get COM access. 3. It is possible to read data from Excel files without using Excel. 4. There are many excellent plotting packages for Python that do not involve Excel. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] Visual Studio Project

2014-06-16 Thread Tim Roberts
executable. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] python3 and extended mapi

2014-06-10 Thread Tim Roberts
that includes the byte 0x9F, there is absolutely no way for you answer the question what character is that? If that question cannot be answered, middleware should not be making a guess. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python

Re: [python-win32] Excel Characters object

2014-05-27 Thread Tim Roberts
could call it exactly like in VB: Cell.Characters(i,1) but I don't see that in the generated COM interface. That's going to be an ugly one to chase down. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python

Re: [python-win32] Not able to paste file in windows explorer using SetClipboardData

2014-05-21 Thread Tim Roberts
user as Explorer? -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Passing arguments/values back and forth between separate executables at/during runtime

2014-04-23 Thread Tim Roberts
. They are very easy to handle in Python, and it would even let you split your work across several computers. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman

Re: [python-win32] Credential Manager CredEnumerate

2014-04-14 Thread Tim Roberts
changed. What is the new way? MSDN doesn't mention any replacement. Do you know if there is another way in Python to do so ? Any Windows DLL that does not already have a win32 wrapper can be called using ctypes. It's a little bit tedious, but it's incredibly flexible. -- Tim Roberts, t

Re: [python-win32] Write excel 2007 table to specific location in a word document using python 2.7.5

2014-04-02 Thread Tim Roberts
.aspx -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Control Volume on Windows [SEC=UNCLASSIFIED]

2014-03-12 Thread Tim Roberts
windows 7, and I would like it to work on windows 8 if possible, though its not necessary. I don't need to support any previous versions of windows. To which Tim Roberts replied: Alas, the news is not good. I think that comtypes (https://pypi.python.org/pypi/comtypes) can deal with early

Re: [python-win32] Control Volume on Windows

2014-03-11 Thread Tim Roberts
is to write a Python extension in C++. Fortunately, using boost/python.hpp, that's not as hard as it used to be. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman

Re: [python-win32] win32api win32gui help

2014-03-03 Thread Tim Roberts
the shell. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

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

2014-03-03 Thread Tim Roberts
. In this case, you have encountered limitations of the Win32 API, not of Python. The Acrobat Reader can be controlled via COM to set layout and paper size, but I want to find out what your printer is before going any deeper. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc

Re: [python-win32] win32gui cursor position tracking etc.

2014-02-19 Thread Tim Roberts
/desktop/ms648389.aspx which would point you to the CURSORINFO structure that has your goodies: http://msdn.microsoft.com/en-us/library/windows/desktop/ms648381.aspx -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32

Re: [python-win32] optimizing code to read serial port

2014-02-16 Thread Tim Roberts
. So, either you’re not really running 9600 baud, or you’re not really sending as much data as you think you are. -- Tim Roberts, t...@probo.commailto:t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Programmatically turn off mouse auto-positioning

2014-02-04 Thread Tim Roberts
to do so. That's a user preference. I think it's a silly preference, but if that's what the user wants, it is NOT your place (as an application) to contradict him. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] Building Python-2.7.6 for 64bit Windows

2014-02-03 Thread Tim Roberts
modifying the code, or switching to a gcc compiler. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Building Python-2.7.6 for 64bit Windows

2014-02-03 Thread Tim Roberts
Bharath Ramesh wrote: On Mon, Feb 3, 2014 at 11:44 AM, Tim Roberts t...@probo.com wrote: The Python ssl module will always use its statically linked library. It doesn't care which dynamic libraries are loaded -- the external references it needs were already satisfied at link time. Would

Re: [python-win32] Building Python-2.7.6 for 64bit Windows

2014-01-30 Thread Tim Roberts
, maybe you need to rebuild that add-in module using your OpenSSL, but you can do that without rebuilding the interpreter. You need to take some time and chase down what the crash really is, because I don't think you really know right now. -- Tim Roberts, t...@probo.com Providenza Boekelheide

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

2013-12-31 Thread Tim Roberts
the SDK components. If you REALLY just want to write an MFC program in Python, it's possible to do that using pywin32, but it's not really very Python-like. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list

Re: [python-win32] how to access SHOpenFolderAndSelectItems() by ctypes

2013-12-13 Thread Tim Roberts
. The Mac has Finder, but there isn't a standard file manager app for Linux. You will have to think about what you are really trying to do on non-Windows systems. -- Tim Roberts, t...@probo.com Providenza Boekelheide, Inc. ___ python-win32 mailing list

<    1   2   3   4   5   6   7   8   9   10   >