Jump to content

Recommended Posts

  • Administrators
Posted

File Name: AutoIt v3.3.13.5 Beta

File Submitter: Jon

File Submitted: 17 Jul 2014

File Category: Beta



3.3.13.5 (17th July, 2014) (Beta)
AutoIt:
- Added: (Internal) Built-in functions can now be made that work in a ByRef way. Lots of new possibilities!

- Fixed: Regression with using subscript access on a non-array variable hard crashing.
- Fixed: Accessing a table within an array, or vice versa caused a hard crash.
- Fixed: Static keyword with tables.
- Fixed: Assigning objects to table elements.

UDFs:
- Fixed #2782: Documentation of various constants.



Click here to download this file

  • Administrators
Posted

We are probably going to change the table methods into normal functions in the next beta like:

TableRemove($table, $key)

TableKeys($table)

This is for two reasons:

1. They aren't really objects, and having a mixture of normal functions and object-like syntax isn't pretty

2. I've made improvements in built-in functions so now it's possible to pass parameters by reference which makes the above functions now possible

Posted

Jon,

This beta breaks Array declaration by init. This crashes:

Local $aTest = [4, 5, 6]
  Reveal hidden contents

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Posted (edited)
  On 7/17/2014 at 4:02 AM, FaridAgl said:
"C:\Program Files\AutoIt3\Include\File.au3"(301,26) : warning: $sAttribs possibly not declared/created yet

Fixed in next beta. Thanks.

Edit: I did a global Au3Check and Tidy just to ensure no errors like this exist in future beta versions.

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Moderators
Posted

supersonic,

Read the changelog:

 

v3.3.10.0

Changed: #NoAutoIt3Execute option replaced with #pragma compile(AutoItExecuteAllowed, false). Default is false

So now you need to explicitly permit your compiled script to execute others - add the #pragma directive and all should work as before. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted

Jon,

Adapted from proposed doc changes...

Local $mInternal[]                     ; Declare a Map
$mInternal["Internal"] = "AutoIt3"      ; Assign an element

Local $mContainer[]                    ; Declare a container Map
$mContainer.Bin = $mInternal            ; Assign the first Map as an element

$sString = $mContainer["Bin"].Internal  ; Both these return "AutoIt3"
ConsoleWrite($sString & @CRLF)          
$sString = $mContainer.Bin["Internal"]
ConsoleWrite($sString & @CRLF)          
$sString = $mContainer.Bin.internal     ; <--- This returns blank...Is it supposed to work????
ConsoleWrite($sString & @CRLF)

It looks like $container.map.key does not work.

kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Posted (edited)

Keys are case-sensitive, so internal != Internal, hence why you get Null (check with IsKeyword()). As for your second point it does work if you use the correct case.

$sString = $mContainer.Bin.Internal
Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted

A benchmark for others to test and understand.

Local $mInternal[]                     ; Declare a Map
$mInternal["Internal"] = "AutoIt3"      ; Assign an element

Local $mContainer[]                    ; OK
$mContainer.Bin = $mInternal            ;  OK

$sString = $mContainer["Bin"]["Internal"]  ; OK
ConsoleWrite($sString & @CRLF)

$sString = $mContainer.Bin["Internal"] ; OK
ConsoleWrite($sString & @CRLF)

$sString = $mContainer.Bin.Internal     ; OK
ConsoleWrite($sString & @CRLF)

$sString = $mContainer.Bin.internal     ; OK - Doesn't exist.
ConsoleWrite((IsKeyword($sString) = 2) & @CRLF) ; Returns Null.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

guinness,

Thank You,

kylomas

edit: comment amended

Edited by kylomas

Forum Rules         Procedure for posting code

"I like pigs.  Dogs look up to us.  Cats look down on us.  Pigs treat us as equals."

- Sir Winston Churchill

Posted

You know this is the public forum so not everyone understands what you're going on about.

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

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

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