RickB75 Posted March 21, 2014 Share Posted March 21, 2014 guys, I know this is probably something very very small but, I can't figure this out. I've looked in the help file and I can use the example and it works fine. I know I'm missing something or don't quite understand it. If I have a icon that is saved as my.ico in a file path similar to this C:mydocumentsiconmy.ico. Can I not just pass the path to the file in the first parameter for TraySetIcon?? Something like this TraySetIcon("C:mydocumentsiconmy.ico") Run my script from SCiTE and it show in the icon tray?? When I use the example in the help file like this TraySetIcon("Shell32.dll", 10) It shows the selected icon. What am I missing?? Link to comment Share on other sites More sharing options...
JohnOne Posted March 21, 2014 Share Posted March 21, 2014 guys, If I have a icon that is saved as my.ico in a file path similar to this C:mydocumentsiconmy.ico. Can I not just pass the path to the file in the first parameter for TraySetIcon?? Yes. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
RickB75 Posted March 21, 2014 Author Share Posted March 21, 2014 That's what I thought too from reading in the help file. For the life of me, I can't get it to show. I have version v3.3.8.0. I haven't had any issues. I know my path is correct. Link to comment Share on other sites More sharing options...
JohnOne Posted March 21, 2014 Share Posted March 21, 2014 Show code actual. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
RickB75 Posted March 21, 2014 Author Share Posted March 21, 2014 Code #NoTrayIcon Local $exititem = TrayCreateItem("Exit") TraySetIcon("C:\Documents and Settings\salespc2\My Documents\websiteScripts\icon\toyocorplogo3.ico") While 1 WEnd that's the path to the ico. Link to comment Share on other sites More sharing options...
JohnOne Posted March 21, 2014 Share Posted March 21, 2014 (edited) Works perfectly fine for me on win 7 32. Edited March 21, 2014 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted March 21, 2014 Moderators Share Posted March 21, 2014 RickB75,Check out the icon you are using in an icon editor - you might have some corrupted or non-standard sized images within it. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
RickB75 Posted March 21, 2014 Author Share Posted March 21, 2014 Thanks John for confirming that it works for me. I was about to go crazy yesterday. You know those times when you want to strangle your monitor. I was at that point yesterday. Melba - I think your right. I will look at the file and make sure it's built correctly. I'll give you guys an update here shortly. Link to comment Share on other sites More sharing options...
RickB75 Posted March 21, 2014 Author Share Posted March 21, 2014 Ok guys. Melba, you are correct!!! I was using a corrupt ico file. I downloaded the correct plugin for photoshop, saved the image correctly and it worked like a charm. Now that I have it working correctly, I think I'm going to play around with the loop example in the help and make some animated tray icons 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