Jump to content

Recommended Posts

Posted (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. :blushing:

Mods: Feel free to delete this post!

post-158493-1193733291_thumb.jpg

Edited by radigast

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...