Jump to content

AutoIt v3.3.13.4 Beta


Jon
 Share

Recommended Posts

  • Administrators

File Name: AutoIt v3.3.13.4 Beta

File Submitter: Jon

File Submitted: 15 Jul 2014

File Category: Beta



AutoIt:
- Fixed: Regression with array initialisation in last beta.



Click here to download this file

Link to comment
Share on other sites

  • Administrators

Also enabled an updated version of the experimental datatype from way back. An idea of the syntax is below

Dim $var[]
$var["hello1"] = "1111"
$var["HELLO1"] = "1111 - CAPS"
$var.hello2 = "2222"
$var[3] = "3333"
$var.Append("4444")

MsgBox(0, "", $var["hello1"])
MsgBox(0, "", $var["HELLO1"])
MsgBox(0, "", $var.hello2)
MsgBox(0, "", $var[3])
MsgBox(0, "", $var[4])

MsgBox(0, "Exists - hello1", $var.Exists("hello1"))
MsgBox(0, "Exists - hello9", $var.Exists("hello9"))

For $key In $var.keys()
MsgBox(0, "Keys", "Key: " & $key & @CRLF & "Key type: " & VarGetType($key))
Next

For $item In $var
MsgBox(0, "Items", "Item: " & $item)
Next

$var.Remove("hello2")

For $key In $var.keys()
MsgBox(0, "Keys", "Key: " & $key & @CRLF & "Key type: " & VarGetType($key))
Next

Experimental, may be removed, yadda yadda yadda.

It's like a php map/lua table combo.

Keys are string or integer and order is maintained based on the order they are added. String keys are case sensitive (for now).

Keys can be enumerated with Keys() in a For In loop. Key type can be checked with VarGetType/IsString.

Items can be enumerated with For In loop.

Check if a key exists using Exists()

Remove items using Remove()

Unnamed items can be added using Append(). These are given the largest integer key so far (php influence).  Maybe remove Append() and overload the += operator - not sure.

 

Edit: Oh and I had to rewrite half of the COM parser to make this work how I wanted. I may have broken all of COM.  :)

Link to comment
Share on other sites

Regression confirmed as fixed.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

  • Administrators

.Exists($var) is currently broken. Same for Remove($var).

As a temporary workaround until the next beta use:

.Exists("string") or .Exists($var & "") or .Exists(String($var))

.Exists(integer) or .Exists($var + 0) or .Exists(Int($var))

Link to comment
Share on other sites

Very interesting feature, looking forward to it.

Why did you used Dim? I saw it works with both Local and Global as well, is there anything special with Dim that we should know while playing with this?

And here is 2 things I would like to report:

This will consume 1 CPU core.

Dim $var

$var["hello1"] = "1111"
;Never reaches here...

$var["HELLO1"] = "1111 - CAPS"
$var.hello2 = "2222"
$var[3] = "3333"
$var.Append("4444")

MsgBox(0, "", $var["hello1"])
MsgBox(0, "", $var["HELLO1"])
MsgBox(0, "", $var.hello2)
MsgBox(0, "", $var[3])
MsgBox(0, "", $var[4])

MsgBox(0, "Exists - hello1", $var.Exists("hello1"))
MsgBox(0, "Exists - hello9", $var.Exists("hello9"))

For $key In $var.keys()
MsgBox(0, "Keys", "Key: " & $key & @CRLF & "Key type: " & VarGetType($key))
Next

For $item In $var
MsgBox(0, "Items", "Item: " & $item)
Next

$var.Remove("hello2")

For $key In $var.keys()
MsgBox(0, "Keys", "Key: " & $key & @CRLF & "Key type: " & VarGetType($key))
Next
I was thinking about storing function reference in an item and then call it this way:
Global $afuFunctions[]
$afuFunctions["Foo"] = Foo

Call($afuFunctions["Foo"]) ;Works
$afuFunctions["Foo"]() ;Works

Call($afuFunctions.Foo) ;Works
$afuFunctions.Foo() ;Doesn't work

Func Foo()
    ConsoleWrite("Foo" & @CRLF)
EndFunc
Edited by FaridAgl
Link to comment
Share on other sites

  • Administrators

Very interesting feature, looking forward to it.

Why did you used Dim? I saw it works with both Local and Global as well, is there anything special with Dim that we should know while playing with this?

And here is 2 things I would like to report:

This will consume 1 CPU core.

Dim $var

$var["hello1"] = "1111"
;Never reaches here...

Oops. Fixed in next beta.

I used Dim out of habit. It's an alias for Local essentially.

Link to comment
Share on other sites

  • Administrators

The installer has an option to uninstall before continuing but I think it doesn't uninstall it just skips straight to installing.

Sure it does. It's very quick. Less than a second usually.

Link to comment
Share on other sites

I would like to suggest an IsTable() function.

And also a .Count property for the table variables.

I'm giving it multiple tests, awesome.

 

Already done, just Jon hasn't documented it at this stage.

#AutoIt3Wrapper_Run_Au3Check=N
#AutoIt3Wrapper_UseX64=N
#AutoIt3Wrapper_Version=B

#include <MsgBoxConstants.au3>

Local $tTable[]
$tTable["Item One"] = "Some string"
$tTable["Item Two"] = "Some string"
MsgBox($MB_SYSTEMMODAL, '', "IsTable: " & IsTable($tTable) & @CRLF & "Count: " & UBound($tTable) & @CRLF)
Edited by guinness

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

  • Moderators

FaridAgl,

UBound will give you the table count. :)

M23

Edit: guinness is too fast again! :D

Edited by Melba23

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Edit: guinness is too fast again! :D

Twice in one day.

FaridAgl (or do I use your old username?),

Melba23 and myself have been testing this feature quite a bit today for Jon.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

  • Moderators

FaridAgl,

And please keep testing the feature yourself. New people testing always come up with new ideas which can cause problems - so do not hesitate to let Jon know if you think you have found any. :)

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:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

guinness,

I'm OK with the current username as it's my real name :P

About the .Count which I suggested in above post, thanks to Melba23 I know it's possible with UBound(), but if it's not that hard to implement, having this wouldn't hurt and feels even better.

At the moment I can't see any issue, all good so far.

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