mattw112 Posted May 12, 2010 Share Posted May 12, 2010 I am trying to test the trayseticon command. Nothing fancy. Basically: TraySetIcon("wucltux.dll", 1) While 1 Sleep (60000) WEnd But for some reason the autoit icon is always the same old one. I've also tried using the full path to the dll with no luck. Thanks, Terry Link to comment Share on other sites More sharing options...
mattw112 Posted May 12, 2010 Author Share Posted May 12, 2010 By the way it is Windows 7 X64. Not sure if it matters though. Terry Link to comment Share on other sites More sharing options...
Developers Jos Posted May 12, 2010 Developers Share Posted May 12, 2010 Works for me ...same OS Jos 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...
mattw112 Posted May 12, 2010 Author Share Posted May 12, 2010 Works for me ...same OSJosReally?!? All I get when it launches it the normal AutoIt tray icon??Any idea what could cause it to be different?Thanks,Terry Link to comment Share on other sites More sharing options...
mattw112 Posted May 12, 2010 Author Share Posted May 12, 2010 Are you x64 as well? or just same OS? terry Link to comment Share on other sites More sharing options...
KaFu Posted May 12, 2010 Share Posted May 12, 2010 (edited) Win7 64bit Ultimate here, and it works too. Maybe there's a problem with you environment variables / dll location? You refer to "wucltux.dll" without a path... Edited May 12, 2010 by KaFu OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
Developers Jos Posted May 13, 2010 Developers Share Posted May 13, 2010 Are you x64 as well? or just same OS?terryYep: OS:WIN_7/ CPU:X64 OS:X64Jos 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...
DW1 Posted May 13, 2010 Share Posted May 13, 2010 Working for me too. Win 7 x64. Icon looks like "available updates" icon. AutoIt3 Online Help Link to comment Share on other sites More sharing options...
ShawnW Posted May 13, 2010 Share Posted May 13, 2010 Icon looks like "available updates" icon.I hope he is not trying to write some fake windows updater. Link to comment Share on other sites More sharing options...
mattw112 Posted May 13, 2010 Author Share Posted May 13, 2010 (edited) I hope he is not trying to write some fake windows updater. lol,noWe use SCCM with WSUS to do updates and are looking to write something so the end users know more about what is going on as well as giving them more options around rebooting after updates are installed.Right now just experimenting with this. Could use any icon I just thought this one would look familiar.Terry Edited May 13, 2010 by mattw112 Link to comment Share on other sites More sharing options...
mattw112 Posted May 13, 2010 Author Share Posted May 13, 2010 Win7 64bit Ultimate here, and it works too. Maybe there's a problem with you environment variables / dll location? You refer to "wucltux.dll" without a path...I've tried with a path too, with no luck.Not sure what would be messed up,This is a pretty straight forward build of Windows 7 enterprise X64.hmm...Thanks,terry Link to comment Share on other sites More sharing options...
sander1991 Posted May 18, 2010 Share Posted May 18, 2010 why do you need a tray icon? why not just remove it with #NoTrayIcon Link to comment Share on other sites More sharing options...
mattw112 Posted May 21, 2010 Author Share Posted May 21, 2010 why do you need a tray icon? why not just remove it with #NoTrayIconBecause we want the tray icon?? not sure I understand.Like I stated we want to have the tray icon, we just want it to give better informationI still can't get it to work on my Win 7 enterprise x64 machine, not sure why pretty straight forward code.I'll keep trying.Terry Link to comment Share on other sites More sharing options...
GEOSoft Posted May 21, 2010 Share Posted May 21, 2010 You are not by any chance using another trayseticon() someplace else in the script are you? George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
mattw112 Posted May 23, 2010 Author Share Posted May 23, 2010 You are not by any chance using another trayseticon() someplace else in the script are you? Nope just doing this basic code TraySetIcon("wucltux.dll", 1) While 1 Sleep (60000) WEnd That's it for the whole script. Terry Link to comment Share on other sites More sharing options...
mistaecko Posted June 9, 2010 Share Posted June 9, 2010 Having the same problem here on Windows 7 Ultimate x64. Trayicon will not change, tried about 3 different exe's in different locations, using relative and absolute paths. Seems that other trayicon related functions don't work either (like TrayCreateItem). When clicking the AutoIT icon a red x will flash up (even with the reduced script only using TraySetIcon. I am absolutely new to AutoIT, so not sure if this is the expected behavior or not. Used the installer to setup AutoIT. It installs to Program Files(x86), but includes the 64bit version AFAIK. Link to comment Share on other sites More sharing options...
Authenticity Posted June 9, 2010 Share Posted June 9, 2010 Try TraySetIcon example from the help file. If the icon number is the ordinal number, you should use negative numbers. Link to comment Share on other sites More sharing options...
mistaecko Posted June 9, 2010 Share Posted June 9, 2010 Well, guess what, it works now! I tried for surely an hour last night but couldn't get it to work, but only posted here on the forum today - without running the script again. I wanted to verify that TrayCreateItem will cause the script to fail as well... when it didn't I changed the code back and everything working now as expected... I dare say that the code exactly matches the version from last night (that failed). Maybe I missed something. Or maybe some AutoIT dlls not being properly registered until after a restart? Just speculating here, since I don't really have a clue 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