Search found 756 matches

by Chunjee
26 Dec 2020, 14:01
Forum: Ask For Help
Topic: Picking unique items from an array randomly.
Replies: 6
Views: 104

Re: Picking unique items from an array randomly.

.sampleSize may be of interest to you: https://biga-ahk.github.io/biga.ahk/#/?id=samplesize Gets n random elements at unique keys from collection up to the size of collection. A := new biga() ; requires https://www.npmjs.com/package/biga.ahk items := [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19...
by Chunjee
26 Dec 2020, 13:54
Forum: Ask For Help
Topic: lowest number in array that's not less than 5 Topic is solved
Replies: 7
Views: 132

Re: lowest number in array that's not less than 5 Topic is solved

You can also filter the array for only elements that are greater than 5; then find the smallest one: A := new biga() ; requires https://www.npmjs.com/package/biga.ahk array := [9,2,6,4,4,7,2,5.9] filteredArray := A.filter(array, Func("fn_removeGreater")) msgbox, % A.min(filteredArray) ; => 5.9 fn_re...
by Chunjee
24 Dec 2020, 15:42
Forum: Ask For Help
Topic: Image search failing Topic is solved
Replies: 6
Views: 94

Re: Image search failing Topic is solved

wouldn't testimg.JPEG make more sense? The script doesn't know what image file you are attempt to search with.
by Chunjee
23 Dec 2020, 13:28
Forum: C#
Topic: Keysharp - the resurrection of IronAHK
Replies: 51
Views: 10830

Re: Keysharp - the resurrection of IronAHK

Can't wait. Great job, keep going.
by Chunjee
21 Dec 2020, 14:42
Forum: Ask For Help
Topic: How do I shuffle a 2D array? Topic is solved
Replies: 11
Views: 198

Re: How do I shuffle a 2D array? Topic is solved

Great. It also came to my mind to give an example with big.a. I even found this function. But I tried to find something else. Fill_Range(1,10) ; = [1,2,3,4,5,6,7,8,9,10] Was there a function that would give such a result? There isn't an exact one like this in bigA currently; reason being is that th...
by Chunjee
21 Dec 2020, 11:40
Forum: Ask For Help
Topic: How do I shuffle a 2D array? Topic is solved
Replies: 11
Views: 198

Re: How do I shuffle a 2D array? Topic is solved

https://biga-ahk.github.io/biga.ahk/#/?id=shuffle encapsulates the above I believe. A := new biga() ; requires https://www.npmjs.com/package/biga.ahk A.shuffle([1, 2, 3, 4]) ; => [4, 1, 3, 2] One difference is that it returns a new shuffled array, the input array is not modified. I have found this p...
by Chunjee
10 Dec 2020, 15:52
Forum: Ask For Help
Topic: Large list editing
Replies: 13
Views: 193

Re: Large list editing

millions of lines can be hard for AHK in my experience.
by Chunjee
10 Dec 2020, 11:52
Forum: Ask For Help
Topic: Sort Sort Sort Topic is solved
Replies: 6
Views: 184

Re: Sort Sort Sort Topic is solved

.sortBy in biga.ahk also sorts in perhaps the desired manner. https://biga-ahk.github.io/biga.ahk/#/?id=sortby A := new biga() ; requires https://www.npmjs.com/package/biga.ahk list:= " ( 1-Genesis 10-2Sarnuel 11-1Kings 12-1Kings 13-1Chronicles 14-2Chronicles 15-Ezra 2-Exodus 3-Levicus 4-Numbers 5-...
by Chunjee
26 Nov 2020, 02:31
Forum: Ask For Help
Topic: Add items to shopping cart using API
Replies: 2
Views: 87

Re: Add items to shopping cart using API

I don't have permission to access https://api.danmurphys.com.au/swagger-ui/index.html

AHK can usually interface with http APIs so it's likely possible.


Maybe a good starting spot: https://www.autohotkey.com/boards/viewtopic.php?t=40151
by Chunjee
24 Nov 2020, 16:07
Forum: Ask For Help
Topic: I need a faster version of this
Replies: 2
Views: 105

Re: I need a faster version of this

does ;OPTIMIZATIONS START even work at the bottom of the script? lol
by Chunjee
18 Nov 2020, 17:35
Forum: Scripts and Functions
Topic: [Class] biga.ahk (immutable utility library for arrays, strings, etc)
Replies: 70
Views: 12032

Re: [Class] biga.ahk (immutable utility library for arrays, strings, etc)

v0.35.1 has been published.

.isEqual was updated. Previously only two parameters were allowed. The 2nd parameter is now variadic allowing multiple values to be compared in a single call.

Code: Select all

A.isEqual(1, 1, 1)
; => true

A.isEqual({ "a": 1 }, { "a": 1 }, { "a": 2 })
; => false
by Chunjee
18 Nov 2020, 10:05
Forum: Ask For Help
Topic: Arrays diff Topic is solved
Replies: 2
Views: 99

Re: Arrays diff Topic is solved

bigA can make working with arrays easier. For example. https://biga-ahk.github.io/biga.ahk/#/?id=difference Creates an array of array values not included in the other given arrays. The order and references of result values are determined by the first array. A := new biga() ; requires https://www.npm...
by Chunjee
17 Nov 2020, 19:09
Forum: Ask For Help
Topic: Reading Excel values into variables
Replies: 2
Views: 69

Re: Reading Excel values into variables

Instead of oExcel.Workbooks.Add; do oExcel.Workbooks.Open(filePath)

Examples on my github: https://github.com/search?q=user%3AChunjee+workbooks.open&type=code
by Chunjee
16 Nov 2020, 06:10
Forum: Ask For Help
Topic: Question about Array
Replies: 8
Views: 159

Re: Question about Array

boiler wrote:
15 Nov 2020, 12:54
Hence this comment:
I saw your post. :thumbup:
by Chunjee
15 Nov 2020, 12:38
Forum: Ask For Help
Topic: Question about Array
Replies: 8
Views: 159

Re: Question about Array

What is the problem? I don't see an obvious one.

If all and public are variables. We can't see them in your example. Maybe you meant to do list := ["all", "public", "opublic", "vospit", "PKV", "pedag", "level", "data_diag", "diag"]
by Chunjee
11 Nov 2020, 14:40
Forum: Ask For Help
Topic: Concetenate string array
Replies: 10
Views: 247

Re: Concetenate string array

I think outputting an array into a string of all elements is usually called join but /shrug https://biga-ahk.github.io/biga.ahk/#/?id=join A := new biga() ; requires https://www.npmjs.com/package/biga.ahk stringArr := ["one", "two", "three"] resultString := A.join(stringArr, "") msgbox, % resultStri...
by Chunjee
02 Nov 2020, 07:02
Forum: Ask For Help
Topic: Fantastic AHK duplicate image finder program
Replies: 9
Views: 208

Re: Fantastic AHK duplicate image finder program

Was it Directory Image Sorter for mastermenthe

I also lost it.
by Chunjee
30 Oct 2020, 11:30
Forum: Ask For Help
Topic: EXCEL: find string of 9 or more digits
Replies: 8
Views: 199

Re: EXCEL: find string of 9 or more digits

Sorry I don't see in your COM code were you run the cells though your function. Or maybe you are just trying to find the first instance of the pattern in that range. Using https://biga-ahk.github.io/biga.ahk/#/?id=includes you can specify a regex pattern; in this case 9 digits may be ^\d{9}$ . When ...

Go to advanced search