[jawsscripts] Passing login information in URL

  • From: "Donald Marang" <donald.marang@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 3 May 2009 16:56:11 -0400

Can someone refresh my memory?  I know that it is possible to pass username and 
password credentials in an FTP URL.  Can someone remind me of the exact syntax?
Is it possible to do something similar on a website?  I want to get a script 
completed to make Programming a DVR easier.  I have a DirecTV DVR where shows 
can be set to record through a webpage.  The normal TV Listings webpage is 
horrendous for someone who is visually impaired!  Actually, it is bad for 
everyone.  They have removed all user customizations to pick favorite channels 
and so on.  It would take me hours to go through hundreds of channels just to 
see what's on.  I use another TB Listings site, TitanTV, for this purpose.  
Then when I find a show I want to record, I login to the DirecTV Mobile DVR 
Scheduler website to set the recording.  

My script will grab the title of the show or movie with a simple GetLine 
statement.  It then logs into the website at the page m.directv.com (I actually 
use the address that this translates to on the address bar).  This website's 
sole purpose is to schedule DVRs and is very straightforward and sparse.  At 
the first page after logging in, I would select "Search for Shows", and then on 
the next page, enter the show title collected from the other website.

This primarily works for me now imitating keystrokes with Typekey and such.  It 
is somewhat unreliable and awkward.  I would like to streamline the process and 
ideally going directly to the search page and directly interacting with the DOM 
for the page.  I am thinking I should be able to use something similar to the 
following, but I need to learn better the DOM structure for HTML forms and how 
DOM object oriented structures and indexing get translated in JAWS programming. 
 

Var
   String sProgram,
   Object oDoc, 
   String sURL

let oDoc = ieGetCurrentDocument ()

Let sURL = oDoc.url ; Creates the URL of the current page


Let oDoc.forms(0).TestSearch.value = sProgram ; enter the program title in the 
search box labeled, "TestSearch" in the HTML code
oDoc.buttons(0).focus ; set the focus to the first button
oDoc.buttons(0).click ; Activate the button

Can someone give me a little insight how object calls like this should be 
accomplished for a simple task like this?

Don Marang


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: