Re: [python-win32] Getting Started

2023-07-14 Thread niki
right direction? Usually it's easier to translate VBA statements to Python statements HTH Niki ___ python-win32 mailing list python-win32@python.org https://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Python Finalisation

2013-01-15 Thread niki
On 15.01.2013 00:32, Tom Bowles wrote:> > > Does anybody have any thoughts on this? IIRC re-initialization of binary modules is supported in python3. Hope to be wrong, Niki ___ python-win32 mailing list python-win32@python.org http://mail.p

Re: [python-win32] Use python to read data from mouse but not move cursor

2012-12-27 Thread niki
should be possible as e.g. "trine 2" game has configuration for using several (mouse + keyboard) Niki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Anti-reverse Python-based binaries?

2012-02-10 Thread niki
use something that is compiled, like C++. Even compiled code can be reverse-engineered, but it's much harder. IMHO not true. Professional decompilers for C++ are much better than python decompilers. Example: hex-rays Niki ___ python-win32 mailing

Re: [python-win32] Anti-reverse Python-based binaries?

2012-02-09 Thread niki
Without the key files are unusable. Niki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Unexpected delay in printing with win32print

2010-09-17 Thread niki
point something (but I'm not sure what) to mark end of page. It might just be an EOF character. Maybe FF (form feed)? HTH Niki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Finding DLL's which are in use (loaded)

2010-04-12 Thread niki
Tony Cappellini wrote: Thanks- but is that attempting to delete a dll? Is there a No. This checks if next delete request will succeed. It's safe to use without deleting anything. Niki ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] Finding DLL's which are in use (loaded)

2010-04-08 Thread niki
r a way to scan/probe to see if any apps are running which have these dll's loaded. How would I go about this with Python ? test = win32file.CreateFile(f, win32con.DELETE, 0, None, win32con.OPEN_EXISTING, 0, None) HTH Niki ___ python-win32 maili

Re: [python-win32] MAPI with win32com

2010-03-22 Thread niki
try this (simple mapi with ctypes): http://aspn.activestate.com/ASPN/Mail/Message/ctypes-users/2095322 HTH Niki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Open files, round 2

2009-11-24 Thread niki
Aahz wrote: h = win32file.CreateFile(fname, win32file.GENERIC_READ, 0, None, win32file.OPEN_EXISTING, win32file.FILE_FLAG_NO_BUFFERING, None) I used OPEN_FOR_DELETE to do similar test. regards, Niki ___ python-win32 mailing list python-win32

Re: [python-win32] calling python as process from vb.net

2009-07-30 Thread niki
Info.RedirectStandardOutput = True p.StartInfo.UseShellExecute = False p.StartInfo.CreateNoWindow = True p.Start() You can try UseShellExecute = True or start cmd.exe /c python.exe ... Niki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] how to get the statusbar text of a window?

2009-05-29 Thread niki
IIRC status bar is usually child window. You have to enumerate children and get text from there. Niki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Confused about PreTranslateMessage

2009-03-06 Thread niki
d, and if so, how do I go about it? IIRC one have to patch PreTranslateMessage code in order to get all variants to work. I can dig my old patches if required, but using MFC is PITA anyway. Venster project has some good substitute ctypes code. Niki ___

Re: [python-win32] Does Python need a native Windows GUI toolkit?

2008-12-01 Thread niki
Michel Claveau wrote: Hi! Perso, I use a HTML-GUI (with Python => PyWin32 => IE+Jscript library). It is self-important for me, and enough fun... Have you tried pyjamas or pyjamas-desctop? HTH Niki ___ python-win32 mailing list python

Re: [python-win32] com_error Unicode problems

2008-07-23 Thread niki
onerous would it be to change PyCom_BuildPyException to call FormatMessageW and to return true Unicode objects? Non-trivial, I imagine, since that function's called everywhere, but maybe now's the time...? [... three questions; nobody expects ...] 3) Is there something more obvious which I've missed?

Re: [python-win32] Using .chm files.

2008-03-24 Thread niki
, lang, 'raskroy.chm') import win32help h = win32help.HtmlHelp(0, chm, 0, url) HTH Niki Spahiev ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] HRGN, RGNDATA, RGNDATAHEADER

2008-01-15 Thread niki
ap. Not inside :) GDI+ is pure .h file C++ wrapper over C dll. ctypes wrapper exists somewhere. I have small prototype too. HTH Niki Spahiev ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] python and Windows Resource Files.

