Jump to content

Recommended Posts

Posted

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

  • Moderators
Posted

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.

Posted

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

Posted

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

  • Moderators
Posted

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.

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...