Sign in to follow this  
Followers 0
Chaos Mixed

Open any file and every file?

6 posts in this topic

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

Share this post


Link to post
Share on other sites



Newest Beta + ShellExecute

or

Run(@Comspec & ' /c "' & 'C:\image.jpg"', '', @SW_HIDE)


[center]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.[/center]

Share this post


Link to post
Share on other sites

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)")

Share this post


Link to post
Share on other sites

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 displayed

it either is not displayed at all, or blinks open and closes quickly

can you offer some assistances?

Chaos

Share this post


Link to post
Share on other sites

the example on autoit fileopendialog worked great but i need the image to open and be displayed

it either is not displayed at all, or blinks open and closes quickly

can you offer some assistances?

Chaos

I already gave you the answer to that.

[center]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.[/center]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0