Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87820 > unrolled thread

Re: Automation of Windows app?

Started byMichael Torrie <torriem@gmail.com>
First post2015-03-22 21:43 -0600
Last post2015-08-30 16:18 +0000
Articles 5 — 5 participants

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Automation of Windows app? Michael Torrie <torriem@gmail.com> - 2015-03-22 21:43 -0600
    Re: Automation of Windows app? alex23 <wuwei23@gmail.com> - 2015-04-01 11:14 +1000
      Re: Automation of Windows app? ryguy7272 <ryanshuell@gmail.com> - 2015-08-30 07:25 -0700
        Re: Automation of Windows app? Laura Creighton <lac@openend.se> - 2015-08-30 17:08 +0200
          Re: Automation of Windows app? Grant Edwards <invalid@invalid.invalid> - 2015-08-30 16:18 +0000

#87820 — Re: Automation of Windows app?

FromMichael Torrie <torriem@gmail.com>
Date2015-03-22 21:43 -0600
SubjectRe: Automation of Windows app?
Message-ID<mailman.56.1427082215.10327.python-list@python.org>
On 03/20/2015 12:10 PM, Grant Edwards wrote:
> On 2015-03-20, Grant Edwards <invalid@invalid.invalid> wrote:
> 
>> I need to automate operation of a Windows application.
> 
> I should have mentioned that I've found and am going to experiment
> a bit with pywinauto-0.4.0, but if there is anything else I should
> look at, suggestions would be welcome.

As near as I can tell the standard go-to utility for this is a program
called AutoIt.  https://www.autoitscript.com/site/autoit/

Nothing to do with Python, and its scripting language is maybe not that
appealing to many, but it does the job, and does it pretty well.  I
first used it when working with a Linux-based PXE boot solution that
would automatically install Windows via a network boot, and install a
custom set of apps we set up.  Was super slick.

[toc] | [next] | [standalone]


#88409

Fromalex23 <wuwei23@gmail.com>
Date2015-04-01 11:14 +1000
Message-ID<mffgnt$ftu$1@dont-email.me>
In reply to#87820
On 23/03/2015 1:43 PM, Michael Torrie wrote:
> As near as I can tell the standard go-to utility for this is a program
> called AutoIt.  https://www.autoitscript.com/site/autoit/
>
> Nothing to do with Python, and its scripting language is maybe not that
> appealing to many, but it does the job, and does it pretty well.

Actually, it's not *entirely* unrelated, as there's a Python wrapper for it:

https://pypi.python.org/pypi/PyAutoIt/0.3

It's 2.7 only, though, so if 3.x is required, it's also possible to 
create your own wrapper using win32com:

http://stackoverflow.com/questions/151846/get-other-running-processes-window-sizes-in-python/155587#155587

[toc] | [prev] | [next] | [standalone]


#95767

Fromryguy7272 <ryanshuell@gmail.com>
Date2015-08-30 07:25 -0700
Message-ID<cc5451f3-9f2c-4176-ad36-66e6d45322a5@googlegroups.com>
In reply to#88409
On Tuesday, March 31, 2015 at 9:14:38 PM UTC-4, alex23 wrote:
> On 23/03/2015 1:43 PM, Michael Torrie wrote:
> > As near as I can tell the standard go-to utility for this is a program
> > called AutoIt.  https://www.autoitscript.com/site/autoit/
> >
> > Nothing to do with Python, and its scripting language is maybe not that
> > appealing to many, but it does the job, and does it pretty well.
> 
> Actually, it's not *entirely* unrelated, as there's a Python wrapper for it:
> 
> https://pypi.python.org/pypi/PyAutoIt/0.3
> 
> It's 2.7 only, though, so if 3.x is required, it's also possible to 
> create your own wrapper using win32com:
> 
> http://stackoverflow.com/questions/151846/get-other-running-processes-window-sizes-in-python/155587#155587


I know this is an old post, but anyway, can't you just use Windows Scheduler?
http://windows.microsoft.com/en-us/windows/schedule-task#1TC=windows-7

[toc] | [prev] | [next] | [standalone]


#95768

FromLaura Creighton <lac@openend.se>
Date2015-08-30 17:08 +0200
Message-ID<mailman.134.1440947337.11709.python-list@python.org>
In reply to#95767
In a message of Sun, 30 Aug 2015 07:25:55 -0700, ryguy7272 writes:

>I know this is an old post, but anyway, can't you just use Windows Scheduler?
>http://windows.microsoft.com/en-us/windows/schedule-task#1TC=windows-7

I think you may have missed the original post, where poor old
Grant Edwards said:

> I need to automate operation of a Windows application.  It's a
> conformance test app from a standards organizaiton, and it's
> _stunningly_ bad.  You have to sit it front of it like some sort of
> brainless slave and click a button every 10-20 minutes.

So his problem isn't he needs to schedule some tasks, but rather he
has to exercise a horrible app by sitting mindlessly in front of
a Gui and remembering to click something at it every so often.  Poor
Grant is going to expire of boredom before the job gets done.   But
a python program can be plenty intelligent enough for this task.

So Grant?  How did it go?  Would you recommend it for the rest of us?

Laura

[toc] | [prev] | [next] | [standalone]


#95769

FromGrant Edwards <invalid@invalid.invalid>
Date2015-08-30 16:18 +0000
Message-ID<mrvacu$ej8$1@reader1.panix.com>
In reply to#95768
On 2015-08-30, Laura Creighton <lac@openend.se> wrote:
> In a message of Sun, 30 Aug 2015 07:25:55 -0700, ryguy7272 writes:
>
>>I know this is an old post, but anyway, can't you just use Windows Scheduler?
>>http://windows.microsoft.com/en-us/windows/schedule-task#1TC=windows-7
>
> I think you may have missed the original post, where poor old
> Grant Edwards said:
>
>> I need to automate operation of a Windows application.  It's a
>> conformance test app from a standards organizaiton, and it's
>> _stunningly_ bad.  You have to sit it front of it like some sort of
>> brainless slave and click a button every 10-20 minutes.
>
> So his problem isn't he needs to schedule some tasks, but rather he
> has to exercise a horrible app by sitting mindlessly in front of
> a Gui and remembering to click something at it every so often.  Poor
> Grant is going to expire of boredom before the job gets done.   But
> a python program can be plenty intelligent enough for this task.
>
> So Grant?  How did it go?  Would you recommend it for the rest of us?

[Regarding https://pypi.python.org/pypi/PyAutoIt/0.3]

Definitely.  It worked just fine for what I needed to do.  I started
the application and configured a few settings "by hand" and started
the conformance test application.  Once it was running, I started my
little Python program which waited for the "pass/fail" window to pop
up and then clicked "continue" to continue the tests.  Presto:
unattended test runs.

-- 
Grant

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web