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: http://aspn.activestat

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" > r

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

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") >

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,

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! > > > 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?! > > Another meth

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 > format

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":

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

Re: win32evtlog

2005-06-13 Thread J Correia
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Doh! I didn't think to look in the demo directory. Silly me. > http://www.win32com.de/index.php?option=com_content&task=view&id=163&Itemid=189 -- http://mail.python.org/mailman/listinfo/python-list

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 the

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

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, > fil

Re: separate IE instances?

2005-06-07 Thread J Correia
from the Start menu. (Of course, that doesn't > > mean 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 ha

Re: separate IE instances?

2005-06-07 Thread J Correia
"Chris Curvey" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I would have given up on this a long time ago, but I can create two > IEXPLORE processes simultaneously (and get the behavior I want) by just > manually launching them from the Start menu. (Of course, that doesn't > mean

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 = win32com.Dispa

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: h

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 how would i make a script to

Re: Access lotus notes using Python

2005-05-23 Thread J Correia
> >>The Great 'Sateesh' uttered these words on 5/23/2005 7:14 AM: > >>>Is it possible to access Lotus notes using Python? Can anyone provide me > >>>some pointers? This might help you get started once you've installed the win32 modules. http://tinyurl.com/a9ocy -- http://mail.python.org/mail

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 switch

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: Webbrowser On Windows

2005-05-02 Thread J Correia
"M.E.Farmer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I played around with it. > > import pythoncom > from win32com.client import Dispatch > ###

Re: Webbrowser On Windows

2005-05-01 Thread J Correia
><[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >It seems to me that there is no way to create a new instance of Internet >Explorer (if there are already some IE windows opened). >Does anyone know a possible solution? Or a workaround (without using >startfile, maybe?) that will force I

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') > id=ie.Document.Script._

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