2007-12-15 Thread niki
I have small ctypes package for dynamic win32 dialogs (DialogBoxIndirectParam) which can be adapted for using resources. I will mail it on request. Niki Spahiev ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman

Re: [python-win32] JPEG to TIFF conversion

2007-12-10 Thread niki
accomplish this in Python? I will be > thankful for the comments and suggestions. I am using Python 2.3. Try PIL (Python imaging library) Niki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Selecting OK button in dialog

2007-10-11 Thread niki
ag mouse without releasing. After mouse leaves button area see what happens. Releasing mouse outside button has no effect. HTH Niki ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Having multiple versions of PythonWin installed concurrently

2007-08-09 Thread niki
ons of PythonWin > installed concurrently. Nothing IFIAK, i have 2.3, 2.4 and 2.5 installed with pywin32 Niki Spahiev ___ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Have IHTMLWindow2 objectneed correspondingIHTMLWindow3 object and flash box

2007-08-02 Thread niki
Tim Roberts wrote: > niki wrote: >>> As I understand it, win32gui exposes the raw GDI APIs and deals with raw >>> GDI handles as plain integers. win32ui is an attempt to wrap the raw >>> GDI interfaces with Pythonic wrapper objects. >> IIRC win32ui is MFC based

Re: [python-win32] Have IHTMLWindow2 objectneed correspondingIHTMLWindow3 object and flash box

2007-08-01 Thread niki
> As I understand it, win32gui exposes the raw GDI APIs and deals with raw > GDI handles as plain integers. win32ui is an attempt to wrap the raw > GDI interfaces with Pythonic wrapper objects. IIRC win32ui is MFC based and better avoided. Nik

Re: [python-win32] interacting with Windows Media Player

2007-05-28 Thread Niki Spahiev
E R wrote: > Is this what you were thinking of? > > http://liris.cnrs.fr/advene/ No. I found it now. Its http://sourceforge.net/projects/transana Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.or

Re: [python-win32] interacting with Windows Media Player

2007-05-18 Thread Niki Spahiev
rtain offset. Does anyone know how to > do this? > > Also, I don't have to use WMP if this can be done easier with another > media player. All I need to play are MPEG2 video files. IIRC there is wxPython based project with same goals. And IIRC its open source. Niki Spahiev __

Re: [python-win32] HookMessage fails

2007-05-15 Thread Niki Spahiev
ve tried WM_SIZE, WM_ACTIVATE, etc. > > BTW, I'm using ActivePython 2.4, which comes with pywin32 bundled. I'm > not sure if PYWIN_WITH_WINDOWPROC is defined in ActivePython. Hooks are based on special MFC glue code. When this glue code is not active some messages are handl

Re: [python-win32] HookMessage fails

2007-05-15 Thread Niki Spahiev
s not unique to WM_SIZE, but any handlers that are hooked by > HookMessage. > > Appreciate if anyone can help shed some light on this. Thanks. In order to hook more messages (e.g. WM_SIZE) you must recompile pywin32 with PYWIN_WITH_WINDOWPROC defined HTH Niki Spahiev __

Re: [python-win32] updating a registered com server

2007-04-26 Thread Niki Spahiev
ster with the same _reg_clsid_? Is my registry > irreversibly messed up? Try to split code to almost static COM and dynamic logic and then reload() logic module. Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python

Re: [python-win32] How to use IExtractImage in python

2007-04-21 Thread Niki Spahiev
then win32gui to copy data to wxBitmap HTH Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32ui and resources for dialogs

2007-01-10 Thread Niki Spahiev
r pure win32 dialogs in plug-ins for another CAD system. regards, Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] pywin32 build 210 released

2006-09-26 Thread Niki Spahiev
version for 2.4 installs file: pywin32-210-py2.6.egg-info IAUC it must be py2.4.egg? Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Any volunteers

2005-10-24 Thread Niki Spahiev
.py in your python installation. HTH Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Wrapping a wxPython window/application in an ActiveX control

2005-08-03 Thread Niki Spahiev
> Any help would be much appreciated. IIRC there is ctypes based AcitveX demo. Maybe in venster. No wxPython though. HTH Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Problem with gencache.EnsureModule

