Sign in to follow this  
Followers 0
silvermountain

Help! to find a script to launch 4 webpages on 4 screens

7 posts in this topic

#1 ·  Posted (edited)

I'm really appreciated if you could help me to find a solution for this issue:

I have four screens to monitor the network, each screen is dedicated for one page , for example;

the first screen to show the main page for the web application."whatsupgold"

the second page to show another link.

Is there any way to launch these pages automatically using autoit v3 and distribute these pages on the four screen when I reboot the machine.

the main page is http://torlogs01:8080/NmConsole/Workspace/HomeWorkspace

Thanks for helping me.

Edited by silvermountain

Share this post


Link to post
Share on other sites



I'm really appreciated if you could help me to find a solution for this issue:

I have four screens to monitor the network, each screen is dedicated for one page , for example;

the first screen to show the main page for the web application."whatsupgold"

the second page to show another link.

Is there any way to launch these pages automatically using autoit v3 and distribute these pages on the four screen when I reboot the machine.

the main page is http://torlogs01:8080/NmConsole/Workspace/HomeWorkspace

Thanks for helping me.

On the local monitor(s) with local apps it would just be Run() the apps, and WinMove() their windows.

Do you mean they are four browser windows? That could still be done with four instances of IE, or four embedded IE controls in a single AutoIt GUI.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

they are four browser windows.

each window should be launched on LCD screen.

so I have four screens monitors, each sreen is dedicated to show one internet explorer page.

to explain the case:

we have an application runs as web interface, this application to monitor the network. and we have four screens in the hallway area, these screens are dedicated to show the network, each screen shows one internet explorer page.

I need to find a script to launch four internet explorer pages on four LCD screens automatically, so when I reboot the machine, these pages opend automatically on the screens, each webpage goes to a specific screen, example:

the first webpage which is the main page goes to Screen 1.

the second webpage "another link" goes to screen 2.......etc.

thanks

Edited by silvermountain

Share this post


Link to post
Share on other sites

as PsaltyDS already said, Run() and WinMove() should do the trick...

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

as PsaltyDS already said, Run() and WinMove() should do the trick...

I do not understand, could you please explain more.

How can I do that?

Thanks

Edited by silvermountain

Share this post


Link to post
Share on other sites

I do not understand, could you please explain more.

How can I do that?

Thanks

This uses IE browser windows for the app instead of Run(), but the WinMove() is nicely demonstrated:
#include <IE.au3>

Global $avURL[4] = ["www.autoitscript.com", _
        "www.google.com", _
        "www.ubuntu.com", _
        "www.openoffice.org"]
Global $avIE[UBound($avURL)], $hIE

For $n = 0 To UBound($avURL) - 1
    If Mod($n, 2) Then
        $iX = @DesktopWidth / 2
    Else
        $iX = 0
    EndIf
    
    If $n >= 2 Then
        $iY = (@DesktopHeight - 32) / 2
    Else
        $iY = 0
    EndIf
    
    $avIE[$n] = _IECreate("http://" & $avURL[$n], 1, 1, 0)
    $hIE = _IEPropertyGet($avIE[$n], "hwnd")
    WinMove($hIE, "", $iX, $iY, @DesktopWidth / 2, (@DesktopHeight - 32) / 2, 5)
Next

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

thanks pasaltyDs, the script works perfect

I just changed the value "32" to "0"

Is there any way to scroll the page down in this script.

I'm really appreciated.

Thank you

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0