Search found 707 matches

by Chunjee
Today, 02:31
Forum: Ask For Help
Topic: Add items to shopping cart using API
Replies: 2
Views: 58

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: 85

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: 61
Views: 11502

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: 87

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: 59

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: 142

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: 142

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: 241

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: 198

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: 169

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 ...
by Chunjee
29 Oct 2020, 12:56
Forum: Scripts and Functions
Topic: [Class] biga.ahk (immutable utility library for arrays, strings, etc)
Replies: 61
Views: 11502

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

v0.35.0 has been published. .groupBy was added. https://biga-ahk.github.io/biga.ahk/#/?id=groupby Creates an object composed of keys generated from the results of running each element of collection thru iteratee. A.groupBy([6.1, 4.2, 6.2], A.floor) ; => {4: [4.2], 6: [6.1, 6.2]} A.groupBy([6.1, 4.2,...
by Chunjee
28 Oct 2020, 15:51
Forum: Ask For Help
Topic: Removing odd-numbered keys from an array Topic is solved
Replies: 8
Views: 129

Re: Removing odd-numbered keys from an array Topic is solved

A := new biga() ; requires https://www.npmjs.com/package/biga.ahk Array := ["Item1", "Item2", "Item3", "Item4", "Item5", "Item6" , "Item7", "Item8", "Item9", "Item10", "Item11", "Item12", "Item13"] evenOnlyArray := A.filter(Array, Func("fn_filterEven")) ; => ["Item2", "Item4", "Item6", "Item8", "It...
by Chunjee
28 Oct 2020, 14:40
Forum: Scripts and Functions
Topic: [Class] biga.ahk (immutable utility library for arrays, strings, etc)
Replies: 61
Views: 11502

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

v0.34.3 has been published. Documentation for .filter reads "The predicate is invoked with three arguments: (value, index|key, collection)." but this was not true, it was only called with value. That additional feature has been added. Is is now possible to perform logic on the index|key, and collect...
by Chunjee
27 Oct 2020, 10:15
Forum: Ask For Help
Topic: Add one array to another array Topic is solved
Replies: 14
Views: 282

Re: Add one array to another array Topic is solved

Very nice and handy, @Chunjee, though I don't know how that replicates the original output. Not sure I understand the meaning of this, if anything. using https://gist.github.com/G33kDude/b12aae376d3f9dbdd857e1d92b166dc5 I verifed the OP's object and everything I exampled results in: ["Result1,50", ...
by Chunjee
27 Oct 2020, 08:09
Forum: Ask For Help
Topic: Add one array to another array Topic is solved
Replies: 14
Views: 282

Re: Add one array to another array Topic is solved

bigA has .concat: https://biga-ahk.github.io/biga.ahk/#/?id=concat aCombined := A.concat(aTst, aTst2) array.ahk also has .concat for arrays: https://chunjee.github.io/array.ahk/#/docs?id=concat aCombined := aTst.concat(aTst2) Anything more than that; seems like needless extra work. In the case of lo...
by Chunjee
26 Oct 2020, 18:25
Forum: Ask For Help
Topic: multi file copy functions in single AHK
Replies: 5
Views: 87

Re: multi file copy functions in single AHK

One thing I did that worked well was used ahk to launch a CLI instance of RoboCopy (comes with Win 7, etc) https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy It was something like Run, %COMSPEC% /c Robocopy %fromDir%, %destinationDir%, %options% It was a little ...
by Chunjee
25 Oct 2020, 14:09
Forum: Ask For Help
Topic: Is it a letter or number
Replies: 2
Views: 102

Re: Is it a letter or number

yes has to follow if Var is Type or if Var is not Type

(x is integer) will have unexpected results.


https://github.com/Shambles-Dev/AutoHotkey-Type_Checking/blob/master/IsType.ahk is a decent library that makes this more approachable.
by Chunjee
21 Oct 2020, 10:59
Forum: Ask For Help
Topic: Convert text to array
Replies: 8
Views: 126

Re: Convert text to array

If the string was instead "{"key1":{"a":[1,0],"b":[1,0]},"key2":[1,0],"key3":[1,0]}" you could use one of the ready made json parsers.
by Chunjee
15 Oct 2020, 10:49
Forum: Ask For Help
Topic: Wanna see instant long text on AHK like Hot Keyboard and question about dedicated macro key with AHK..
Replies: 4
Views: 127

Re: Wanna see instant long text on AHK like Hot Keyboard and question about dedicated macro key with AHK..

Enterprise24 wrote:
13 Oct 2020, 23:44
Can someone here enlighten me how can I get instant text or at least make it appear faster ?
you can put the text on the clipboard and paste it.

I prefer Send, {Ctrl Down}p{Ctrl Up} personally for reliability.

Go to advanced search