SkellySoul Posted March 27, 2011 Share Posted March 27, 2011 (edited) 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 Edited March 27, 2011 by SkellySoul Link to comment Share on other sites More sharing options...
SkellySoul Posted March 27, 2011 Author Share Posted March 27, 2011 It should look like this in your taskbar Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now