The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OT: Batch File Help


  • To: ukha_d@xxxxxxx
  • Subject: Re: OT: Batch File Help
  • From: "Graham Howe" <graham@xxxxxxx>
  • Date: Thu, 03 Oct 2002 14:45:56 -0000
  • Mailing-list: list ukha_d@xxxxxxx; contact ukha_d-owner@xxxxxxx
  • Reply-to: ukha_d@xxxxxxx

--- In ukha_d@y..., Frost Neil <Neil.Frost@s...> wrote:
> Like this....
>
> copy and paste into notepad, change the URL's and save as .vbs.
>
> You can run as an AT job or if you need a batch file just put the
path in.
>
> eg c:\test.vbs
>
> Neil
>
For maximum flexibility try this

'----------------------------
Dim ie
Dim screen_width
Dim screen_height
Dim screen_columns
Dim screen_rows
Dim screen_count
Dim screen_urls

screen_width = 1024
screen_height = 768
screen_columns = 3 ' number of windows horizontally
screen_rows = 2 ' number of windows vertically

screen_urls = array( _
                    "http://www.theregister.co.uk", _
                    "http://www.google.com", _
                    "http://www.yahoo.com", _
                    "http://www.bbc.co.uk", _
                    "http://www.automatedhome.co.uk", _
                    "http://www.letsautomate.com" _
                   )

' urls in the array above will be placed in windows
' from left to right and top to bottom

screen_count = -1

Set WshShell = WScript.CreateObject("WScript.Shell")

for thisRow = 0 to screen_rows - 1
    for thisColumn = 0 to screen_columns - 1
        screen_count = screen_count + 1
        Set ie = CreateObject("InternetExplorer.Application")
        ie.left=thisColumn * (screen_width/screen_columns)
        ie.top=thisRow * ((screen_height/screen_rows) - 10)
        ie.height=(screen_height/screen_rows)
        ie.width=(screen_width/screen_columns)
        ie.menubar=0
        ie.toolbar=0
        ie.navigate screen_urls(screen_count)
        ie.visible=1
    next
next

Set WshShell = Nothing
Set ie = Nothing
wscript.quit

'----------------------------


Graham


Yahoo! Groups Sponsor
ADVERTISEMENT

http://www.automatedhome.co.uk
Post message: ukha_d@xxxxxxx
Subscribe:  ukha_d-subscribe@xxxxxxx
Unsubscribe:  ukha_d-unsubscribe@xxxxxxx
List owner:  ukha_d-owner@xxxxxxx
List of UKHA Groups here - http://groups.yahoo.com/group/UKHA_Grouplists/


Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

Home | Main Index | Thread Index

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.