From e1d95b3b2cef43279ff222b7b9678479ada67498 Mon Sep 17 00:00:00 2001 From: kyklish Date: Sat, 10 Dec 2022 12:03:18 +0200 Subject: [PATCH 1/3] Update .InsertAt() .RemoveAt() .Push() object's methods --- language/snippets.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/language/snippets.json b/language/snippets.json index c55a9a5e..b7ce897e 100644 --- a/language/snippets.json +++ b/language/snippets.json @@ -2014,7 +2014,7 @@ }, "InsertAt()": { "prefix": ".InsertAt()", - "body": ".InsertAt(${1:Key}, ${2:Value})", + "body": ".InsertAt(${1:Pos}, ${2:Value1}, ${3:[Value2, ... ValueN]})", "description": "Inserts one or more values at a given position within a linear array." }, "MinIndex()": { @@ -2039,7 +2039,7 @@ }, "RemoveAt()": { "prefix": ".RemoveAt()", - "body": ".RemoveAt(${1:Pos}, ${2:Length})", + "body": ".RemoveAt(${1:Pos}, ${2:[Length]})", "description": "Removes items from the given position in a linear array." }, "GetCapacity()": { @@ -2079,8 +2079,8 @@ }, "Push()": { "prefix": ".Push()", - "body": ".Push(${1:Value})", - "description": "Appends values to the end of an array." + "body": ".Push(${1:[Value, Value2, ..., ValueN]})", + "description": "Appends values to the end of an array. Returns the position of the last inserted value." }, "Pop()": { "prefix": ".Pop()", From 64f2622bda92f86f2f7d6acefee341ceb8331a6a Mon Sep 17 00:00:00 2001 From: kyklish Date: Sat, 10 Dec 2022 18:47:52 +0200 Subject: [PATCH 2/3] add VerCompare() in AHK v1.1.36.0 --- language/snippets.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/language/snippets.json b/language/snippets.json index b7ce897e..fff38202 100644 --- a/language/snippets.json +++ b/language/snippets.json @@ -1165,6 +1165,11 @@ "body": "UrlDownloadToFile, ${1:URL}, ${2:Filename}", "description": "Downloads a file from the Internet." }, + "VerCompare": { + "prefix": "VerCompare", + "body": "VerCompare(${1:VersionA}, ${2:VersionB})", + "description": "Compares two version strings." + }, "While": { "prefix": "While", "body": "While, ${1:Expression}", From 76fecf68f3d3f5d281ce9e46f8af45e70eaa897c Mon Sep 17 00:00:00 2001 From: kyklish Date: Wed, 21 Dec 2022 09:51:04 +0200 Subject: [PATCH 3/3] fix WinSet command --- language/snippets.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/language/snippets.json b/language/snippets.json index fff38202..182727de 100644 --- a/language/snippets.json +++ b/language/snippets.json @@ -1272,7 +1272,7 @@ }, "WinSet": { "prefix": "WinSet", - "body": "WinSet, ${1:AlwaysOnTop|Trans}, ${2:On|Off|Toggle|Value(0-255) [}, ${3:WinTitle}, ${4:WinText}, ${5:ExcludeTitle}, ${6:ExcludeText]}", + "body": "WinSet, ${1:AlwaysOnTop|Bottom|Top|Disable|Enable|Redraw|Style|ExStyle|Region|Transparent|TransColor}, ${2:On|Off|Toggle|Value(0-255) [}, ${3:WinTitle}, ${4:WinText}, ${5:ExcludeTitle}, ${6:ExcludeText]}", "description": "Makes a variety of changes to the specified window, such as \"always on top\" and transparency." }, "WinSetTitle": {