Jump to content

Recommended Posts

Posted (edited)

$File1 = FileOpen("test.gif", 16)

$File2 = FileRead($File1)

MsgBox(0, "test", $File2)

FileClose($File1)

This causes 99% of my CPU to be used lol. whats wrong with it and why doesnt it output what i want?

Edited by Mast3rpyr0
  • Developers
Posted

$File1 = FileOpen("test.gif", 16)

$File2 = FileRead($File1)

MsgBox(0, "test", $File2)

FileClose($File1)

This causes 99% of my CPU to be used lol. whats wrong with it and why doesnt it output what i want?

so you weant to see what ? Test.gif as picture or as Data ?

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • Developers
Posted

ok i just realized that FileOpen is only for text files.

.. lost me on this one ... FileOpen() is to open a File to be able to read it with FileRead() .

ok i just realized that FileOpen is only for text files. is there any other function that i can use to get the binary data of this image or make it into 2 different broken files?

Why are you trying to do a msgbox for Binary data ?

Can imagine that gives a problem ......

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
×
×
  • Create New...