This http://msdn2.microsoft.com/en-us/library/aa363243.aspx might be a
starting point...
On 5/3/07, Amit Arora <[EMAIL PROTECTED]> wrote:
Exact Requirement :
Need to write a Python script that keeps on running and when a USB device
is plugged in , it detects the device and flashes a message on
Exact Requirement :
Need to write a Python script that keeps on running and when a USB
device is plugged in , it detects the device and flashes a message on
the propt or logs it to a file
do suggest your ideas on this
From: Simon Dahlbacka [mailto:[EMAI
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
Amit Arora wrote:
>
> HI All,
>
> I need to install a package and check the return value using the
> VerInstallFile() API :
>
> The function declaration which I get on MSDN is :
>
> DWORD VerInstallFile( DWORD uFlags,
>LPCTSTR szSrcFileName,
>LPCTSTR szDestFileName,
>LPCTS
> Amit Arora wrote:
> 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
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