Sign in to follow this  
Followers 0
S4y0n4r4

How to open bmp files

5 posts in this topic

B) Hi,

i want to can open a bmp file and to put the info in the one array.But when i try to open a file on this way:

$file=FileOpen("path to the picture",0)

if $file1=-1 then

msgbox(0,"ERROR","Unable to open the file")

exit

endif

Please if somebody can help me with this problem

thanks

Share this post


Link to post
Share on other sites



B) Hi,

i want to can open a bmp file and to put the info in the one array.But when i try to open a file on this way:

$file=FileOpen("path to the picture",0)

if $file1=-1 then

msgbox(0,"ERROR","Unable to open the file")

exit

endif

Please if somebody can help me with this problem

thanks

What is the error you get.

This line "if $file1=-1 then" should read "if $file=-1 then"



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

What is the error you get.

This line "if $file1=-1 then" should read "if $file=-1 then"

The function FileOpen return a value -1 in the varible $file1 and the expression if execute

MsgBox(0,"ERROR","Unable to open file1")

Exit

Even i set a value on file1 to 0, ot be sure, but no result.Again can't open file.

Share this post


Link to post
Share on other sites

Hi all,who try to help me.

Thanks for a help.

I have made a mistake - sorry

The script work completely correct.

just i have forgot to put the extension of the file.

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