Jump to content

Win7 Live Taskbar Preview


SkellySoul
 Share

Recommended Posts

Hello :)

I am new to the Windows 7 Taskbar coming from XP so I attempted to make this but it doesn't work so well.

What this is suppose to do is you have your main GUI and when you minimize your main GUI it gets hidden and creates a new GUI with a picture...why...well because then you can go down to your taskbar and hover over and see the image...good for about boxes or logos.

I know this doesn't work as the way I intended because it is a bit glitchy but still works and was hoping someone would like the idea and possibly come up with a solution.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

$GUI = GUICreate("Test", 800, 600)

GUISetState(@SW_SHOW)
While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $GUI_EVENT_MINIMIZE
            _Mini()
    EndSwitch
WEnd

Func _Mini()
    GUISetState(@SW_HIDE, $GUI)
    $Mini = GUICreate("Mini", 800, 600)
    GUICtrlCreatePic(@ScriptDir & "\Autoit.jpg", 0, 0, 800, 600)
    GUISetState(@SW_SHOW) ;@SW_MINIMIZE - must show first?
    WinSetTrans($Mini, "", 0)
    While 1
    $Msg = GUIGetMsg()
    Switch $Msg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $GUI_EVENT_RESTORE
            GUIDelete($Mini)
            GUISetState(@SW_SHOW, $GUI)
            ExitLoop
    EndSwitch
WEnd
EndFunc

post-48836-0-31589300-1301259263_thumb.j

Edited by SkellySoul
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...