Jump to content

Latest Beta


Jon
 Share

Recommended Posts

If he finds out UDF (WinAPI) workaround then it could be added into Autoit helpfile as some simple example for RAW reading by using Win32 API (UDF).

It could be for example mentioned in heklpfile for FileRead() that there exists example in _WinAPI_CreateFile() or _WinAPI_ReadFile() UDF helpfile section for that missing RAW reading.

I did have a look at the _WinApi_CreateFile and read some of the MSDN documentation on the CreateFile Function, but I'm no DllCall() expert so I couldn't manage the right combination of parameters (even after having studied monoceres's tutorial).

I will post in General Help to see if some clever member can't replicate the functionality.

Thanks

Link to comment
Share on other sites

I rewrote much of the File interface and I've never seen any real-world use of the function. Its implemenation also didn't sit well with the rest of the code (a bit of a hack to be honest) and I didn't have an example of what it was even supposed to do to test! If you can't get the same results with a UDF workaround then let me know (quickly) and I'll consider trying to readd it.

Thanks Jon, but no worries: problem solved thanks to post in General Help:

http://www.autoitscript.com/forum/index.php?showtopic=107951&view=findpost&p=761162

(at least the Console Input issue, I'll leave it to somebody else to actually replicate any other functionality of RAW mode)

Link to comment
Share on other sites

  • Administrators

Thanks Jon, but no worries: problem solved thanks to post in General Help:

#761162

(at least the Console Input issue, I'll leave it to somebody else to actually replicate any other functionality of RAW mode)

OK. PM me if it becomes a major problem - I don't mind trying to add it back if it's a biggy. I'm not always the best judge of what is important as I spend more time writing it than using it >.<
Link to comment
Share on other sites

In this case, I think you were right to remove even even if every single person in the world was using it. When I saw that code all I could do was shake my head and pretend it didn't exist lest my sanity meter plummet to the "stark raving made" level.

Link to comment
Share on other sites

  • Administrators

In this case, I think you were right to remove even even if every single person in the world was using it. When I saw that code all I could do was shake my head and pretend it didn't exist lest my sanity meter plummet to the "stark raving made" level.

My favourite was the casting of a HANDLE to a FILE type. Larry, you crazy guy!
Link to comment
Share on other sites

My favourite was the casting of a HANDLE to a FILE type. Larry, you crazy guy!

Indeed. I don't know where he got that idea. That code should have been:

HANDLE hFile = CreateFile();
int fd = open_osfhandle(hFile, open_flags); // Get file descriptor from OS HANDLE.
FILE *fptr = _fdopen(fd, more_open_flags); // Associate a file descriptor with a FILE*.
At that point the warning bells should have gone off with "am I really doing this right...?"
Link to comment
Share on other sites

In this case, I think you were right to remove even even if every single person in the world was using it. When I saw that code all I could do was shake my head and pretend it didn't exist lest my sanity meter plummet to the "stark raving made" level.

People seldom get injured in a short drop.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

  • Administrators

Pretty stupid bug with UTF8 not actually being written in UTF8 >.<

AutoIt v3.3.3.3 (Beta) Released:

AutoIt:

- Added #1311: MouseGetCursor() returns hand cursor.

- Fixed #1403: Error with FileWrite() and UTF8 output streams not being correctly converted to UTF8.

UDFs:

- Fixed #1398: Fixed declaration of $tagPARAFORMAT2 from GuiRichEdit.au3.

- Fixed #1353: _FileWriteToLine() excessively strict on input text type.

- Fixed: SQLite.au3 various errors in _SQLite_FetchData, $iCharSize, _SQLite_QuerySingleRow, _SQLite_GetTable2d, _SQLite_Display2DResult by jchd.

The following changes are script breaking changes:

AutoIt:

  • The raw reading mode for FileOpen() has been removed.
  • InetGet("abort"), @InetGetActive and @InetGetBytesRead have been removed. The following list shows the new functions used to access the old behavior:
    • InetGet("abort") - Calling the new InetClose() function with a handle returned from InetGet() will abort a download.
    • @InetGetActive - Calling the new InetGetInfo() function with no parameters returns a count of active downloads.
    • @InetGetBytesRead - Calling the new InetGetInfo() function with a handle returned from InetGet()will return the bytes read (and more) for a download.
  • AdlibEnable() and AdlibDisable() have been removed. See the new functions AdlibRegister() and AdlibUnRegister().
  • OnAutoItStart() has been removed. See the new pre-processor statement #OnAutoItStartRegister.
  • OnAutoItExit() has been removed. See the new functions OnAutoItExitRegister() and OnAutoItExitUnregister().

Discuss the beta here.

Report issues here.

Download here.

Link to comment
Share on other sites

  • 2 weeks later...
  • Administrators

AutoIt v3.3.5.0 (Beta) Released:

AutoIt:

- Added #1376: FileOpen() mode parameter is now optional. Default mode is read.

- Added #1054: Added FileGetEncoding().

AutoIt3Help:

- Fixed #1423: "Open Script" button stopped working.

The following changes are script breaking changes:

Discuss the beta here.

Report issues here.

Download here.

Link to comment
Share on other sites

Jon, you might as well go ahead and do an immediate release of 3.3.5.1 and add FileGetEncoding() to Aut2Exe. Before the day is out somebody will open a bug report stating that FileGetEncoding() doesn't work in compiled scripts.

Link to comment
Share on other sites

  • Administrators

Jon, you might as well go ahead and do an immediate release of 3.3.5.1 and add FileGetEncoding() to Aut2Exe. Before the day is out somebody will open a bug report stating that FileGetEncoding() doesn't work in compiled scripts.

THIS IS WHY I DON'T ADD FUNCTIONS!!!!!!!!!!!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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