anixon Posted June 8, 2009 Posted June 8, 2009 How would you create a desktop icon and place on the desktop based on the known location of the file for example c:\myfolder\autoit\myscript.au3. In this case the icon would be the shortcut to myscript.au3 Help is always appreciated Ant..
herewasplato Posted June 8, 2009 Posted June 8, 2009 Look at FileCreateShortcut [size="1"][font="Arial"].[u].[/u][/font][/size]
anixon Posted June 8, 2009 Author Posted June 8, 2009 Thanks for the prompt reply this works: FileCreateShortcut(@ScriptDir & "\myscript.exe",@DesktopDir & "\myscript.lnk",@WindowsDir,"/e,c:\", "This is an myscript link;-)", @SystemDir & "\shell32.dll", "^!t","15", @SW_MINIMIZE) Question is how do I substitute the icon identified as "15" with the icon compiled with myscript.au3 + icon1.ico to create myscript.exe? Ant..
anixon Posted June 8, 2009 Author Posted June 8, 2009 Thanks for the prompt reply this works: FileCreateShortcut(@ScriptDir & "\myscript.exe",@DesktopDir & "\myscript.lnk",@WindowsDir,"/e,c:\", "This is an myscript link;-)", @SystemDir & "\shell32.dll", "^!t","15", @SW_MINIMIZE)Question is how do I substitute the icon identified as "15" with the icon compiled with myscript.au3 + icon1.ico to create myscript.exe? Ant..Sorry for putting the question before I read Help properly this works as required:FileCreateShortcut(@ScriptDir & "\myscript.exe",@DesktopDir & "\myscript.lnk",@WindowsDir,"", "This is a link to myscript", @scriptdir & "\Icons\icon1.ico", "","", @SW_MINIMIZE)Thanks to the respondants... Ant..
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