Search found 70 matches

by Chunjee
17 Feb 2019, 10:59
Forum: Wish List
Topic: [Request] Module Export
Replies: 9
Views: 1002

Re: [Request] Module Export

Thanks I'll take a look at that.
by Chunjee
24 Dec 2018, 10:19
Forum: Ask For Help
Topic: help with uniq() for keyed values Topic is solved
Replies: 5
Views: 280

Re: help with uniq() for keyed values Topic is solved

fair enough. I guess it works differently than I was expecting, I'll try it in my app and see what happens. But my other test implies that it will not: TestArray[1,"hello"] := "friend" TestArray[1,"test"] := "sample" TestArray[2,"hello"] := "friend" TestArray[2,"test"] := "sample" results in a two i...
by Chunjee
24 Dec 2018, 09:46
Forum: Ask For Help
Topic: help with uniq() for keyed values Topic is solved
Replies: 5
Views: 280

Re: help with uniq() for keyed values Topic is solved

Although the 6th and 7th entries in your testarray contain arrays which contains the same keys and values, this is by coincidence only; AHK will have created separate arrays. To make them the same, code as follows (untested):- I tested your idea: Test1 := {"hello":"friend"} Test2 := {"hello":"frien...
by Chunjee
23 Dec 2018, 16:15
Forum: Ask For Help
Topic: help with uniq() for keyed values Topic is solved
Replies: 5
Views: 280

help with uniq() for keyed values Topic is solved

I'm having trouble getting the behavior I need from this function: uniq(arr) { ; Hash O(n) hash := {}, newArr := [] for e, v in arr { if !(hash[v]) { hash[(v)] := 1, newArr.push(v) } } return newArr } TestArray := ["a","a","a","b","b",{"hello":"friend"},{"hello":"friend"}] uniq(TestArray) ;Expecting...
by Chunjee
19 Dec 2018, 15:25
Forum: Wish List
Topic: [Request] Module Export
Replies: 9
Views: 1002

Re: [Request] Module Export

For some reason, I thought it would allow multiple a the same function to be defined more than once but I was wrong.
by Chunjee
18 Dec 2018, 15:23
Forum: Wish List
Topic: [Request] Module Export
Replies: 9
Views: 1002

Re: [Request] Module Export

https://autohotkey.com/docs/commands/_Include.htm
#IncludeAgain allows multiple inclusions of the same file, while being the same as #Include in all other respects.
I'll see if this can be leveraged in any way.
by Chunjee
18 Dec 2018, 13:12
Forum: Wish List
Topic: We want AHK for Linux!
Replies: 7
Views: 885

Re: We want AHK for Linux!

In the short term I would look at
https://pyautogui.readthedocs.io/en/latest/index.html or http://robotjs.io/
I think there was another purely python implementation but I can't find it again.

long term hopefully something emerges
by Chunjee
18 Nov 2018, 09:02
Forum: Wish List
Topic: Hashes?
Replies: 1
Views: 550

Re: Hashes?

At least you tried.
by Chunjee
16 Nov 2018, 11:35
Forum: Ask For Help
Topic: Anyone having issues retrieving Excel com obj?
Replies: 14
Views: 1248

Re: Anyone having issues retrieving Excel com obj?

Source of problem: mismatch between "run as administrator" setting with respect to AutoHotkey or Excel keeps the connection at bay. As soon as I turned that off on Excel, everything began to function as it did before the upgrade to win 10. How do you "turned that off on Excel"? I'm on a new compute...
by Chunjee
07 Nov 2018, 13:42
Forum: Other Programming Languages
Topic: CLIPS programming language
Replies: 2
Views: 637

Re: CLIPS programming language

Never heard of these "expert-system"s before. Cool.

Couldn't download the animated GIF for some reason.
by Chunjee
07 Nov 2018, 11:56
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 89
Views: 7614

Re: [Request]: Official Library & Wrapper

nnnik wrote:
07 Nov 2018, 11:30
  • find packages that are relevant for automating specific programs/websites and watching if these automation codes are still relevant
Hmm that sounds cool. Would love to see this with a web interface.
by Chunjee
07 Nov 2018, 07:54
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 89
Views: 7614

Re: [Request]: Official Library & Wrapper

That only seems like a short term solution. For long term solutions we need our own package manager. I don't see the point in re-inventing the package manager wheel. I also highly doubt the likelihood of matching the quality and feature set of npm. That being said whatever works, I'm in favor of. Y...
by Chunjee
06 Nov 2018, 06:25
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 89
Views: 7614

Re: [Request]: Official Library & Wrapper

iseahound wrote:
06 Nov 2018, 00:14
I really don't want a node_modules folder...
good news, yarn allows for a custom folder name:

Code: Select all

"scripts": {
        "newinstall": "yarn install --modules-folder ./lib"
    }
Image

Next?
by Chunjee
05 Nov 2018, 13:52
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 89
Views: 7614

Re: [Request]: Official Library & Wrapper

We're all just waiting for someone to create the AutoHotkey version of https://pypi.org/ or https://www.npmjs.com/ or https://rubygems.org/ or https://crates.io/ etc. npm is no longer Javascript exclusive and I have been somewhat successfully storing AHK libs in that format but have not yet registe...
by Chunjee
18 Oct 2018, 11:34
Forum: Scripts and Functions
Topic: Simple updater
Replies: 3
Views: 428

Re: Simple updater

I have a similar routine I use in one of my apps: https://github.com/Chunjee/LoneIRC/blob/master/app.ahk#L73 The concept is basically the same. Check a separate file online that stores the latest version number and download the new version if the numbers don't match. Might try to streamline this a b...
by Chunjee
17 Oct 2018, 08:29
Forum: Wish List
Topic: [Request] Module Export
Replies: 9
Views: 1002

[Request] Module Export

Hello, I am officially requesting Moduled Exports in the likeness of Node.js: https://nodejs.org/api/modules.html It would be nice to be able to use external functions without following the naming convention the function creator chose. Psuedocode: Class exampleClass{ __New() { } exampleMethod(parame...
by Chunjee
16 Oct 2018, 15:12
Forum: Scripts and Functions
Topic: [Library] Sift - Fuzzy Search by RegEx and Ngram
Replies: 17
Views: 4859

Re: [Library] Sift - Fuzzy Search by RegEx and Ngram

SetBatchLines, -1 will double the speed of most scripts because it tells the computer to have the script use all available CPU processing time as opposed to the default of only use up to half of the available CPU processing time. While an important option to keep in mind, this is really a command t...
by Chunjee
10 Oct 2018, 14:30
Forum: Ask For Help
Topic: Sørensen–Dice coefficient Topic is solved
Replies: 10
Views: 480

Re: Sørensen–Dice coefficient Topic is solved

The jaro winkler distance seems to be better for these tasks. I'm interested in this as well but not smart enough to write it myself. Here's what I came up with trying to duplicate the output of the javascript library string-similarity : Class stringsimilarity { ; #Include ../../lib/sort_arrays/exp...
by Chunjee
09 Oct 2018, 14:40
Forum: Ask For Help
Topic: Sørensen–Dice coefficient Topic is solved
Replies: 10
Views: 480

Re: Sørensen–Dice coefficient Topic is solved

nnnik wrote:Normally I would use the Levenshtein Distance.
For this one I would probably collect the bigrams of both strings in seperate arrays and then compare the arrays.
This is what I was working with but I'm having trouble returning a number between 0 and 1 for similarity.
by Chunjee
09 Oct 2018, 14:05
Forum: Ask For Help
Topic: Sørensen–Dice coefficient Topic is solved
Replies: 10
Views: 480

Sørensen–Dice coefficient Topic is solved

10.16.18 update: With the help of people in this thread, I put together a library that mirrors and expands on the output of string-similarity on npm . https://github.com/Chunjee/string-similarity.ahk I'm not sure how to turn this into a function: https://i.imgur.com/WrC0Wr3.png Does anyone have some...

Go to advanced search