Sign in to follow this  
Followers 0
wondimuf

SystemTray Icon Is Not Removed

4 posts in this topic

I am using AutoIt3 version 3.2.12.1 and Windows XP SP3. I compiled my AutoIt3 script (changed .au3 to .exe) and run it. The custom icon appeared on the system tray. When I removed the script from Windows Task Manager (by right-clicking it from Task Manager and clicking "End Process"), the icon was not removed from the system tray. When I put the mouse cursor over it, it disappears. Please tell me how I can remove the icon without putting the cursor over it.

Share this post


Link to post
Share on other sites



Don't close it by using the Task Manager. Create a function to close the script using the Exit command and a way for the user to call it.


[center][/center]Working on the next big thing.Currently Playing: Halo 4, League of LegendsXBL GT: iRememberYhslaw

Share this post


Link to post
Share on other sites

Just put an Exit(0) on end of your script, and close it by HotKey or some button(if you have GUI)


Share this post


Link to post
Share on other sites

Read the HelpFile for Opt("TraySetState", ?) and use it before closing the script.

like

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
        TraySetState(2)
        Sleep(100)
        Exit
    EndSwitch
WEnd

just a example and trying to help!


Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, ‘What happened?’” –Casey Stengel

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