Diana (Cda) Posted August 10, 2008 Share Posted August 10, 2008 (edited) Hi! I checked the help file as always and in the forums but perhaps I don't know the right term and that's why nothing is coming up. My script is this:FileCreateShortcut(@ScriptDir & "\z- startup MOB bkp.au3", @StartMenuDir & "\Programs\Startup\MOB bkp.lnk")Because an AI script is giving better results than a simple shortcut link to the EXE, that's why the shortcut is naturally showing an AI icon. Without changing it manually afterwards, is there a way for AutoIt to dump the icon's path into the icon part of the created shortcut? Or whatever else does the job of putting in a different icon into the shortcut? Thx. Edited August 10, 2008 by Diana (Cda) Link to comment Share on other sites More sharing options...
smashly Posted August 10, 2008 Share Posted August 10, 2008 As read from the Help FileFileCreateShortcut ( "file", "lnk" [, "workdir" [, "args" [, "desc" [, "icon" [, "hotkey" [, icon number [, state]]]]]]] ) "icon" = [optional] Full Path/File name of icon to use.icon number = [optional] The icon instance to use (usually 0) Link to comment Share on other sites More sharing options...
Diana (Cda) Posted August 10, 2008 Author Share Posted August 10, 2008 As read from the Help File FileCreateShortcut ( "file", "lnk" [, "workdir" [, "args" [, "desc" [, "icon" [, "hotkey" [, icon number [, state]]]]]]] ) "icon" = [optional] Full Path/File name of icon to use. icon number = [optional] The icon instance to use (usually 0)Hot damn, it finally really clicked in what this type of thing really means, placeholders to skip over unnecessary parts <g>: "", "", " Darn, took me long enough. Well, I see that I was totally doing the wrong type of search in the help file. That'll teach me. Anyway, now I know how to make a complete shortcut. How cool is that! My script has been modified to:FileCreateShortcut(@ScriptDir & "\z- startup MOB bkp.au3", @StartMenuDir & "\Programs\Startup\MOB bkp.lnk", "", "", "", @ScriptDir & "\MOB icon.ico") Thanks! 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