Re: Office COM automatisation - calling python from VBA

2005-06-24 Thread erinhouston
Can you make python into a com object? I think you can I just don't rember. If so you want to find a page about com add-ins for office. This is a com object that you can teach office to look for when It is started. I wrote one in vb years ago and havn't looked back. But I think that would be the

Re: User interfaces in console (dialog like)

2005-06-23 Thread erinhouston
Do you only need to work on windows? if so you could use http://newcenturycomputers.net/projects/wconio.html to build your own gui. We used this for our inhouse ldap admin script. -- http://mail.python.org/mailman/listinfo/python-list

Re: login website that using PHP

2005-06-20 Thread erinhouston
Here are the links to ishy_browser. http://www.ishpeck.net/index.php?P=b1115239318ishpeck http://www.ishpeck.net/index.php?P=b1115225809ishpeck -- http://mail.python.org/mailman/listinfo/python-list

Re: Using PAMIE to upload and download files...is it possible?

2005-06-14 Thread erinhouston
So here is a class that should do what you want. I don't use pamie we use a in house python ie driver. But it has the same problem. Here is a class that should do what you want. import winGuiAuto import threading class SaveAsDocDialog (threading.Thread): '''Some Internet Explorer dialog w

Re: separate IE instances?

2005-06-13 Thread erinhouston
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 like in the code below. If you have ie as your default browser yo

Re: how to startup the default web browser to open a url?

2005-06-12 Thread erinhouston
flyaflya wrote: > I want to startup the default web browser(ie...) to open a url, "execl" > can open a process, but when the process exit, the other process will > exit too, has any why to deal this problem? You can do this with the win32aip module found in win32all Home page http://starship.pyt

Re: separate IE instances?

2005-06-08 Thread erinhouston
Here is quick and dirty example of what jc talked about. import win32api from win32com.client import Dispatch a = win32api.ShellExecute(0,None,"iexplore.exe",None,None,1) internetExplorerClassIdentity='{9BA05972-F6A8-11CF-A442-00A0C90A8F39}' hwnds = Dispatch(internetExplorerClassIdentity) ieObj =

Re: Using PAMIE to upload and download files...is it possible?

2005-06-08 Thread erinhouston
You are opening up the file open dialog when you are trying to do this right? If so you will need to use winguiauto. To find the dialog and the use it to enter the info you want. I included some code that shows how to do this. One other problem you are going to have is that these dialogs are call

Re: Automatically populate and submit HTML Forms

2005-05-26 Thread erinhouston
These two blog entries might be of help to you. http://www.ishpeck.net/index.php?P=b1115239318ishpeck second half is at http://www.ishpeck.net/index.php?P=b1115225809ishpeck alex23 wrote: > Hey rbt, > > You should take a look at mechanize: > http://wwwsearch.sourceforge.net/mechanize/ > > One of

Re: Outlook-MAPI

2005-05-09 Thread erinhouston
This code should help. code import win32com.client olMailItem = 0x0 obj = win32com.client.Dispatch("Outlook.Application") newMail = obj.CreateItem(olMailItem) newMail.Subject = "This works" newMail.Body = "It worked aging\n" newMail.display() V.C.Sekhar wrote: > Hi there, > > Can any

Testing that a value is set.

2005-04-08 Thread erinhouston
I am using winGuiAuto to test a program. I want to check that a varible is set. In the following code I am doing if(len(str(hwnd)) < 0) What is the python way? def clickNdSyncStopButton(hwnd=None): if(hwnd == None): hwnd = winGuiAuto.findTopWindow("NDSync") if(len(str(hwnd)) < 0)

Re: how do you use a closure in a class

2005-03-30 Thread erinhouston
Thanks that made it work. If I did it that way I think the other programmers on my team would kill me so I will stick with wrapping the function over and over again. -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you use a closure in a class

2005-03-30 Thread erinhouston
Thanks I will try that. -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you use a closure in a class

2005-03-30 Thread erinhouston
Also note I can't read or type is seems. what I want to know is how to take a function like. I realley need to fininsh my coke before I try to think. -- http://mail.python.org/mailman/listinfo/python-list

Re: how do you use a closure in a class

2005-03-30 Thread erinhouston
What I wanted it to know how to. Take a function like. Note replace ... with spaces. def makeAddr(tAdd): def add(tNum): return tNum + tAdd return add In a class so I make several functions that do the same thing but on diffrent objects. I ended up writing a base function and just

how do you use a closure in a class

2005-03-29 Thread erinhouston
I have several functions that are almost the same in one class I would like to use a closure to get rid of the extra code how would I do this? -- http://mail.python.org/mailman/listinfo/python-list