Ace08 Posted October 8, 2010 Share Posted October 8, 2010 hi guys my 1st task is now complete now i am trying to learn about GUI's... i was thinking can a GUI be renamed after you created it? additionaly can i make the script not to show at the taskbar when its running but will still show a tray icon so that i know that the script is running? is this posible? Work smarter not harder.My First Posted Script: DataBase Link to comment Share on other sites More sharing options...
wakillon Posted October 8, 2010 Share Posted October 8, 2010 (edited) hi guys my 1st task is now complete now i am trying to learn about GUI's... i was thinking can a GUI be renamed after you created it? additionaly can i make the script not to show at the taskbar when its running but will still show a tray icon so that i know that the script is running? is this posible? See winsettitle function in the helpfile ! $_Gui = GUICreate ( "", 300, 100, -1, -1 ) GUISetState ( ) $_I =0 While 1 $_I += 1 WinSetTitle ( $_Gui, '', $_I ) Sleep ( 1000 ) WEnd Edited October 8, 2010 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted October 8, 2010 Moderators Share Posted October 8, 2010 Ace08,You can remove a GUI's button from the taskbar by using the "parent" parameter when you create your GUI: #include <GUIConstantsEx.au3> ; Create parent $hGUI = GUICreate("Parent", 500, 500) GUISetState() ; Use parent handle when creating child $hGUI_No_TaskBar_1 = GUICreate("Child", 200, 200, 100, 100, Default, Default, $hGUI) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEndIf you do not have a parent, then you can use the ever-present, but hidden, AutoIt window: #include <GUIConstantsEx.au3> ; Use AutoIt window handle when creating child $hGUI_No_TaskBar_2 = GUICreate("AutoIt Window Child", 200, 200, 200, 200, Default, Default, WinGetHandle(AutoItWinGetTitle())) GUISetState() While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE Exit EndSwitch WEndI hope that helps. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Ace08 Posted October 8, 2010 Author Share Posted October 8, 2010 (edited) @wakillon thanks @Melba23 aw thats a lot of code i'll try this one thanks it might take a while Edited October 8, 2010 by Ace08 Work smarter not harder.My First Posted Script: DataBase Link to comment Share on other sites More sharing options...
Ace08 Posted October 8, 2010 Author Share Posted October 8, 2010 question? if i understand right, you used the autoit window to be the parent will this also apply with other applications? i mean can i link a child GUI to another application say notepad? with this the GUI's button on the taskbar will be its parent? Work smarter not harder.My First Posted Script: DataBase Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 8, 2010 Moderators Share Posted October 8, 2010 aw thats a lot of code i'll try this one thanks You could use $WS_EX_TOOLWINDOW in the ExStyle param of the GUI to remove from taskbar, however, it's going to change how the GUI looks visually. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Ace08 Posted October 8, 2010 Author Share Posted October 8, 2010 Thanks SmOke_N will try this one too and see how it would turn out Thanks again for the help and for staying with me i realy appreciate it Work smarter not harder.My First Posted Script: DataBase 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