jaydeep Posted March 19, 2010 Share Posted March 19, 2010 whenever i run an autoit exe file or execute an autoit script, an icon of the script comes in the taskbar.... i wanted to know how to remove that icon from the taskbar such that no such notification about a running script will come... Link to comment Share on other sites More sharing options...
nitekram Posted March 19, 2010 Share Posted March 19, 2010 whenever i run an autoit exe file or execute an autoit script, an icon of the script comes in the taskbar.... i wanted to know how to remove that icon from the taskbar such that no such notification about a running script will come...have you search the help file? try searching for 'disable icon' 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator Link to comment Share on other sites More sharing options...
Pain Posted March 19, 2010 Share Posted March 19, 2010 TrayIconHide Hides the AutoIt tray icon. Note: The icon will still initially appear ~750 milliseconds. 0 = show icon (default) 1 = hide icon Link to comment Share on other sites More sharing options...
martin Posted March 19, 2010 Share Posted March 19, 2010 have you search the help file? try searching for 'disable icon' What did you find when you searched for that? I can't find anything useful. If the OP didn't want to hide the tray icon but the task bar icon then maybe the answer is to make the gui a child of ProgramManager or of a hidden window, though there are lots of posts about this. $hParent = GUICreate("parent");not shown $hGui1 = GUICreate('No task bar icon ?(Parent is a hidden window)', 1100,800,0,0,-1,-1,$hParent) GUISetState() sleep(10000) GUIDelete($hGui1) GUIDelete($hParent) sleep(2000) $hGui1 = GUICreate('No task bar icon? (parent is Program Manager)', 1100,800,0,0,-1,-1,WinGetHandle("Program Manager")) GUISetState() While 1 $msg = GUIGetMsg() If $msg = -3 Then Exit EndIf WEnd Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
jaydeep Posted March 20, 2010 Author Share Posted March 20, 2010 What did you find when you searched for that? I can't find anything useful. If the OP didn't want to hide the tray icon but the task bar icon then maybe the answer is to make the gui a child of ProgramManager or of a hidden window, though there are lots of posts about this. $hParent = GUICreate("parent");not shown $hGui1 = GUICreate('No task bar icon ?(Parent is a hidden window)', 1100,800,0,0,-1,-1,$hParent) GUISetState() sleep(10000) GUIDelete($hGui1) GUIDelete($hParent) sleep(2000) $hGui1 = GUICreate('No task bar icon? (parent is Program Manager)', 1100,800,0,0,-1,-1,WinGetHandle("Program Manager")) GUISetState() While 1 $msg = GUIGetMsg() If $msg = -3 Then Exit EndIf WEnd well what i meant is when the script is running...the autoit logo comes in the task bar ...i dont want that to appear Link to comment Share on other sites More sharing options...
Yashied Posted March 20, 2010 Share Posted March 20, 2010 Completely without icons, Alt-Tab including. #NoTrayIcon #Include <WindowsConstants.au3> $hParent = GUICreate('', 0, 0, 0, 0, 0, $WS_EX_TOOLWINDOW) $hForm = GUICreate('MyGUI', 400, 400, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_SYSMENU), BitOR($WS_EX_DLGMODALFRAME, $WS_EX_TOPMOST), $hParent) GUISetState() Do Until GUIGetMsg() = -3 My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
martin Posted March 20, 2010 Share Posted March 20, 2010 Completely without icons, Alt-Tab including. #NoTrayIcon #Include <WindowsConstants.au3> $hParent = GUICreate('', 0, 0, 0, 0, 0, $WS_EX_TOOLWINDOW) $hForm = GUICreate('MyGUI', 400, 400, -1, -1, BitOR($WS_CAPTION, $WS_POPUP, $WS_SYSMENU), BitOR($WS_EX_DLGMODALFRAME, $WS_EX_TOPMOST), $hParent) GUISetState() Do Until GUIGetMsg() = -3 Yes but that is just the same as the first way I showed isn't it? Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
jaydeep Posted March 20, 2010 Author Share Posted March 20, 2010 Thank you all for posting such nice replies...i got what i was looking for.... you people are great... Link to comment Share on other sites More sharing options...
Yashied Posted March 20, 2010 Share Posted March 20, 2010 (edited) Yes but that is just the same as the first way I showed isn't it?Almost, I added WS_EX_TOOLWINDOW. Edited March 20, 2010 by Yashied My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
martin Posted March 20, 2010 Share Posted March 20, 2010 Almost, I added WS_EX_TOOLWINDOW.I know, but since you didn't set the state to @SW_SHOW that style was not needed. But it's a very small point. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Yashied Posted March 20, 2010 Share Posted March 20, 2010 I know, but since you didn't set the state to @SW_SHOW that style was not needed.Without it, the icon will be present on the Alt-Tab dialog. My UDFs: iKey | FTP Uploader | Battery Checker | Boot Manager | Font Viewer | UDF Keyword Manager | Run Dialog Replacement | USBProtect | 3D Axis | Calculator | Sleep | iSwitcher | TM | NetHelper | File Types Manager | Control Viewer | SynFolders | DLL Helper Animated Tray Icons UDF Library | Hotkeys UDF Library | Hotkeys Input Control UDF Library | Caret Shape UDF Library | Context Help UDF Library | Most Recently Used List UDF Library | Icons UDF Library | FTP UDF Library | Script Communications UDF Library | Color Chooser UDF Library | Color Picker Control UDF Library | IPHelper (Vista/7) UDF Library | WinAPI Extended UDF Library | WinAPIVhd UDF Library | Icon Chooser UDF Library | Copy UDF Library | Restart UDF Library | Event Log UDF Library | NotifyBox UDF Library | Pop-up Windows UDF Library | TVExplorer UDF Library | GuiHotKey UDF Library | GuiSysLink UDF Library | Package UDF Library | Skin UDF Library | AITray UDF Library | RDC UDF Library Appropriate path | Button text color | Gaussian random numbers | Header's styles (Vista/7) | ICON resource enumeration | Menu & INI | Tabbed string size | Tab's skin | Pop-up circular menu | Progress Bar without animation (Vista/7) | Registry export | Registry path jumping | Unique hardware ID | Windows alignment More... Link to comment Share on other sites More sharing options...
martin Posted March 20, 2010 Share Posted March 20, 2010 Without it, the icon will be present on the Alt-Tab dialog.Ok, I hadn't realized that, thanks.But if you use Program Manager for the parent as my second method did then you don't need to create a parent gui and the icon doesn't appear in the Alt Tab list either. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
sharpharp Posted April 22, 2010 Share Posted April 22, 2010 Yes but that is just the same as the first way I showed isn't it?I tried this, but I just get a big window in the screen, I just want to hide the Taskbar Icon so my script runs without it appearing in the Taskbar.Any ideas? 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