2005-06-06 Thread Niki Spahiev
Johannes Brunen wrote: > File > "C:\DOKUME~1\Arthur\LOKALE~1\Temp\gen_py\2.4\9C3BB401-114D-11D4-AC72-00105A4925FCx0x1x2\__init__.py", > line 57 Remove encoding comment from start of this file. HTH Niki Spahiev ___ Python-win32

Re: [python-win32] Looking for Serial I/O python driver

2005-05-10 Thread Niki Spahiev
ing pyserial with dumb devices (CNC). IMO it should work with smart devices too. Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] wxStaticTxt

2005-04-26 Thread Niki Spahiev
It's better to use wxPython list questions about wxPython. Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Intro and Windows Questions

2005-04-07 Thread Niki Spahiev
res I miss are an integrated file manager and an integrated debugger. There is something called FilerX IIRC for organizing projects with scite. For debugger try HAP debugger @ sf.net (scintilla based too) HTH Niki Spahiev ___ Python-win32 mailing list P

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-07 Thread Niki Spahiev
happen to have the zips handy, do you? I have this: -rw--- 1 niki users 1459352 Apr 1 2004 4-04-01/adder-0.3.3-src.zip -rw--- 1 niki users 137800 Apr 1 2004 4-04-01/adder-0.3.3-win32.zip -rw--- 1 niki users 69801 Apr 1 2004 4-04-01/adder-manual.zip Do you want any of them? By

Re: [python-win32] Help on using win32api.SendMessage to send keystrokes

2005-04-06 Thread Niki Spahiev
hooks, but that's a pretty high level of guruness. Google for "api dll injection". There is module for injection of *python* code in win32 apps. http://security.opennet.ru/base/patches/1080837482_191.txt.html HTH Niki Spahiev ___ Python-

Re: [python-win32] reading from console child process

2005-04-05 Thread Niki Spahiev
ough. IIRC there is new module process which replaces popen with better functionality. Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Retrieve Icons Associated To An Extension?

2005-03-30 Thread Niki Spahiev
such thing. HTH Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] reading from console child process

2005-03-30 Thread Niki Spahiev
implemented in PyWin32. Does anyone know if there's a way to do this? I'm new at this, so my apologies if the question is basic or misguided, but I haven't found an obvious solution in the archives or elsewhere. Try console module from effbot o

Re: [python-win32] How to get McMillan Installer accept win32gui?

2005-03-25 Thread Niki Spahiev
McMillan Installer fails importing win32gui. Try importing pywintypes before win32gui HTH Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] win32gui, win32ui -- how to release references?

2005-03-22 Thread Niki Spahiev
objects are destroyed, the resources will be released. IMHO only win32ui objects are automatic. Niki Spahiev -- Ð ÑÐÐÐ, ÐÐÐ ÐÐÐÑÐÐÐ ÐÐÐÑÐÑ ÐÐÐ ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] How to use Python to develop virtual printer?

2005-03-02 Thread Niki Spahiev
making PDF in sf.net. HTH Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Window capture using WM_PRINT and Python

2005-01-19 Thread Niki Spahiev
N | win32con.PRF_CLIENT | win32con.PRF_OWNED) check that hdc is valid DC handle. HTH Niki Spahiev ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Re: Damaged Pythonwin installation

2004-12-22 Thread Niki Spahiev
Bob Gailer wrote: This is symptomatic of a long-standing unsolved Pythonwin problem in which Pythonwin keeps adding toobar entries to the registry until it chokes. This i have other programs (e.g. WinCVS) with same problem. Maybe its bug in MFC? Niki Spahiev

Re: [python-win32] ActiveX components with Events

2004-12-17 Thread Niki Spahiev
ept for me) but hey, its a protection against future redundancies ! However if you know any gotchyas with ActiveX exe/win32com integration that I could look out for then that would be great. Check venster (sf.net) there is demo with flash OCX, and controlling it is OK. HTH Ni

Re: [python-win32] DLL spec

2004-12-14 Thread Niki Spahiev
Check py2exe. It contains some utility modules that do such things. HTH Niki Spahiev ___ Python-win32 mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/python-win32

Re: [python-win32] Re: Application Error driving iTunes with COM

2004-12-08 Thread Niki Spahiev
Simon Brunning wrote: Oops, I forgot. I'm using Python 2.3.4 and buil 163 of win32all. I'm driving iTunes version 4.7 on Windows 2000 workstation. And tying build 202 gives? Niki Spahiev ___ Python-win32 mailing list [EMAIL PROTE