Re: Python and microsoft outlook-using com, can I interact with msoutlook?

2006-04-04 Thread J Correia
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi All, know that Microsoft Exchange has a com interface, CDO, but I can't seem to find one for Microsoft outlook. does anyone have code snippets for using msoutlook and python, or suggestions? Check out:

Re: Beginner's question: executing scripts under Win XP pro

2006-03-25 Thread J Correia
Scott Souva [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Your script may be working properly, but XP simply removes the window after the script runs. Here is a simple fix that will stop at the end of the script and leave the Command window open: print Hello World raw_input()

Re: Need design advice. What's my best approach for storing this data?

2006-03-17 Thread J Correia
Mudcat [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to build a tool that analyzes stock data. Therefore I am going to download and store quite a vast amount of it. Just for a general number - assuming there are about 7000 listed stocks on the two major markets

Re: Pregunta sobre python

2005-11-14 Thread J Correia
Para Windows: import win32api handle = win32api.OpenProcess(1, False, pid_del_proceso) win32api.TerminateProcess(handle, -1) win32api.CloseHandle(handle) Yves Glodt [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Andres de la Cuadra wrote: Hola, me llamo Andres de la cuadra, soy un

Re: how to start a process and get it's pid?

2005-11-14 Thread J Correia
Peter Hansen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Fredrik Lundh wrote: Daniel Crespo wrote: os.spawnl(os.P_NOWAIT, c:/windows/notepad.exe) 1944 I don't get the correct PID. When I do os.spawnl(os.P_NOWAIT, c:/windows/notepad.exe) I get 168 (for example), while in

Re: Searching for txt file and importing to ms access

2005-10-21 Thread J Correia
Mark Line [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello! snip I've also managed to connect to my access database, and just print out a field in a table, but I cant find anywhere on the web that will help me to import data? Any help would be great?! snip Another method

Re: Human readable number formatting

2005-09-27 Thread J Correia
Alex Willmer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When reporting file sizes to the user, it's nice to print '16.1 MB', rather than '16123270 B'. This is the behaviour the command 'df -h' implements. There's no python function that I could find to perform this formatting ,

Re: Using win32com for web automation

2005-07-26 Thread J Correia
from win32com.client import Dispatch from time import sleep ie = Dispatch('InternetExplorer.Application') ie.Visible = 1 ie.Navigate(http://ispds-sepsr.prv:7500/cs/welcome.jsp;) while ie.ReadyState != 4: sleep(1) doc = ie.Document while doc.readyState != complete: sleep(1)

Re: login website that using PHP

2005-06-20 Thread J Correia
frost [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I am trying to login a website that using PHP and javascript. This is what happend if you browse that website using IE, after you login, you can go anywhere without enter your name and password again, as long as you keep

Re: How to receive events (eg. user mouse clicks) from IE

2005-06-13 Thread J Correia
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Resurrecting an old thread.. It seems that this solution does not return events on objects within frames in webpages eg . if you go to www.andersondirect.com - the page is composed of three frames called as topFrame main and

Re: separate IE instances?

2005-06-13 Thread J Correia
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry about that I had an instance of ie running in the background that was version 0 didn't see the problem tell this morining when my computer started to not work. it should be hwnds[1] should be hwnds[0]. I woud enumerate them

Re: separate IE instances?

2005-06-07 Thread J Correia
that I can launch them programmatically, but I'm hoping that someone can give me a definitive answer.) J Correia [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Right, I hadn't quite understood your problem when I posted my reply. The code posted does work and allow navigation, etc

Re: separate IE instances?

2005-06-07 Thread J Correia
Chris Curvey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] thanks for all the help. I'll give the ShellExecute() approach a try in the morning. The short version of what I'm trying to do is Have my website login to a 3rd party website on behalf of my customer, fill out a

Re: separate IE instances?

2005-06-06 Thread J Correia
Chris Curvey [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I need to create a set of IE instances that have different sets of session cookies. I thought that using the win32com.DispatchEx function would do this, but it doesn't seem to. In other words ie1 =

Re: Pressing A Webpage Button

2005-06-03 Thread J Correia
Esben Pedersen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do i know which methods the ie object has? dir(ie) doesn't show Navigate. For ie object: http://msdn.microsoft.com/workshop/browser/webbrowser/reference/ifaces/IWebBrowser2/IWebBrowser2.asp For document object:

Re: Pressing A Webpage Button

2005-06-01 Thread J Correia
Elliot Temple [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] How do I make Python press a button on a webpage? I looked at urllib, but I only see how to open a URL with that. I searched google but no luck. For example, google has a button input type=submit value=Google Search

Re: How to receive events (eg. user mouse clicks) from IE

2005-05-21 Thread J Correia
Roger Upole [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] There does appear to be some sort of conflict between the two event hooks. I wasn't seeing it before since IE was getting google from my browser cache and it was coming up almost instantaneously. As soon as I switched the

Re: How to receive events (eg. user mouse clicks) from IE

2005-05-20 Thread J Correia
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks for the response again. The solution is pretty close but not yet complete This is what I observed. a) I tried to use the delay mechanism as suggested below ie. ie.Navigate('www.google.com') while ie.ReadyState !- 4

Re: Internet Explorer, COM+, Javascript and Python

2005-04-28 Thread J Correia
Roger Upole [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Something like this should be close: import win32com.client, pythoncom ie=win32com.client.Dispatch('internetexplorer.application') ie.Visible=1 ie.Navigate('somepagewithjavascript.html')

Re: How to get rid of FutureWarning: hex/oct constants...

2005-04-05 Thread J Correia
Assuming you're just trying to get rid of the message each time the program runs, the following suppresses it: import warnings warnings.filterwarnings('ignore', category=FutureWarning) HTH, -- http://mail.python.org/mailman/listinfo/python-list