Re: windows batch programming

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Tue, 12 Jul 2011 11:47:56 -0400

I think Ruby/Watir would work well if you were driving native Firefox, but since you want to manipulate a Firefox extension as well, you will probably have to send keystrokes, not just use a DOM-oriented API. In that case, I think AutoIt would work better. It will be challenging to know when the page has loaded, but delays might work.


A JAWS script might actually work better than AutoIt, since it could send keystrokes and could perhaps check the DocumentLoadedEvent to tell when a page has loaded.

Jamal

On 7/12/2011 9:01 AM, Homme, James wrote:
Hi,
Thanks for this. In case this explanation changes your answer, let me know.

The script will do the following. I may miss some steps, but you get the idea, 
I'm sure.

Open an input box and ask me the URL to go to.
Open Firefox.
It could possibly go directly to the URL via command line or type Alt+D, type 
the address, and press Enter.
Wait for the page to load.
Type Alt+A to get to the accessibility menu for the Firefox Accessibility 
Evaluator tool.
Hit right arrow.
Hit Enter.
Wait for the dialog to load.
Hit Alt+V.
Wait for the page to load.
Select all.
Copy to clipboard.
Store page title.
Open Word
Type Alt+Control+1 for heading 1 style.
Type page title, then Enter
Paste from clipboard.
Type Alt + F, then A.
Use page title plus some other words as file name.
Type Alt+S to save.
Close Word.
Close Firefox.

Jim



-----Original Message-----
From: Jamal Mazrui [mailto:empower@xxxxxxxxx]
Sent: Tuesday, July 12, 2011 8:43 AM
To: programmingblind@xxxxxxxxxxxxx
Cc: Homme, James
Subject: Re: windows batch programming

One of the objects of the Windows Script Host has a method for sending
keystrokes, which any COM client -- including a VBScript program -- can
access.  I do not recall the object off hand, but a Google for

VBScript send keys

will probably find it.  With that said, I think AutoIt has more features
for automating GUIs.  If scripting Firefox is of particular interest, I
think the best solution at present is the Watir gem for Ruby, which the
InRB interpreter incorporates

http://EmpowermentZone.com/InRb.zip

Of course, one can also use it with the standard Ruby interpreter.
Firefox is not easily scriptable with AutoIt because it does not use
standard controls (they are custom Mozilla controls).

Jamal


On 7/12/2011 8:21 AM, Homme, James wrote:
Hi,
Can VBScript easily send key strokes?

Thanks.

Jim

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui
Sent: Tuesday, July 12, 2011 8:20 AM
To: programmingblind@xxxxxxxxxxxxx
Cc: Arya
Subject: Re: windows batch programming

A large collection of text tutorials on VBScript programming is available at

http://EmpowermentZone.com/vbs56doc.zip

Another technology I think you should consider is Windows PowerShell.  A
tutorial collection for that is at

http://EmpowermentZone.com/ps1doc.zip

Jamal

On 7/11/2011 10:01 AM, Arya wrote:
HI Martin ,
Following is the frace I typed in google.
Tutorials for windows batch programming.
<   with Regards>


On 09-07-2011 PM 10:29, Martin Slack wrote:
Tell me what you typed into Google?
Martin


----- Original Message ----- From: "Arya"<misterenthu@xxxxxxxxx>
To:<programmingblind@xxxxxxxxxxxxx>
Sent: Saturday, July 09, 2011 5:54 PM
Subject: Re: windows batch programming


Hi Martin ,
I searched in google, but couldn't find any useful results.
Kindly help me please!
<   with cheers>


On 09-07-2011 PM 02:41, Martin Slack wrote:
Hi Arya,

If you type the title of your email into Google, you will get any
number of starting points.

Martin


----- Original Message ----- From: "Arya"<misterenthu@xxxxxxxxx>
To:<programmingblind@xxxxxxxxxxxxx>
Sent: Friday, July 08, 2011 5:04 PM
Subject: windows batch programming


Hello friends,
Could you please, direct me to a place, from where I can get some
starting tutorials for window batch programming?

With Cheers

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed.  If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
 The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.
__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: