Search found 523 matches

by Chunjee
14 Sep 2019, 22:55
Forum: Ask For Help
Topic: Better than Excel? Nested match offsetting amounts for accounting
Replies: 10
Views: 969

Re: Better than Excel? Nested match offsetting amounts for accounting

I'm going to give this a shot tomorrow morning. I don't have very good access to Excel at home (My wife's laptop has office 365 but not sure about anything programming related)
by Chunjee
13 Sep 2019, 22:44
Forum: Ask For Help
Topic: How risky is upgrading from 1.1.24.04 to current 1.1.30.03?
Replies: 8
Views: 1092

Re: How risky is upgrading from 1.1.24.04 to current 1.1.30.03?

I think absolutely required. Reading https://www.autohotkey.com/docs/AHKL_ChangeLog.htm it looks like mostly just fixes.

The addition of Object.Count() is why I say required. That was added in 1.1.29.00
by Chunjee
13 Sep 2019, 10:48
Forum: Ask For Help
Topic: Help with a Background script Topic is solved
Replies: 16
Views: 1796

Re: Help with a Background script Topic is solved

Does the script otherwise work when the window is open but not active in the foreground?

I believe that was my experience with ControlClick, but it may depend on the app being clicked.
by Chunjee
13 Sep 2019, 10:31
Forum: Ask For Help
Topic: Identifying unique strings in a block of text
Replies: 32
Views: 3348

Re: Identifying unique strings in a block of text

I'm not sure what kind of output you are looking for but If you're just trying to figure out "is {{x}} anywhere inside this other string" then InStr() would be perfect for you. Alternatively you may also be interested in https://www.npmjs.com/package/string-similarity.ahk which returns a "percentage...
by Chunjee
12 Sep 2019, 09:19
Forum: Ask For Help
Topic: Better than Excel? Nested match offsetting amounts for accounting
Replies: 10
Views: 969

Re: Better than Excel? Nested match offsetting amounts for accounting

It would probably NOT be faster if checking each value in excel one by one. How I would do it is cram as much of those two columns as you can into ahk memory (20,000 sounds like a lot but I think it would be ok) then perform all the matching in ahk, exporting any matches to the helpercolumn as neede...
by Chunjee
11 Sep 2019, 09:47
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: [WIP] utility library

I had an internal helper function called indexOf but it turns out that is a real Lodash method too so I brought that out into it's own documented and tested method. Got some feedback on .map for being inefficient and a bit insane so I made it more sane. Not 100% happy but it should be a lot faster n...
by Chunjee
10 Sep 2019, 12:43
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: [WIP] utility library

added a bunch of methods and making the documentation page look really nice and organized.
by Chunjee
09 Sep 2019, 22:10
Forum: General Discussion
Topic: your personal AutoHotkey style guide
Replies: 103
Views: 28043

Re: your personal AutoHotkey style guide

jeeswg wrote:
31 Aug 2019, 17:06
Braces(/indentation):
Before: use the minimum number of braces.
After: always use braces apart from for one-liners.
My homie :thumbup: :thumbup: :thumbup:
by Chunjee
09 Sep 2019, 15:31
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: [WIP] utility library

.shuffle added, documented, and tested
by Chunjee
09 Sep 2019, 14:17
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: [WIP] utility library

.trim, .trimStart, .trimEnd, and .startCase were added.


While trying to replicate the Lodash example I found out that .map could not call methods of it's own class. That is fixed so this is now possible:

Code: Select all

A.map([" foo  ", "  bar  "],A.trim)
; => ["foo", "bar"]
by Chunjee
08 Sep 2019, 20:45
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: [WIP] utility library

.truncate is passing all tests.

I'll be filling in any missing tests tomorrow and hopefully put together some good answers for 'what would I use this for?' examples post before the end of my workweek.
by Chunjee
06 Sep 2019, 15:25
Forum: Gaming
Topic: Do anybody knows FF XIV fishing scripts?
Replies: 2
Views: 936

Re: Do anybody knows FF XIV fishing scripts?

there are some really good solutions that run the character between two (or more) locations. I believe they should be easy to find via google. Curiously I had written a FFXIV fishing bot in ahk but it was kinda rudimentary and just stood there fishing the same spot. It was a image/pixel searching st...
by Chunjee
04 Sep 2019, 06:04
Forum: Scripts and Functions
Topic: Facade Functional Programming Suite
Replies: 66
Views: 12620

Re: Facade Functional Programming Suite

Wow I read all of design.txt and major portions of this thread. I feel like I am walking in your shoes. Thankfully most of it is over my head, but I do run up on some of the inconstancies and seemingly odd ahk choices with unsettling frequency. I will be using this! As soon as I figure out how to...
by Chunjee
03 Sep 2019, 15:52
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: [WIP] utility library

all tests passing save for .truncate

May post a first pass in the functions board today or tomorrow. The last one on my must-have list is .sortBy
by Chunjee
03 Sep 2019, 10:21
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: [WIP] utility library

whew the number of methods has been growing and it was getting a little rough trying to track if they were all being tested. As well I want to document everything like Lodash's excellent site , so I knew there was going to be even MORE to do. So I setup a little build pipeline that has each method i...
by Chunjee
30 Aug 2019, 11:55
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: Help with utility library

a number of shorthands have a dependency on https://lodash.com/docs/4.17.15#matches and I'm not coinvinced this is possible with ahk but I haven't given it a proper attempt yet. If someone can please solve for the following that would be awesome :dance: A := new biga() objects := [ { "a": 1, "b": 2,...
by Chunjee
29 Aug 2019, 21:38
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: Help with utility library

nou This is working great but isn't 100% perfect yet. Integers sometimes returned as strings object := { "a": [{ "b": 2 }, { "d": 4 }] } other := { "a": [{ "c": 3 }, { "e": 5 }] } Merge(object, other) ;expected ;=> { "a": [{ "b": 2, "c": 3 }, { "d": 4, "e": 5 }] } ;actual ;=> { "a": [{ "b": "2", "c...
by Chunjee
29 Aug 2019, 15:52
Forum: Ask For Help
Topic: [WIP] utility library
Replies: 20
Views: 2770

Re: Help with utility library

Thank you very much for your assistance the same to those two you mentioned. I'll get this added right now. :thumbup: :thumbup:
by Chunjee
27 Aug 2019, 13:33
Forum: Scripts and Functions
Topic: [Class] string-similarity.ahk
Replies: 14
Views: 4228

Re: [Library] string-similarity.ahk

3 Ways to filter lower ratings for anyone who needs a hand: scoreditems := ssObj.findBestMatch("For Sale:",["Wanted - ","[WTB]","FOR SALE!","SALE:"]) ;=> scoreditems.ratings = 1:["rating":0.88, "target":"FOR SALE!"], 2:["rating":0.67, "target":"SALE:"], 3:["rating":0, "target":"[WTB]"], 4:["rating":...
by Chunjee
27 Aug 2019, 12:22
Forum: Ask For Help
Topic: Zoom Function for FPS (Scripts Provided)
Replies: 15
Views: 2614

Re: Zoom Function for FPS (Scripts Provided)(Need Help to Finish)

This should be in the gaming area. Also I have no idea what "The problems that I am having now with both of these two scripts are the overlapping windows" means.

It sounds like you are just having trouble making the zoom toggle?

Go to advanced search