CTgeek Posted March 9, 2012 Posted March 9, 2012 I am looking for I believe is something pretty simple and just can't find an example posted anywhere. We have the older Program Neighborhood which allowed a person to drag the .ica icon to their desktop to be used later. We want to change the .ica to be an executible instead or at least to be able to click on a .exe and it launches the ica (assuming they have Citrix Receiver or something older that understands the .ica extension). Does anyone have an example of this to start with. thanks, New Autoit User
JohnOne Posted March 9, 2012 Posted March 9, 2012 (edited) ShellExecute()Sorry, no, I think you want to right click it, open with, select the program, tick always open with this.Probably a registry key too, but I don't know if this really is an autoit question Edited March 9, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Moderators Melba23 Posted March 9, 2012 Moderators Posted March 9, 2012 CTgeek, Welcome to the AutoIt forum. I am confused by what you want to do. You say you have an .ica icon dragged onto your desktop - I assume this is a shortcut to a data file. And then when you click on it you say you want some other app to run it. JohnOne's suggestion to associate the file extension with an executable seem to be the solution - so where does Autoit come into this? If you are looking for an AutoIt script to set the association then there are some around on the forum if you search. But you would still have to define the executable to run the file. If you knew the likely candidates you could search the registry to see if they were installed - again there are scripts around to do this. Any help? If not then can you explain a bit more what exactly you are trying to do and how you believe AutoIt can help. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
raymwolfe Posted August 27, 2014 Posted August 27, 2014 I was having the same issue, if i understand correctly you are trying to launch a .ica file from an autoit script. the solution i came up with is to use the ShellExecuteWait command, it would go something like this: ShellExecuteWait("filename.ica","","working directory,"open") make sure to add the double quotes between the filename and directory, it is a space to put parameters I wouldn't imagine that you would need to set any because you are using an .ica file. Hope this works for you!
Moderators JLogan3o13 Posted August 27, 2014 Moderators Posted August 27, 2014 raymwolfe, did you notice this post is over 2 years old, and the OP has not been active pretty much since the day he started the thread? Please don't necro old posts "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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