Batch Posted May 5, 2004 Share Posted May 5, 2004 Greets uberhaxors, hehe. I have been writing all sorts of stuff in AutoIt for my company. I have a login script that checks the users' location of their My Documents folder to make sure our Group Policy redirection is working (office politics made this pointless endeavour necessary ) Anyway, I've set the TrayIconHide option and it works fine on most systems. My coworkers just informed me this morning, and someone entered a helpdesk ticket wanting to know what these icons were in their tray, and they have screenshots. The icons don't disappear, they stick around until you mouse over them and then they disappear. I'm sure some of you have already run into this before. I'm using AutoIt 3.0.101, the example system that had this problem was a Windows XP system, using the XP theme, and they had the "hide inactive icons" setting enabled. Help! I love AutoIt, but if several associates are being annoyed with multiple tray icons, especially since I have scripts running every other hour, I won't be able to continue to use AutoIt! TRAGEDY! Link to comment Share on other sites More sharing options...
ezzetabi Posted May 5, 2004 Share Posted May 5, 2004 Seriuosly Tell them: "I am the master, funk you and accept that icons. they are nothing of your concern" Normal The icon appear even after that command for a short while, maybe their system is busy and it does not hide the icon quickly? To Jon: What about adding an option in the compiler that deactivate the icon completly? I have a similar problem and I solved it with the first answer Link to comment Share on other sites More sharing options...
Batch Posted May 5, 2004 Author Share Posted May 5, 2004 Ezzetabi, I wish it were that simple, hehe. I have seen where CyberSlug gave the way to go in the source code and remove the icon all together, but unfortunately, I am no programmer, and I don't have the tools to compile the source code! Jon, Larry, some of you ninja masters, do ya'll already have a compiled version of AutoIt that doesn't have the tray icon at all that you could send me, or I can go download. The initial appearance doesn't bother me at all, I understand why you put it in, but it is stacking multiple A's in people's tray, and the way things go around here, if I don't get rid of them quick, I'll lose the ability to do a lot of useful things with AutoIt. Please help! Link to comment Share on other sites More sharing options...
Helge Posted May 5, 2004 Share Posted May 5, 2004 Maybe a EnvUpdate will do the trick ? Link to comment Share on other sites More sharing options...
ezzetabi Posted May 5, 2004 Share Posted May 5, 2004 How? Why? Link to comment Share on other sites More sharing options...
Helge Posted May 5, 2004 Share Posted May 5, 2004 Maybe...Why not... Haven't got the chance to touch AutoIt in many weeks so I'm a bit rusty.. Sorry.. Link to comment Share on other sites More sharing options...
Valik Posted May 5, 2004 Share Posted May 5, 2004 There are 2 reasons (That I've experienced) that ANY tray icon won't disappear correctly.1) The system is EXTREMELY busy. I can rarely cause this on my system, it usually involves compiling something + VMware + 39028582903 other things running. In fact, it normally requires some errant process to run away and eat everything up in order for it to happen to another program.2) The program crashed.There are 3 reasons...3) Sometimes on XP, the "Hide inactive icons" feature forgets to remove something. Link to comment Share on other sites More sharing options...
Batch Posted May 5, 2004 Author Share Posted May 5, 2004 I have noticed the same thing Valik, with high CPU usage anyway, however, I am only outputting the location of the My Documents folder to a text file, nothing fancy, and it won't last for more than a second. I'll look at disabling the "hide inactive icons" but I still don't consider that a solution to my problem. Helge: EnvUpdate on Google turned up a reference to AutoHotKey, which I understand to be like AutoIt, but not the same thing. Link to comment Share on other sites More sharing options...
Valik Posted May 5, 2004 Share Posted May 5, 2004 EnvUpdate is a built-in command that updates the system environment by sending a WM_SETTING change message to all windows. I don't think it will update the icons, though (Although, there is a way to tell icons to update, I just don't know how to do it). Link to comment Share on other sites More sharing options...
Helge Posted May 5, 2004 Share Posted May 5, 2004 You probably have right about that AutoHotKey got the EnvUpdate-function, but AutoIt also got it.. But if Valik is correct, then it wont update the icons anyway.. PS ! I think I've seen someone posted something similar to this earlier.. You might wanna search the forum for this.. (Have tried it myself but didn't get any good hits) Good luck anyway ! Link to comment Share on other sites More sharing options...
Batch Posted May 5, 2004 Author Share Posted May 5, 2004 My apologies Helge, you are correct, I searched the help file and there is an EnvUpdate, I didn't recognize it so I looked it up on google and the first reference was to AutoHotKey. I'm not sure I follow Larry's comment. Are you guys suggested I add a line at the end of my script that just says: EnvUpdate() And that will correct the problem? Link to comment Share on other sites More sharing options...
Valik Posted May 5, 2004 Share Posted May 5, 2004 there is a notifyiconchange messageLar.What is it? Link to comment Share on other sites More sharing options...
CyberSlug Posted May 5, 2004 Share Posted May 5, 2004 there is a notifyiconchange messageLar.On a related note, I was looking at how to enumerate tray icons the other day. this site has some example code, but I'm afraid I don't understand it Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Developers Jos Posted May 5, 2004 Developers Share Posted May 5, 2004 Just a though: Could we make it a compile option (preprocessor statement) that would default the TrayIconHide to 1 ? This would avoid the brief popup as well when the first script statement is: Opt("TrayIconHide", 0) SciTE4AutoIt3 Full installer Download page  - Beta files    Read before posting   How to post scriptsource   Forum etiquette Forum Rules  Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Helge Posted May 5, 2004 Share Posted May 5, 2004 Could we make it a compile option (preprocessor statement) that would default the TrayIconHide to 1 ?I think that Jon added the delay (750 msec isn't it ?) to make the version 3 of AutoIt,less popular for making hostile scripts...I guess.. Link to comment Share on other sites More sharing options...
Batch Posted May 5, 2004 Author Share Posted May 5, 2004 Hey I'm down with whatever, I'm just trying to keep AutoIt alive here. I know how things go. The company I work for services other business in the building, and we're all about some "make everybody happy, no inconveniences" and all that. I like JdeB's idea, seems like it would be easier (I can't recompile anything myself). I know we don't want AutoIt classified as some kind of hacker tool by making it all invisible and stuff, but the point of hiding the tray icon is to keep users out of the loop anyway. Most of the time they won't notice the tray icon if it's working correctly so it really won't be a big deal if there is an option of turning it off entirely, IMHO. Whatchya'll think? Link to comment Share on other sites More sharing options...
Batch Posted May 5, 2004 Author Share Posted May 5, 2004 Here's a thought: Maybe there could be a registry key you could change on client machines to hide the icon entirely. That way, you would already have to have admin rights to a machine (obviously to manipulate most areas in the registry). If you've got admin rights to a machine, you can 0wn it any way. I'm sure others are having the same problem as myself. Honestly, if you're trying to create a hostile script, there's probably some third party freeware something you could wrap the program with and prevent an icon with. If someone was going to use AutoIt for the wrong reasons, there's probably not much you could do to stop them any way. So if that's the only reason for displaying the icon for ~750ms or so, then the point is kind of moot, isn't it? Link to comment Share on other sites More sharing options...
scriptkitty Posted May 5, 2004 Share Posted May 5, 2004 just use a clear icon, it will still move thier icons around, but they will just think it is adjusting or loading. If you can't find one or don't know how, use mine.http://4dd.net/clear.ico AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
SlimShady Posted May 5, 2004 Share Posted May 5, 2004 @scriptkitty: That's a great workaround. Link to comment Share on other sites More sharing options...
emmanuel Posted May 5, 2004 Share Posted May 5, 2004 hey, I was about to say that. (though I was going to point out that's what someone malicious might do) "I'm not even supposed to be here today!" -Dante (Hicks) 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