[python-win32] Eject a Removable USB drive

2009-03-02 Thread Rickey, Kyle W
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

Re: [python-win32] Simulating a mouse click - lParam

2008-12-12 Thread Rickey, Kyle W
, 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

Re: [python-win32] Simulating a mouse click - lParam

2008-12-08 Thread Rickey, Kyle W
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

[python-win32] Simulating a mouse click - lParam

2008-12-05 Thread Rickey, Kyle W
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

Re: [python-win32] Simulating a mouse click - lParam

2008-12-05 Thread Rickey, Kyle W
? -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

Re: [python-win32] Simulating a mouse click - lParam

2008-12-05 Thread Rickey, Kyle W
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

Re: [python-win32] Standby/Hibernate

2008-06-05 Thread Rickey, Kyle W
, 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

[python-win32] Standby/Hibernate

2008-06-04 Thread Rickey, Kyle W
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

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-29 Thread Rickey, Kyle W
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

[python-win32] Dispatch InternetExplorer.Application fails

2008-05-27 Thread Rickey, Kyle W
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

Re: [python-win32] Dispatch InternetExplorer.Application fails

2008-05-27 Thread Rickey, Kyle W
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

[python-win32] Volume Serial Number

2008-05-16 Thread Rickey, Kyle W
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

Re: [python-win32] Volume Serial Number [SOLVED]

2008-05-16 Thread Rickey, Kyle W
-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

[python-win32] DDE AddTopic after server started

2008-05-06 Thread Rickey, Kyle W
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

[python-win32] FW: GetFileVersionInfo blocks main thread

2008-04-21 Thread Rickey, Kyle W
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

[python-win32] Find Target

2008-04-03 Thread Rickey, Kyle W
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

Re: [python-win32] Find Target

2008-04-03 Thread Rickey, Kyle W
:[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

Re: [python-win32] FTP Task Schedule in Python

2008-03-25 Thread Rickey, Kyle W
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

Re: [python-win32] Running SQL queries on excel sheets

2008-03-17 Thread Rickey, Kyle W
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

[python-win32] Running SQL queries on excel sheets

2008-03-14 Thread Rickey, Kyle W
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

Re: [python-win32] Running SQL queries on excel sheets

2008-03-14 Thread Rickey, Kyle W
@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

Re: [python-win32] Running SQL queries on excel sheets

2008-03-14 Thread Rickey, Kyle W
@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

Re: [python-win32] Running SQL queries on excel sheets

2008-03-14 Thread Rickey, Kyle W
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

Re: [python-win32] win32gui.EnumWindows, documentation?

2008-03-11 Thread Rickey, Kyle W
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

[python-win32] odbc timeouts

2008-02-01 Thread Rickey, Kyle W
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

[python-win32] Global Window Messages

2008-01-21 Thread Rickey, Kyle W
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.

Re: [python-win32] transparency on window

2008-01-21 Thread Rickey, Kyle W
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

Re: [python-win32] Global Window Messages

2008-01-21 Thread Rickey, Kyle W
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