sshrum Posted February 18, 2005 Posted February 18, 2005 First time autoIT user, long time regression tester.I wrote a script to install an application and had AutoIT create a LNK file on the desktop to one of the associated files of said program.What I can't figure out is how to launch the lnk file. This *should* launch the associated application with the file that the LNK points to. Granted, me double-clicking the LNK does exactly that.I even tried to do a direct 'c:\program.exe datafile.xxx' via run() with no luck.I'm doing this worng. Someone please correct me.TIASean Shrumhttp://www.shrum.net Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot'
CyberSlug Posted February 18, 2005 Posted February 18, 2005 (edited) ShellExecute user-defined function should let you run LNK files or datafile.xxx files if the file association was created.#57181Run('c:\program.exe datafile.xxx') should work, although you might need to specify the full path to datafile.xxx OR call FileChangeDir before Run. Edited February 18, 2005 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
sshrum Posted February 18, 2005 Author Posted February 18, 2005 How about this... Set the focus to the desktop (possible?) and then send a ControlClick with '2' clicks? I'm away from my desk so I haven't tried this yet, hence my '?' Sean Shrum :: http://www.shrum.net All my published AU3-based apps and utilities 'Make it idiot-proof, and someone will make a better idiot'
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