Chaos Mixed Posted October 24, 2006 Share Posted October 24, 2006 Hi I am using autoitv3 on an XP pro machine I am trying to write scripts that opens an image file. I have tried FileOpen with no success Ive search though mile of documentation and forum and found nothing. I kind of a numb so please forgive the ignorance. FileOpen("C:\image.jpg",?) ;is the only thing i cna gather on how to do this. On that same note how do I open any file, with any path, with any extension? Thank you Chaos Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 24, 2006 Moderators Share Posted October 24, 2006 Newest Beta + ShellExecute or Run(@Comspec & ' /c "' & 'C:\image.jpg"', '', @SW_HIDE) Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Rad Posted October 24, 2006 Share Posted October 24, 2006 Are you looking for the FileOpenDialog(), its a menu that allows you to select it. If you are, then use it like so: FileOpenDialog("Title",@DesktopDir, "All (*.*)|JPG (*.jpg)|Bitmap (*.bmp)|GIF (*.gif)") Link to comment Share on other sites More sharing options...
Chaos Mixed Posted October 25, 2006 Author Share Posted October 25, 2006 Are you looking for the FileOpenDialog(), its a menu that allows you to select it. If you are, then use it like so:FileOpenDialog("Title",@DesktopDir, "All (*.*)|JPG (*.jpg)|Bitmap (*.bmp)|GIF (*.gif)")the example on autoit fileopendialog worked great but i need the image to open and be displayedit either is not displayed at all, or blinks open and closes quicklycan you offer some assistances?Chaos Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 25, 2006 Moderators Share Posted October 25, 2006 the example on autoit fileopendialog worked great but i need the image to open and be displayedit either is not displayed at all, or blinks open and closes quicklycan you offer some assistances?ChaosI already gave you the answer to that. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
herewasplato Posted October 25, 2006 Share Posted October 25, 2006 Welcome to the AutoIt forums.Install the latest beta from here:http://www.autoitscript.com/autoit3/files/beta/autoit/and then run this one line of code:ShellExecute(FileOpenDialog("Title",@DesktopDir, "All (*.*)|JPG (*.jpg)|Bitmap (*.bmp)|GIF (*.gif)")) [size="1"][font="Arial"].[u].[/u][/font][/size] 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