Jump to content

removing autoit icon from taskbar


Recommended Posts

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

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

Link to comment
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.
Link to comment
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

Link to comment
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
Link to comment
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.
Link to comment
Share on other sites

Link to comment
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.
Link to comment
Share on other sites

Link to comment
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.
Link to comment
Share on other sites

  • 1 month later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...