radigast Posted October 30, 2007 Posted October 30, 2007 (edited) I have created an AutoIt script that uses the following code to automatically create a quicklaunch icon for Winamp. It works without a problem.; Create a WinAmp QuickLaunch Shortcut FileCreateShortcut(@ProgramFilesDir & "\Winamp\winamp.exe",@AppDataDir & "\Microsoft\Internet Explorer\Quick Launch\Winamp.lnk","","","", @ProgramFilesDir & "\Winamp\Winamp.exe","",8)However, all of the available Winamp icons are located inside winamp.exe. I do not want to use the default icon, and I am not certain how to select icons other than the default icon using AutoIt code. I want to use the third icon show in the picture below, but my above code only allows me to use the first (default) icon. I reread the help file again, and found all of the variables I was looking for. In case anybody runs into the same newb problem I did, here is the code and the required arguments.FileCreateShortcut ( "file", "lnk" [, "workdir" [, "args" [, "desc" [, "icon" [, "hotkey" [, icon number [, state]]]]]]] )Notice the "icon number" switch. Duh. Can't believe I overlooked that.Way to show off my newbness. Mods: Feel free to delete this post! Edited October 30, 2007 by radigast
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