Jump to content

Multi Screens


Recommended Posts

I had an idea pop up in my head from viewing this post

Multi Desktops

What does it do...

- it can run up to 4 windows (desktops) at same time side by side

(add more windows later if I ever get finished I might just be thinking way ahead of myself like always)

so far I just started but I would like to add your idea's because once it is coded it will be hard to add it in but may be later on I can make it so it's easier to customize.

Helped getting the objects to fit peoples desktops I hope.

here is a test image

Posted Image

code so far (long ways to go hehe) not the actual code just an example

If I don't finish it will make a nice scrap I guess

#include <GUIConstants.au3>
$GUI = GUICreate("", 75, 40 , Default , Default , $WS_POPUP)
$Screens = GUICtrlCreateCombo("Screens", 0, 0, 75, 30)
$Select = GUICtrlCreateButton("Select" , 0 , 20 , 75 , 20)
GUICtrlSetData($Screens ,"1|2|3|4")
GUISetState(@SW_SHOW)

While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Select
            If GUICtrlRead($Screens) = "4" Then
                _CreateScreen();;;GUICtrlRead($Screens))
            ElseIf GUICtrlRead($Screens) = "Screens" Then
                MsgBox(0 , "" , "you can not select that")
            Else
                MsgBox(0 , "" , "not added at this time...")
            EndIf
    EndSwitch
WEnd

Func _CreateScreen()
GUICreate("", @DesktopWidth, @DesktopHeight , Default , Default) ;, $WS_POPUP)
GUICtrlCreatePic("Example.bmp" , 0 , 0 , @DesktopWidth /2, @DesktopHeight /2)
GUICtrlCreatePic("Example.bmp" , 0 , @DesktopHeight /2, @DesktopWidth /2, @DesktopHeight /2)
GUICtrlCreatePic("Example.bmp" , @DesktopWidth /2, 0, @DesktopWidth /2, @DesktopHeight /2)
GUICtrlCreatePic("Example.bmp" , @DesktopWidth /2, @DesktopHeight /2, @DesktopWidth /2, @DesktopHeight /2)
GUISetState(@SW_SHOW)
While 1
    $Msg = GUIGetMsg()
        Switch $Msg
            Case $GUI_EVENT_CLOSE
            Exit
    EndSwitch
WEnd
EndFunc
Edited by JellyFish666
Link to comment
Share on other sites

:) What? I don't see how that image relates to the script.

it doesn't it is just a test image, meaning you can set a background for all 4 screens and the backgrounds will be disabled and act like a desktop you can run your desktop, internet, windows media player, folders anything you can think of its like having 4 monitors attached together but all in one, lots of work to still do though.

real size image backgrounds would be nice but it would make the screen bigger then your GUI which is the width and height of your monitor so I need a picture shrinker later on :(

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...