Python

Moderators: None (Apply to moderate this forum)
Number of threads: 474
Number of posts: 1166

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
using Aspen Plus with Python Posted by Bumbler on 11 Jul 2006 at 2:13 PM
This message was edited by Bumbler at 2006-7-11 14:16:4

Hi,
I need to make Python control Aspen Plus 2004, but it doesn't have any type of COM controls. Does anyone know a way to control the program?


Report
Re: using Aspen Plus with Python Posted by infidel on 12 Jul 2006 at 7:39 AM
: Hi,
: I need to make Python control Aspen Plus 2004, but it doesn't have any type of COM controls. Does anyone know a way to control the program?

I guess it depends on what you mean by "control". If you want to automate the pushing of buttons and entering of text, stuff like that, then you could try pywinauto: http://www.openqa.org/pywinauto/

I've only tinkered with it myself, and not recently, so I don't know if it is as powerful as you might need.

If Aspen Plus provides an API via regular (non-COM) DLLs, then you could look up the ctypes module for Python which might be useful.

If none of these work then maybe try asking on comp.lang.python


infidel

$ select * from users where clue > 0
no rows returned


Report
Re: using Aspen Plus with Python Posted by Bumbler on 12 Jul 2006 at 8:33 AM
: : Hi,
: : I need to make Python control Aspen Plus 2004, but it doesn't have any type of COM controls. Does anyone know a way to control the program?
:
: I guess it depends on what you mean by "control". If you want to automate the pushing of buttons and entering of text, stuff like that, then you could try pywinauto: http://www.openqa.org/pywinauto/
:
: I've only tinkered with it myself, and not recently, so I don't know if it is as powerful as you might need.
:
: If Aspen Plus provides an API via regular (non-COM) DLLs, then you could look up the ctypes module for Python which might be useful.
:
: If none of these work then maybe try asking on comp.lang.python
:
ok, thanks.
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:

Report
Re: using Aspen Plus with Python Posted by Bumbler on 13 Jul 2006 at 10:05 AM
: : Hi,
: : I need to make Python control Aspen Plus 2004, but it doesn't have any type of COM controls. Does anyone know a way to control the program?
:
: I guess it depends on what you mean by "control". If you want to automate the pushing of buttons and entering of text, stuff like that, then you could try pywinauto: http://www.openqa.org/pywinauto/
:
: I've only tinkered with it myself, and not recently, so I don't know if it is as powerful as you might need.
:
: If Aspen Plus provides an API via regular (non-COM) DLLs, then you could look up the ctypes module for Python which might be useful.
:
: If none of these work then maybe try asking on comp.lang.python
:
I got that to open the program, thanks, but now I can't make it use any of the menus because there is a dialog box that opens when the program opens that asks you to load a file or start a new project. Is there a way to make Python close the dialog box or open a file from that box?
:
: infidel
:
:
: $ select * from users where clue > 0
: no rows returned
: 

:
:

Report
Re: using Aspen Plus with Python Posted by infidel on 14 Jul 2006 at 7:16 AM
: I got that to open the program, thanks, but now I can't make it use any of the menus because there is a dialog box that opens when the program opens that asks you to load a file or start a new project. Is there a way to make Python close the dialog box or open a file from that box?

I believe that with the pywinauto library, you can use the caption of the dialog box to access it. Like if the caption in the title bar is "Select Project" then you could do something like "app.SelectProject.OK.Click()". I haven't looked up the syntax, but I think it's something like that.


infidel

$ select * from users where clue > 0
no rows returned





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.