It absolutely does Mark - thanks so much!
Based on the error details, I am fairly certain I am seeing the same issue
(even though I use pyinstaller). So I will either use 3.11 or think of a
solution that does not use Windows Service.
Thank you for being so responsive - greatly appreciate your co
The first comment of https://github.com/mhammond/pywin32/issues/2155 has
STR that doesn't involve pyinstaller or custom executables. If you can
reproduce that, then you are probably facing the same problem, so the
solution is probably to use Python 3.11 until more information about the
3.12 spe
Hello,
I would appreciate any help in diagnosing why this error occurs.
I have WinPython installed on my Windows 11 Pro machine and not registered
(registering did not change the outcome).
I installed pyinstaller and generated a single file .exe.
This is what I have encountered as documented in
> I'm Mohammed from Sudan,
> Diploma in Computer science.
>
> Sudanese love using :
> 1- windows ( 32bit & 64bit )
> 2 - Linux ( Deb, rpm )
> 3- android ( apk )
> 4- iPhone (ios )
>
> I design simple python application to enter two numbers and calculate it
>
>
> Help me using python setup.py bdist
Hi,
Thanks for the information, that helps a lot.
All the best,
Mike Lewis
-Original Message-
From: Mark Hammond
Sent: Thursday, October 7, 2021 3:15 AM
To: Lewis, Michael L ; python-win32@python.org
Subject: Re: [python-win32] help needed, missing pythoncomload[37].dll ?
[External
On 7/10/2021 12:07 am, Lewis, Michael L wrote:
Hi,
Working on an internal system that we’re trying to update (sadly we were
still on Python 2.7 ☹…
One think I noticed is amongst the scripts we have is a dependency on:
pythoncomloader27.dll (which appears at least to have been part of
pywin3
Hi,
Working on an internal system that we’re trying to update (sadly we were still
on Python 2.7 ☹ …
One think I noticed is amongst the scripts we have is a dependency on:
pythoncomloader27.dll (which appears at least to have been part of
pywin32_system32
This is referenced in some registry f
the backup flag
I need to do some reading on this
Momchil
-Original Message-
From: Eryk Sun
Sent: Friday, November 13, 2020 10:54 PM
To: python-win32@python.org
Cc: momc...@bojinov.info
Subject: Re: [python-win32] Help with PySECURITY_DESCRIPTOR
On 10/27/20, momc...@bojinov.info wrot
On 10/27/20, momc...@bojinov.info wrote:
>
> I m trying to store file's acl along with the backup of the file and then
> restore it on the same system
Consider using BackupRead() and BackupWrite() from the win32file
module. These functions support backup and restore of data streams
(default and a
Hello,
Newbie here
I m trying to store file's acl along with the backup of the file and then
restore it on the same system
Got this from Mr Tim Golden:
# http://timgolden.me.uk/python/win32_how_do_i/add-security-to-a-file.html
sd = win32security.GetFileSecurity (FILENAME,
win32securit
HI! im new at programming in python, but very old in programming in
general...
i have a request to extract 1 or more embed pdf files in a huge amount of
ms word files.
i have tried in many ways, but it seems than pywin32 is the easy one, but I
can't get the entire solution can any one help me
Hi,
I tried the basic example for win32com.client to just record how many times
events have been fired? I want to test which event types would be fired by
addition to self.seen_events dictionary. self.event_methods_hash get all
available events definition name ('OnWorkbookOpen',' OnWorkbookAfterSav
-win32 digest..."
>>
>> Today's Topics:
>>
>>1. Re: Help with com_error: (-2147352567, 'Exception occurred.',
>> (0, u'Microsoft Excel', u"Microsoft Excel cannot access the file
>> (Tim Roberts)
>>
>>
>&
On Dec 2, 2016, at 1:56 PM, Doug Sharkey wrote:
>
> Hi all,
>
> This bit of code:
>
>objExcel = win32com.client.Dispatch("Excel.Application")
> objExcel.visible = False
> objExcel.DisplayAlerts = False
> objWb=objExcel.Workbooks.Open(fil
Hi all,
This bit of code:
objExcel = win32com.client.Dispatch("Excel.Application")
objExcel.visible = False
objExcel.DisplayAlerts = False
objWb=objExcel.Workbooks.Open(filename)
is producing this error:
File ">", line 8, in Open
com_error: (-2147
Hello,
I need to be able to have python authenticate with the proxy in an enterprise
environment using the credentials of the currently logged on user (NTLM). Since
we are using an in house developed application, the program must run on several
endpoint computers so it should not require to rec
Hello,
I'm running Python 2.7.6 on 32-Bit Windows7 Pro. (Python 3 isn't an option
at the moment)
I have a parent python script which spawns two subprocesses- where each
subprocess is running
in a new console window. I want to watch each process running. This is why
I've explicitly used
creationfl
On 27/01/2013 12:37, Hsu. Victor (GSM) wrote:
> Hi,
>
> I would like to copy a Pivot table to another location.
> I can do that with VBA code below. Can someone guide me how to convert
> below code to Python? Especailly the PivotTables PivotSelect part, I
> don't know how to call it in py
Hi,
I would like to copy a Pivot table to another location.
I can do that with VBA code below. Can someone guide me how to convert below
code to Python? Especailly the PivotTables PivotSelect part, I don't know how
to call it in python.
Sub copyPivot()
Dim ws As Worksheet
Set ws = Works
Or as a follow-up to Tim's response, the other likely scenario is that
you have a 32bit Excel but a 64bit Python. So if that sounds likely,
just remove the 64bit Python and use a 32bit version.
Cheers,
Mark
On 11/05/2012 2:02 PM, rohit.niran...@wellsfargo.com wrote:
Hi All,
I am getting err
rohit.niran...@wellsfargo.com wrote:
> Hi All,
>
> I am getting error while trying to execute code:
>
> from win32com.client import Dispatch
> xlApp = Dispatch("Excel.Application")
>
> Dispatch
> C:\Python27\lib\site-packages\win32com\client\__init__.py
> 95
> _G
Hi All,
I am getting error while trying to execute code:
from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
DispatchC:\Python27\lib\site-packages\win32com\client\__init__.py
95
_GetGoodDispatchAndUserName
C:\Python27\lib\site-packages\win32com\client\d
t: [python-win32] Help compiling Python and some modules with Visual
Studio 11
Hi,
I need some help to compile python source code under Visual Studio
11. I need to have my own delivery process as I also need to compile
few extra modules that are not always available under windows ( lxml
for i
Hi,
I need some help to compile python source code under Visual Studio
11. I need to have my own delivery process as I also need to compile
few extra modules that are not always available under windows ( lxml
for inst is not up to date).
Any help or references will be very much appreciated .
I
nt: Sunday, March 4, 2012 10:18 PM
Subject: Re: [python-win32] Help Needed on Handling Events from a Proprietary
COM Object
Sorry for the delay - I'm afraid there isn't anything obvious I can see.
However, note that all the IConnection* interfaces are fully exposed
in Python - so it sho
* Mark Hammond
*To:* Darren McElfresh
*Cc:* "python-win32@python.org"
*Sent:* Tuesday, February 28, 2012 5:15 PM
*Subject:* Re: [python-win32] Help Needed on Handling Events from a
Proprietary COM Object
On 29/02/2012 8:26 AM, Darren McElfresh wrote:
> I’ve read through numerous
From: Mark Hammond
To: Darren McElfresh
Cc: "python-win32@python.org"
Sent: Tuesday, February 28, 2012 5:15 PM
Subject: Re: [python-win32] Help Needed on Handling Events from a Proprietary
COM Object
On 29/02/2012 8:26 AM, Darren McElfresh wrote:
> I’ve read through numerous po
On 29/02/2012 8:26 AM, Darren McElfresh wrote:
I’ve read through numerous posts on how to get this to work, but I’ve
realized it is time to ask for help.
In general I have a COM object that returns an event handler:
/event_source = com_object.newEventSource( arg_data )/
I’ve tried establishing th
I’ve read through numerous posts on how to get this to work, but I’ve
realized it is time to ask for help.
In general I have a COM object that returns an event handler:
event_source = com_object.newEventSource(
arg_data )
I’ve tried establishing the connection points necessary by creating
a
Pat McGuire wrote:
> I am new at programming with Python and am using Pythonwin.
>
> Is there a site that will show me how to access each type of form
> element, i.e. option, hrefs, links or examples of this. Also how to
> set focus on a form element.
Actually, this is not really a Python quest
I am new at programming with Python and am using Pythonwin.
Is there a site that will show me how to access each type of form element, i.e.
option, hrefs, links or examples of this. Also how to set focus on a form
element.
Any help is greatly appreciated.
Hi, I´m trying to do a path logger (Navigation logger) in Python, the thing
that I need is that the program can get the paths that de user is accesing in
real time, for example:
C:\Documents and Settings\
C:\Documents and Settings\Administrator\
C:\Documents and Settings\Administrator\Desktop\
I am not sure I follow you.
What I did was:
---
>>> wo = pythoncom.New('InternetExplorer.Application')
>>> import win32com.client
>>> w = win32com.client.Dispatch(wo)
>>> w.Navigate
Xin Zhao wrote:
> I am not sure I follow you.
>
> What I did was:
>
> ---
> >>> wo = pythoncom.New('InternetExplorer.Application')
> >>> import win32com.client
> >>> w = win32com.cli
Xin Zhao wrote:
> Thanks for your kind reply.
>
> I tried the new iid, doesn't help. :(
>
> >>> import pythoncom
> >>> wo=pythoncom.New('InternetExplorer.Application')
> >>> wo.QueryInterface('{3050f485-98b5-11cf-bb82-00aa00bdce0b}')
> Traceback (most recent call last):
> File "", line 1, in ?
>
Hey,
I am trying to get the Dispatch object of IHTMLDocument3, so I wrote the
following code
wo = pythoncom.New('InternetExplorer.Application')
wo.QueryInterface('{3050F673-98B5-11CF-BB82-00AA00BDCE0B}')
But got the following error:
pywintypes.com_error: (-2147467262, 'No such interface supporte
Yellow stone diesel parts plant is one of the leading manufacturers
of engine parts, in particular diesel fuel injection system
accessories for replacement, such as Fuel injection Nozzle, Plunger and
Delivery valve, ETC In south of china .
for more detail please visit our website : www.yell
Richard Leahy wrote:
> Hi Tim its just a C windows gui application that consists of a edit
> control and a button. I am just trying to write my text string to the
> edit control i can write to the button and i know i have found the
> right control id for the edit control to but for some reason it
Richard Leahy wrote:
> Hi guys. I have been struggling with writing a string into an edit
> control using the windows api calls. What I have noticed is that if i
> write text to a different control like a button control for example it
> works. Is there something in place like a security thing that
Hi guys. I have been struggling with writing a string into an edit control
using the windows api calls. What I have noticed is that if i write text to a
different control like a button control for example it works. Is there
something in place like a security thing that prevents writing to an ed
Richard Leahy wrote:
> So basically your saying that if i just use this
>
> test = windll.user32.FindWindowA(None, "Windows App")
>
> if not test:
> print "[*] cant find window"
>
> print test // which returns 7471154 the handle
>
> windll.user32.SetDlgItemTextA(test,1,"test")
>
> this doesn't
Richard Leahy wrote:
> Hi, thank you for your reply. I have tried the FindWindow which works
> great how ever It cant find the window i am after.
> ...
> test = windll.user32.FindWindowA(None, "Windows App") // find the
> first window perfectly
>
> if not test:
> print "[*] cant find window"
>
You wrote:
>
>Hey guys im having a little difficulty sending data to my C application
>through python. I have my test.exe that has a input box in a window. I
>am trying to populate the edit box with input i send to it through
>python. This is a far as I have been able to get so far. any help
>wou
Hey guys im having a little difficulty sending data to my C application through
python. I have my test.exe that has a input box in a window. I am trying to
populate the edit box with input i send to it through python. This is a far as
I have been able to get so far. any help would be much appre
Moll, Benjamin wrote:
>
> Hey guys,
>
> Im working with this script since weeks. Until today everything works
> fine. I could open, read and modify cells without any problems. since
> this morning I receive an error that says:
>
>
>
> Traceback (most recent call last):
>
> File "C:\Documents an
Hey guys,
Im working with this script since weeks. Until today everything works fine. I
could open, read and modify cells without any problems. since this morning I
receive an error that says:
Traceback (most recent call last):
File "C:\Documents and Settings\USER\Desktop\Code\python\test
>
> > The C prototype is
> > /long ReadTag(LPCTSTR name, float* pBuf, long nOS, long nWords);/
>
> That's not really the COM-approved way to declare that. Note the
> signature:
>
> > Using MakePy, the signature is
> > /def ReadTag(self, Name=defaultNamedNotOptArg,
> > pBuf=defaultNamedNotOptArg, n
Orest Kozyar wrote:
> I'm trying to use an ActiveX object to read data from hardware.
> Certain methods do not appear to work, specifically ones that expect a
> pointer to an array of 32-bit floats as one of the variables. One
> method is /ReadTag/.
>
> The C prototype is
> /long ReadTag(LPCTSTR
I'm trying to use an ActiveX object to read data from hardware. Certain
methods do not appear to work, specifically ones that expect a pointer to an
array of 32-bit floats as one of the variables. One method is *ReadTag*.
The C prototype is
*long ReadTag(LPCTSTR name, float* pBuf, long nOS, long
Sweet Boy wrote:
hi, well i got this exception when i run my .exe
Traceback (most recent call last):
File "new.py", line 2, in (module)
File "zipextimporter.pyc", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading win32ui.pyd
this is my script to make .py to .exe:
from dist
hi, well i got this exception when i run my .exe
Traceback (most recent call last):
File "new.py", line 2, in (module)
File "zipextimporter.pyc", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading win32ui.pydthis is my script to
make .py to .exe:
from distutils.core import
Yes, if you are normal Windows shared files, you should be using normal file
access functions. But your file name is incorrectly formatted. The name of
the remote computer must have TWO leading backslashes, which is Windows' cue
that you want a remote file.
Python will convert forward slashes ("/"
venu madhav
Sent: Sunday, February 22, 2009 11:15 PM
To: Python-Win32 List
Subject: [python-win32] Help required in opening a remote file in python.
Hello all, I am writing an application where I need to open a shared file on a
remote machine using python script. I tried using the following
> Hello all, I am writing an application where I need to open a shared
> file on a remote machine using python script. I tried using the
> following function: f =
> urllib.open("\\remote_machine\\folder1\\file1.doc") I also tried using
> class urllib.FancyURLopener(...) but didn't work.
> Can so
Try using the normal file access functions, eg: open("file","r"), etc.
~G
On Mon, Feb 23, 2009 at 6:14 AM, venu madhav wrote:
> Hello all, I am writing an application where I need to open a shared file on
> a remote machine using python script. I tried using the following function:
> f = urllib.
Hello all, I am writing an application where I need to open a shared file on
a remote machine using python script. I tried using the following function:
f = urllib.open("\\remote_machine\\folder1\\file1.doc") I also tried using
class urllib.FancyURLopener(...) but didn't work. Can some one help me
aivars wrote:
> this is how I call it from VB:
>
> Sub testPython()
>
> Dim a
> Dim response
>
> Set a = CreateObject("Aivars.ReturnSaldo")
> response = a.ReturnAmount() '--->error here
>
> Worksheets("Sheet1").Range("a1").Value = response
> End Sub
>
Function calls in VB with no parameters don
Thanks, Tim,
Your suggestions are OK but the code works called from IDLE - It does
not work when called from VB as a COM server.
Mark Hammond's example works for me perfectly. I cannot see what I am
doing wrong.
This is only a trial version and is definitely ugly.
The ReturnAmount will take argum
aivars wrote:
> Hello,
> basically I rewrote an example by Mark Hammond trying to create a
> simple trial COM server as per his Python programming on Win32 book
> The problem is that when run from VB6 (Excel VBA) it gives me an error
>
> exceptions.typeerror
> ReturnAmount() takes no arguments (1 g
Hello,
basically I rewrote an example by Mark Hammond trying to create a
simple trial COM server as per his Python programming on Win32 book
The problem is that when run from VB6 (Excel VBA) it gives me an error
exceptions.typeerror
ReturnAmount() takes no arguments (1 given)
Google search gives
Mike Driscoll wrote:
> Ahmed, Shakir wrote:
>> but I am getting error before that point and could not go to the user
>> account or pass.
>>
>> M =oplib.POP3(mailserver)
>> Traceback (most recent call last):
>> File "", line 1, in ?
>> File "C:\Python24\lib\poplib.py", line 96, in __init__
>>
Ahmed, Shakir wrote:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Werner F. Bruhin
Sent: Monday, August 18, 2008 1:04 PM
To: [EMAIL PROTECTED]
Cc: python-win32@python.org
Subject: Re: help with parsing email
Ahmed, Shakir wrote:
Thanks everyone wh
En Mon, 18 Aug 2008 12:24:07 -0300, Ahmed, Shakir <[EMAIL PROTECTED]> escribió:
> Thanks everyone who tried to help me to parse incoming email from an exchange
> server:
>
> Now, I am getting following error; I am not sure where I am doing wrong. I
> appreciate any help how to resolve this error
En Mon, 18 Aug 2008 12:24:07 -0300, Ahmed, Shakir <[EMAIL PROTECTED]> escribió:
> Thanks everyone who tried to help me to parse incoming email from an exchange
> server:
>
> Now, I am getting following error; I am not sure where I am doing wrong. I
> appreciate any help how to resolve this error
Ahmed, Shakir wrote:
Thanks everyone who tried to help me to parse incoming email from an exchange
server:
Now, I am getting following error; I am not sure where I am doing wrong. I appreciate any help how to resolve this error and extract emails from an exchange server.
First I tried:
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Werner F. Bruhin
Sent: Monday, August 18, 2008 1:04 PM
To: [EMAIL PROTECTED]
Cc: python-win32@python.org
Subject: Re: help with parsing email
Ahmed, Shakir wrote:
> Thanks everyone who tried to help me to p
Thanks everyone who tried to help me to parse incoming email from an exchange
server:
Now, I am getting following error; I am not sure where I am doing wrong. I
appreciate any help how to resolve this error and extract emails from an
exchange server.
First I tried:
>>> mailserver = 'EXCHVS01
En Thu, 14 Aug 2008 12:50:57 -0300, Ahmed, Shakir <[EMAIL PROTECTED]> escribió:
> I need to grab/parse numeric numbers such as app number from incoming
> emails stored in Microsoft Outlook (Microsoft Exchange server) with
> specified subject line.
>
> The email body is like this
>
> myregion ; tst
It seems very simple split it and then rfind to the first slash and slice
the rest.
On Thu, Aug 14, 2008 at 9:19 AM, Tim Golden <[EMAIL PROTECTED]> wrote:
> Ahmed, Shakir wrote:
>
>> I need to grab/parse numeric numbers such as app number from incoming
>> emails stored in Microsoft Outlook (Micro
Ahmed, Shakir wrote:
I need to grab/parse numeric numbers such as app number from incoming
emails stored in Microsoft Outlook (Microsoft Exchange server) with
specified subject line.
The email body is like this
myregion ; tst ; 11-Aug-2008
http://my.xyz.com//content/ifs/apps/myDocFo
Hi all,
I do appreciate if any one can help me for my following problem:
I need to grab/parse numeric numbers such as app number from incoming
emails stored in Microsoft Outlook (Microsoft Exchange server) with
specified subject line.
Any help with the python script is highly appreciat
Tim Roberts escribió:
Javi wrote:
Hello, i use python 2.5, and wx, i'm trying to print a bitmap with
transparency background but it doesnt print right, i just get a
preview right but when i printed it, bitmap transparency background
is printed on black. I dont know why , but i need to prin
: [python-win32] Help about printing
Michel Claveau wrote:
> Hi!
>
>> Many printers do not handle transparency. What kind of printer is it?
>
> An invisible printer?
> ;-)
Ironically, I often have the opposite problem. When my inkjet printer
starts to run low, I find that
Michel Claveau wrote:
Hi!
Many printers do not handle transparency. What kind of printer is it?
An invisible printer?
;-)
Ironically, I often have the opposite problem. When my inkjet printer
starts to run low, I find that it excels at printing transparent images,
but neglects to print
Hi!
Many printers do not handle transparency. What kind of printer is it?
An invisible printer?
;-)
Michel Claveau
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Javi wrote:
Hello, i use python 2.5, and wx, i'm trying to print a bitmap with
transparency background but it doesnt print right, i just get a
preview right but when i printed it, bitmap transparency background
is printed on black. I dont know why , but i need to print it right.
All help w
Hello, i use python 2.5, and wx, i'm trying to print a bitmap with
transparency background but it doesnt print right, i just get a
preview right but when i printed it, bitmap transparency background is
printed on black. I dont know why , but i need to print it right. All
help will be welcom
Larry Bates schrieb:
> One last problem. When I working class inside my COM object and everything
> works until I (or Python) destroys the reference to this object. I then get
> this exception:
>
> Exception exceptions.ValueError: 'COM method call without VTable' in meth
> od POINTER(IProgres
Larry Bates wrote:
> Tim Golden wrote:
>> Larry Bates wrote:
>>> I almost have it completely working with one remaining problem. The dialog
>>> allows the user to specify an AVI that runs showing activity while things
>>> are
>>> going in the background. There are AVIs stored in shell32.dll fo
Tim Golden wrote:
> Larry Bates wrote:
>> I almost have it completely working with one remaining problem. The dialog
>> allows the user to specify an AVI that runs showing activity while things
>> are
>> going in the background. There are AVIs stored in shell32.dll for move/copy
>> (resource
Larry Bates wrote:
> I almost have it completely working with one remaining problem. The dialog
> allows the user to specify an AVI that runs showing activity while things are
> going in the background. There are AVIs stored in shell32.dll for move/copy
> (resource number 160 and 161 respectiv
Thomas Heller wrote:
> Larry Bates schrieb:
>> Thomas Heller wrote:
>>> Larry Bates schrieb:
I've spent all morning searching and I just can't seem to find the
TypeLibrary
name for this COM interface.
>
>>> Sometimes someone who wants to use the object from VB writes an idl file
>
Larry Bates schrieb:
> Thomas Heller wrote:
>> Larry Bates schrieb:
>>> I've spent all morning searching and I just can't seem to find the
>>> TypeLibrary
>>> name for this COM interface.
>> Sometimes someone who wants to use the object from VB writes an idl file
>> and compiles a typelib (but y
> Ok, I downloaded that project, and stripped out the TLB. I then got comtypes
> and was able to use comtypes.client.GetModule to generate the typelib wrapper
> module for it:
>
> >>> GetModule("progdlg.tlb")
> 'C:\Python25\lib\site-packages\comtypes\gen\_2F2719A2_83CC_11D3_A08C_0040F6A4BFEC_
Thomas Heller wrote:
> Larry Bates schrieb:
>> I've spent all morning searching and I just can't seem to find the
>> TypeLibrary
>> name for this COM interface. I've searched the registry, scanned COM
>> browser
>> list at least a dozen times, etc. Some information about this COM object is
>
Larry Bates schrieb:
> I've spent all morning searching and I just can't seem to find the
> TypeLibrary
> name for this COM interface. I've searched the registry, scanned COM browser
> list at least a dozen times, etc. Some information about this COM object is
> located here:
>
> http://www.
I've spent all morning searching and I just can't seem to find the TypeLibrary
name for this COM interface. I've searched the registry, scanned COM browser
list at least a dozen times, etc. Some information about this COM object is
located here:
http://www.com.it-berater.org/COM/windows_shell
February 2008 2:48 AM
To: python-win32@python.org
Subject: [python-win32] Help with COM objs across threads: The object
exporter specified was not found
Dear list,
I wrote a small class which has some COM objects among its attributes. I
need to access the object from different threads so I defined
Dear list,
I wrote a small class which has some COM objects among its attributes. I
need to access the object from different threads so I defined two methods to
marshal and unmarshal the interfaces when working with the object.
Everything seemed to work fine on my PC, never had an error.
But I dis
Tim Golden wrote:
>
> (I spend most of my WMI time doing detective work like that!)
>
> I think what I meant was that the OP wanted to step through
> some kind installation process when the device was initiated.
> At least, I think that's what he wanted to do. And I'm not
> sure how much closer the
Tim Roberts wrote:
> Tim Golden wrote:
>> It's actually made a bit easier by using
>> the Win32_DeviceChange event under WMI
>> (you will not be surprised to hear me say!)
>>
>> But once you've got the fact that the device has
>> changed, I'm not sure where you go from there...
>
> I admit that WM
Tim Golden wrote:
>
> It's actually made a bit easier by using
> the Win32_DeviceChange event under WMI
> (you will not be surprised to hear me say!)
>
> But once you've got the fact that the device has
> changed, I'm not sure where you go from there...
I admit that WMI is not my strong suit, but
Tim Roberts wrote:
> Simon Dahlbacka wrote:
>> Random thought.. there *has* to be a better way of finding out when a
>> usb device is plugged in...
>>
>> (not that I know how, but I haven't needed to find out either..)
>
> Oh, there is. You can watch for the WM_DEVICECHANGE message, which
> fires
On 5/3/07, Tim Roberts <[EMAIL PROTECTED]> wrote:
> Oh, there is. You can watch for the WM_DEVICECHANGE message, which
> fires every time there is a plug-and-play event. Once you get that
> message, you can go enumerate the devices in your device class using the
> SetupDi APIs to see if you are p
Simon Dahlbacka wrote:
> Random thought.. there *has* to be a better way of finding out when a
> usb device is plugged in...
>
> (not that I know how, but I haven't needed to find out either..)
Oh, there is. You can watch for the WM_DEVICECHANGE message, which
fires every time there is a plug-and
essage on the propt or
logs it to a file
do suggest your ideas on this
--
*From:* Simon Dahlbacka [mailto:[EMAIL PROTECTED]
*Sent:* Thursday, May 03, 2007 10:55 AM
*To:* Amit Arora
*Cc:* Roger Upole; python-win32@python.org
*Subject:* Re: [python-win32] Help
:[EMAIL PROTECTED]
Sent: Thursday, May 03, 2007 10:55 AM
To: Amit Arora
Cc: Roger Upole; python-win32@python.org
Subject: Re: [python-win32] Help needed : FindWindowEx
Random thought.. there *has* to be a better way of finding out when a
usb device is plugged in...
(not that I know how, but I haven
Random thought.. there *has* to be a better way of finding out when a usb
device is plugged in...
(not that I know how, but I haven't needed to find out either..)
On 5/3/07, Amit Arora <[EMAIL PROTECTED]> wrote:
This helps a lot, there was actually a confusion in window names as you
mention
This helps a lot, there was actually a confusion in window names as you
mentioned . I tried this now for notepad while opening notepad on
desktop , it worked :)
Import win32gui
hWnd = win32ui.FindWindowEx(win32gui.GetDesktopWindow(),
None,"Notepad",None)
Value of hWnd I get :
object 'PyCWn
Hi,
I am a Amateur in python and an doing some work on Python and Win32 APIs
.
One of my task includes finding the active window , during any
installation proces and proceed ..
Take an instance : I connect a USB device say a USB printer to the USB
port , as soon as it connects we get a pop-u
1 - 100 of 114 matches
Mail list logo