This is a script that searches for the New Zealand postcode using the above link that is created by the Firefox icon on the patient details<pre id="pre">try { number = find(/Number: ([\w\s]+)/).groups[1]; } catch(e) { number = ''; // a pair of single quotes here } try { street = find(/Street: (.*)/).groups[1]; } catch(e) { street = ''; } try { suburb = find(/Suburb: (.*)/).groups[1]; } catch(e) { suburb = ''; } try { city = find(/City: (.*)/).groups[1]; } catch(e) { city = ''; } with(openTab('http://www.nzpost.co.nz/Cultures/en-NZ/OnlineTools/PostCodeFinder/', true)) { enter("Number",number) enter("Street Name",street) enter("Suburb",suburb) enter("City",city) click("SubmitAddressSearchImageButton") } </pre>
made a quick video demo of looking up a patient's address on google maps. previously, all I had to do was http://compkarori.no-ip.biz:8090/Searchzip.html