Paulie Posted May 17, 2006 Share Posted May 17, 2006 I have a gui script that opens lists of programs that i frequently use, when a button in a separate window is clicked, but I want that window to be attached to my desktop like if you minimize windows media player, i want it right there plz help me TY Link to comment Share on other sites More sharing options...
Valuater Posted May 17, 2006 Share Posted May 17, 2006 (edited) 1You have been here long enough to know we need to see code to help you2Your question is not very clear... it is hard to understan just exactly you do and want to do3Have you tried putting a shortcut in the "quick Launch" portion of the taskbarhave you seen thisits located herehttp://www.autoitscript.com/forum/index.php?showtopic=25790#8) Edited May 17, 2006 by Valuater Link to comment Share on other sites More sharing options...
Paulie Posted May 17, 2006 Author Share Posted May 17, 2006 1Of course, im sorry, but now that i think about it, I was kinda decieving when i said that i had a GUI script, what i shoulda said was i'm Makinga gui script to do that. and considering GUI is the one part of Autoit that i don't quite grasp fully yet (pretty much my first script I've made mostly by myself aside from "Hello World" thats why i'm trying this script Experiance ) If I really show what I have so far in relation to how long I've been using AutoIt, do you promise not to laugh at me?(jk). I Just haven't used GUI alot and therefore am not that great at it. so far its just the little window that I want to put into the taskbarheres my script :"> :"> CODE#include <GUIConstants.au3>#include <_GUICtrlCreateTable.au3>Global $Button_[5];---comments#csTypes:1-Internet2-Media3-Autoit4-Business#ce;---Button GUI---$wind1 =GUICreate("Control", 185, 40, 1, -1, -1, Bitor($WS_EX_TOPMOST, $WS_EX_TOOLWINDOW))$Button_[1] = GuiCtrlCreateButton("1", 5, 5, 40, 30)$Button_[2] = GuiCtrlCreateButton("2", 50, 5, 40, 30)$Button_[3] = GuiCtrlCreateButton("3", 95, 5, 40, 30)$Button_[4] = GuiCtrlCreateButton("4", 140, 5, 40, 30)GUISetState()While 1 $msg1 = GUIGetMsg() If $msg1 = $GUI_EVENT_CLOSE Then ExitWend2If you run "Windows Media Player" play a song, and while the song is playing minimize the window, Windows Media Player goes onto the taskbar and sits over by the clock. I was wondering if it was possible to do that with a small GUI window, so that I can always have acess to it, and it takes up less desktop space3OF COURSE! as a matter of fact, I've got 2 of them running right now, but like I said, I'm in this for the Experiance to learn how to Make A GUI, incase you didn't notice(i'm sure you did), I'm bassing My script off of yours(I planned to give you the credits of course)another thing- (My GUI Newbiness shows through) with the buttons like Where in your "sliding toolbar" script did you link the buttons to running the programs? That confused me.TY Link to comment Share on other sites More sharing options...
Valuater Posted May 17, 2006 Share Posted May 17, 2006 (edited) maybe ... expandcollapse popup#include <GUIConstants.au3> ;#include <_GUICtrlCreateTable.au3> Global $Button_[5], $x ;---comments #cs Types: 1-Internet 2-Media 3-Autoit 4-Business #ce ;---Button GUI--- $wind1 = GUICreate("Control", 185, 80, @DesktopWidth - 190, @DesktopHeight - 110, $WS_SYSMENU, $WS_EX_TOPMOST) $Button_[1] = GUICtrlCreateButton("1", 5, 5, 40, 30) $Button_[2] = GUICtrlCreateButton("2", 50, 5, 40, 30) $Button_[3] = GUICtrlCreateButton("3", 95, 5, 40, 30) $Button_[4] = GUICtrlCreateButton("4", 140, 5, 40, 30) DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $wind1, "int", 500, "long", 0x00040008);slide-in from bottom GUISetState() Opt("TrayMenuMode", 1) Opt("TrayOnEventMode", 1) $show_tray = TrayCreateItem("Show Menu") TrayItemSetOnEvent(-1, "Set_Show") TrayCreateItem("") $exit_tray = TrayCreateItem("Exit Menu") TrayItemSetOnEvent(-1, "Set_Exit") TraySetState() While 1 $msg1 = GUIGetMsg() If $msg1 = $GUI_EVENT_CLOSE Then Set_Hide() EndIf for $x = 1 to 4 If $msg1 = $Button_[$x] Then Set_Function($x) Sleep(1) Next WEnd Func Set_Function($num) Set_Hide() MsgBox(64,"Test","you pressed button " & $x & " ", 3) EndFunc Func Set_Show() DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $wind1, "int", 500, "long", 0x00040008);slide-in from bottom GUISetState(@SW_SHOW, $wind1) EndFunc Func Set_Exit() DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $wind1, "int", 500, "long", 0x00050004);slide-out to bottom Exit EndFunc Func Set_Hide() DllCall("user32.dll", "int", "AnimateWindow", "hwnd", $wind1, "int", 500, "long", 0x00050004);slide-out to bottom GUISetState(@SW_HIDE, $wind1) EndFunc 8) Edited May 18, 2006 by Valuater Link to comment Share on other sites More sharing options...
GaryFrost Posted May 18, 2006 Share Posted May 18, 2006 You can also look for AnyGui in the scripts and scraps, I've used it before to create a combo box attached to the task bar. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. 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