Hello everyone,
I would like to be able to eject a usb drive based on drive letter. I've
done a bit of googling and came across the CM_Request_Device_Eject
function on MSDN (http://msdn.microsoft.com/en-us/library/ms790831.aspx)
However, I am not quite sure how to supply the necessary parameter
, TCM_SETCURFOCUS, 3, 0)
where hwnd is the window handle of the tab control.
-Kyle Rickey
-Original Message-
From: python-win32-bounces+kyle.rickey=bakerhughes@python.org
[mailto:python-win32-bounces+kyle.rickey=bakerhughes@python.org] On
Behalf Of Rickey, Kyle W
Sent: Monday, December 08
PM
To: Python-Win32 List
Subject: Re: [python-win32] Simulating a mouse click - lParam
Rickey, Kyle W wrote:
Thanks Tim. I used the following to select my tab of interest:
TCM_SETCURSEL = 0x130C
win32gui.SendMessage(hwnd, TCM_SETCURSEL, 3, 0)
However, according to MSDN:
http
Let's say I've got a window for which I want to simulate a mouse click
at a specific x, y coordinate. I already have the hwnd but I'm not sure
how to construct the lParam. I've used SendMessage in the past to click
on buttons, etc., but I knew their hwnds. How do I construct the lParam.
Per the
?
-Kyle Rickey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Tim Roberts
Sent: Friday, December 05, 2008 4:25 PM
To: Python-Win32 List
Subject: Re: [python-win32] Simulating a mouse click - lParam
Rickey, Kyle W wrote:
Let's say I've got a window for which I
of my window. I left the TCM_SETCURSEL code
un-commented when I ran it the first time.
-Kyle Rickey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Rickey, Kyle W
Sent: Friday, December 05, 2008 4:52 PM
To: python-win32@python.org
Subject: Re: [python-win32
, June 05, 2008 3:30 AM
Cc: python-win32@python.org
Subject: Re: [python-win32] Standby/Hibernate
Rickey, Kyle W wrote:
What do I need to do to put my local computer into standby? I found
the
function:
win32api.InitiateSystemShutdown(INT8Y4Y3B1, Tom Sucks, 300, False,
False)
but it seems
What do I need to do to put my local computer into standby? I found the
function:
win32api.InitiateSystemShutdown(INT8Y4Y3B1, Tom Sucks, 300, False,
False)
but it seems to only shutdown/restart.
-Kyle Rickey
___
python-win32 mailing list
Thanks, I got your example working but unfortunately the results didn't
work good. Here's links to 2 pictures for comparison, sensitive
information removed.
http://www.dsrt.org-a.googlepages.com/bad_report.png
http://www.dsrt.org-a.googlepages.com/good_report.png
It wouldn't let me attach the
Whenever I try the following:
import win32com.client
ie = win32com.client.Dispatch(InternetExplorer.Application)
I get this traceback:
Traceback (most recent call last):
File interactive input, line 1, in module
File C:\Python25\Lib\site-packages\win32com\client\__init__.py, line
95, in
Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden
Sent: Tuesday, May 27, 2008 2:46 PM
Cc: python-win32@python.org
Subject: Re: [python-win32] Dispatch InternetExplorer.Application fails
Rickey, Kyle W wrote:
Whenever I try the following:
import
How do I get the volume serial number for a drive? For example in the
cmd prompt issuing this:
C:\vol C:
Volume in drive C is LABEL
Volume Serial Number is -
Is the volume serial number wrapped by pywin32? I found the function
win32api.GetVolumeInformation, but it doesn't seem
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden
Sent: Friday, May 16, 2008 12:45 PM
Cc: python-win32@python.org
Subject: Re: [python-win32] Volume Serial Number
Rickey, Kyle W wrote:
How do I get the volume serial number for a drive
I've got a simple DDE Server running that I would like to add/remove
topics to on the fly.
The reason for doing this is my application uses subprocess to open
other programs which will then communicate back to mine using DDE. The
topic will never be exactly the same though, because the subprocess
I just realized that this conversation didn't make it to the whole list
so read below if anyone is interested.
-Kyle Rickey
-Original Message-
From: Tim Golden [mailto:[EMAIL PROTECTED]
Sent: Saturday, April 19, 2008 12:20 PM
To: Rickey, Kyle W
Subject: Re: [python-win32
I am trying to figure out how to show a specified file in explorer. I
know I can call os.startfile(directory) to show the containing
directory, but I would like the file to be selected also. Is there an
API call that windows makes to do this?
For example, right click on a shortcut and go to
:[EMAIL PROTECTED] On Behalf Of Tim Roberts
Sent: Thursday, April 03, 2008 11:42 AM
To: Python-Win32 List
Subject: Re: [python-win32] Find Target
Rickey, Kyle W wrote:
I am trying to figure out how to show a specified file in explorer. I
know I can call os.startfile(directory) to show
I agree with Tim here. I set up a simple script to backup a few files,
then scheduled a task to run daily at 2am.
-Kyle Rickey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Golden
Sent: Tuesday, March 25, 2008 4:29 AM
Cc: python-win32@python.org
Thanks John, I'll check that out.
-Kyle Rickey
-Original Message-
From: John Machin [mailto:[EMAIL PROTECTED]
Sent: Sunday, March 16, 2008 4:40 AM
To: Rickey, Kyle W
Cc: python-win32@python.org
Subject: Re: [python-win32] Running SQL queries on excel sheets
Rickey, Kyle W wrote:
Tim
I've got several excel sheets I would like to run SQL queries on and
I've worked out a couple of ways, but I'm not sure what the best way
would be. I've also got a problem where I can't connect to the excel
file if someone is currently editing it. Given the following to code
samples, which one is
@python.org
Subject: Re: [python-win32] Running SQL queries on excel sheets
Rickey, Kyle W wrote:
I've got several excel sheets I would like to run SQL queries on and
I've worked out a couple of ways, but I'm not sure what the best way
would be. I've also got a problem where I can't connect
@python.org
Subject: Re: [python-win32] Running SQL queries on excel sheets
Rickey, Kyle W wrote:
Tim, thanks for your response. I've got 7 excel files that need
reading
containing a total of ~6100 rows. I agree, about this code making me
sick :)
In a perfect world I would get all the data
PROTECTED] wrote:
Rickey, Kyle W wrote:
In a perfect world I would get all the data into our SQL
server and
write a front end for everyone that needs to access/modify the
data, but
that's a ways down the road. I've still got to convince people
in the
company
I like using lambda for this, but you could also put it into a function.
windows = []
win32gui.EnumWindows(lambda hwnd, resultList: resultList.append(hwnd),
windows)
This will populate windows with all the hwnds.
-Kyle Rickey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL
Is it possible to change the default timeout for an odbc connection? For
instance:
import odbc
conn = odbc.odbc(DBNAME)
It seems to timeout ~15 seconds. But the above method only takes 1
argument. Is it possible to set a timeout in the connection string?
-Kyle Rickey
I'm not sure if this is the right place to ask, but here goes. I would
like to monitor system wide window messages to see when windows are
created/destroyed. The reason being I am writing a small app that will
reposition windows automatically. I thought of a couple of different
approaches.
I'm using build 210 and I've got that method.
-Kyle Rickey
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts
Sent: Monday, January 21, 2008 1:05 PM
To: Python-Win32 List
Subject: Re: [python-win32] transparency on window
astralrod wrote:
I
PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Tim Roberts
Sent: Monday, January 21, 2008 1:17 PM
To: Python-Win32 List
Subject: Re: [python-win32] Global Window Messages
Rickey, Kyle W wrote:
I'm not sure if this is the right place to ask, but here goes. I would
like to monitor system wide window
28 matches
Mail list logo