You can't call procs in exe's like you can in dlls. If the program 
supports COM or ActiveX automation or DDE you could possibly control it 
with that. Or you could use the PyWin32 api to control the mouse to 
click on the button, but you'd have to know where it is. Another way is 
to use a program like MS Spy to see what the details of the button's 
"window" are, then in your program you could just find that window and 
send it WM_LBUTTON_DOWN (and up) messages.

Finally, what I think would be the easiest way, if it's just downloading 
a file, find out what the file is and download it yourself, using python 
code, like ftplib or httplib.

I hope this'll help you get started on the right track.

GBU
Matthew Sherborne

A wrote:

>Hi,
>I know that it is possible to call a function in DLL library( even though I have 
>never tried it) 
>from Python but is it possible to call a procedure in an exe program?
>I have a program that downloads some files( that was written in Delphi, we bought 
>that 
>program compiled already in exe).
>I must start the program and then push a button that runs a procedure for 
>downloading. 
>And I must do it al the time when I want to download a file. So I am thinking about 
>downloading automatically from Python. I can start the program
>with os.startfile but I do know know how to start the procedure that is started when 
>I push 
>the button for downloading.(I may possiblly find address of the procedure
>Can you please help?
>Ladislav
>
>
>
>
>_______________________________________________
>ActivePython mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
>Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython
>
>
>
>  
>




_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython

Reply via email to