Sign in to follow this  
Followers 0
jaydeep

removing autoit icon from taskbar

13 posts in this topic

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...

Share this post


Link to post
Share on other sites



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'

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."

 

WindowsError.gif

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

Share this post


Link to post
Share on other sites

TrayIconHide

Hides the AutoIt tray icon. Note: The icon will still initially appear ~750 milliseconds.

0 = show icon (default)

1 = hide icon

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Thank you all for posting such nice replies...i got what i was looking for.... you people are great...

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
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
Sign in to follow this  
Followers 0