Jump to content

Recommended Posts

Posted

  On 1/8/2010 at 3:15 PM, 'Zedna said:

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

Posted

  On 1/8/2010 at 11:46 AM, 'Jon said:

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)

  • Administrators
Posted

  On 1/8/2010 at 6:30 PM, 'ResNullius said:

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 >.<
Posted

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.

  • Administrators
Posted

  On 1/8/2010 at 9:22 PM, 'Valik said:

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!
Posted

  On 1/8/2010 at 9:24 PM, 'Jon said:

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...?"
Posted

  On 1/8/2010 at 9:22 PM, 'Valik said:

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

  Reveal hidden contents
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!"

Posted

  On 1/8/2010 at 11:53 PM, 'GEOSoft said:

People seldom get injured in a short drop.

Touchè. Although to be fair, after recent events my sanity may be on the rise.
  • Administrators
Posted

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

AutoIt v3.3.3.3 (Beta) Released:

  Reveal hidden contents

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:

  Reveal hidden contents

AutoIt:

Discuss the beta here.

Report issues here.

Download here.

  • 2 weeks later...
  • Administrators
Posted

AutoIt v3.3.5.0 (Beta) Released:

  Reveal hidden contents

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:

  Reveal hidden contents

Discuss the beta here.

Report issues here.

Download here.

Posted

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.

  • Administrators
Posted

  On 1/22/2010 at 7:02 PM, 'Valik said:

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!!!!!!!!!!!!!!!!!!!!!!!!!!

Posted

I suggest we castrate the imbecile responsible for requiring Aut2Exe to also maintain a list of language functions.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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