Search found 114 matches

by coffee
10 Jan 2020, 20:26
Forum: AutoHotkey v2 Scripts and Functions
Topic: [v2] Yaml and JSON parser
Replies: 18
Views: 1621

Re: [v2] Yaml and JSON parser

kczx3 wrote:
10 Jan 2020, 18:05
Coffee, was that issue what was causing the speed issues with this parser that you mentioned in another thread?
Nop.
by coffee
09 Jan 2020, 20:42
Forum: AutoHotkey v2 Scripts and Functions
Topic: [v2] Yaml and JSON parser
Replies: 18
Views: 1621

Re: [v2] Yaml and JSON parser

return Load(FileRead(file),Yaml) ; load yaml from file This is referencing the wrong variable.
by coffee
09 Jan 2020, 20:25
Forum: AutoHotkey v2 Help
Topic: [2.0-a106+] JSON/Ahk parsing and dumping
Replies: 14
Views: 1195

Re: [2.0-a106+] JSON/Ahk parsing and dumping

it should be a lot faster . Did you actually test that claim with production data sets? Can you provide a test with large data that backs this up? because I'm certainly not seeing the 'a lot faster', not by a good number of minutes. (not trying to be snarky, i'm legitimately not seeing the 'faster'...
by coffee
20 Aug 2019, 21:28
Forum: AutoHotkey v2 Development
Topic: Why are static definitions not inherited?
Replies: 19
Views: 1930

Re: Why are static definitions not inherited?

Currently I can't even access my own static variable anyways without resorting to a global I'm going to assume you are complaining about not being able to access common properties across instances. Quoting 'java can do it x way' when you are using autohotkey specific gimmicks with the percentages s...
by coffee
12 Jun 2019, 07:14
Forum: Ask For Help
Topic: Undefined value ?
Replies: 5
Views: 583

Re: Undefined value ?

But now, what was the idea of the author of this code? It's in the comment he wrote. How to explain that the value in Undefined, will never equals any value of any AHK vaabiable? It could equal to an autohotkey variable, if you stop creating a new object each time. Define one superglobal variable t...
by coffee
12 Jun 2019, 04:08
Forum: Ask For Help
Topic: Undefined value ?
Replies: 5
Views: 583

Re: Undefined value ?

For the same reason msgbox({} == {}) is 0. What makes you think creating one, two, three, four different objects and optionally wrapping them would make them equal to each other? They are different entities. That undefined is not a primitive/built-in datatype. Autohotkey has no undefined. That's jus...
by coffee
26 May 2019, 21:36
Forum: Scripts and Functions
Topic: [DllCall] Pseudo wrapper for common DLL's
Replies: 8
Views: 1262

Re: [DllCall] Pseudo wrapper for common DLL's

GetKeyState(Args*){ Return DllCall("GetKeyState", Args*) } SendInput(Args*){ Return DllCall("SendInput", Args*) } SendMessage(Args*){ Return DllCall("SendMessage", Args*) } Sleep(Args*){ Return DllCall("Sleep", Args*) } SetTimer(Args*){ Return DllCall("SetTimer", Args*) } PostMessage(Args*){ Return...
by coffee
21 Apr 2019, 22:04
Forum: Ask For Help
Topic: In Search of a RegEx Magic Formula
Replies: 9
Views: 818

Re: In Search of a RegEx Magic Formula

Regexreplace(output, "i)(\v+\h*|^)a", "$1£")

There are escapable characters that are not explicitly documented in the autohotkey doc, that can sometimes come in handy.
by coffee
13 Mar 2019, 21:27
Forum: Ask For Help
Topic: Find webpage elements in order they are found on webpage DOM??
Replies: 8
Views: 1191

Re: Find webpage elements in order they are found on webpage DOM??

Hello Folks, I know how to pull webpage elements, like title, meta description, h1, h2, etc. by using QuerySelector and GetElement(s)ById/TagName/ClassName with WinHttpRequest and Internet Explorer. I'm wondering if anyone knows the best way (or any way) to know the ordering of these elements as th...
by coffee
17 Feb 2019, 19:49
Forum: Ask For Help
Topic: 5 virus programs say AHK is a virus?
Replies: 11
Views: 1395

Re: 5 virus programs say AHK is a virus?

oh comeon ffs, everybody knows ahk isnt a virus! its a worm, heres a documentary i found about lexikos: https://youtu.be/bcAACOrgVKE?t=61 This is a version of lexikos i can get behind ( ͡° ͜ʖ ͡°), v3.0 B̗̈͠E̖̬͈̜͕̱T͐̋͆ͣ̏͏̣̮͚Ȃ͇̳̥̻̅ͣͥ̔̃͂ https://i.imgur.com/iRoTlm5.jpg But more importantly, official a...
by coffee
17 Feb 2019, 18:23
Forum: Ask For Help
Topic: 5 virus programs say AHK is a virus?
Replies: 11
Views: 1395

Re: 5 virus programs say AHK is a virus?

This is a custom compilation of autohotkey with only a few things changed for reference.
https://www.virustotal.com/#/file/0d64e12013cd4da11d8db96aea58dd6087e578f85617a4d076c427dde8b51b78/detection

Fuck cylance and whomever made that piece of shit detection algorithm.
by coffee
16 Feb 2019, 21:54
Forum: Ask For Help
Topic: Script Performance
Replies: 11
Views: 1767

Re: Script Performance

Far fetched, but wouldn't be the first time I've seen a high DPC latency create a chain reaction. Check it if you want to make sure.
Example of something you can use.
https://www.thesycon.de/eng/latency_check.shtml
by coffee
16 Feb 2019, 00:29
Forum: Wish List
Topic: [Request] Module Export
Replies: 17
Views: 2743

Re: [Request] Module Export

What do you mean by finicky? If you look at it wrong it throws an access violation. Doing msgbox(type(mymod.world)) above the mymod.world() call in previous post either hangs, throws access violation or works, or all three at the same time ¯\_(ツ)_/¯ Using ahkthread seems more consistent, though I d...
by coffee
15 Feb 2019, 03:01
Forum: Wish List
Topic: [Request] Module Export
Replies: 17
Views: 2743

Re: [Request] Module Export

This *may* be emulated using AutoHotkey_H (latest version, v2) if you want to experiment. You can try asking HotkeyIt for some help with this. He can probably iron out any quirks to make it work 'neatly', if you propose something. Raw proof of concept: For a file called "namedModule.ahk" exports.wor...
by coffee
14 Feb 2019, 22:11
Forum: Suggestions on documentation improvements
Topic: Suggestions on documentation improvements
Replies: 688
Views: 183198

Re: Suggestions on documentation improvements

Seriously, what the fuck is going in this thread? People who have been using autohotkey for ages and still have no fucking clue about autohotkey's can-count-with-a-single-hand value types. Let's ignore the absolute retardation that objects should be compared as strings and move over to: Doc, at http...
by coffee
25 Jan 2019, 00:42
Forum: AutoHotkey v2 Development
Topic: fat function in class method changes var outside itsscope
Replies: 59
Views: 7605

Re: fat function in class method changes var outside itsscope

But what do u think of using just a bare variable name in the expression? Not ( (var) ) as if we wanted to evaluate it (such syntax is currently used in AHK for evaluation of key names inside objects/array declaration), just ( var ) . Especially if variable's value is not used further on in the exp...
by coffee
24 Jan 2019, 01:32
Forum: AutoHotkey v2 Development
Topic: fat function in class method changes var outside itsscope
Replies: 59
Views: 7605

Re: fat function in class method changes var outside itsscope

I know how expressions r evaluated in general. Flow control statements, keyword statements, action commands and expressions are processed in separate stages of the script. Declaration keywords are not even considered in the expression parser, so they are just variables. Only callables in expression...
by coffee
19 Jan 2019, 03:29
Forum: Ask For Help
Topic: Find keywords and fill in strings.... Topic is solved
Replies: 12
Views: 1677

Re: Find keywords and fill in strings.... Topic is solved

It was an example on "how-to", not an exhaustive drop-in solution, you need to read the comments and take what you need, then apply it to your script.

Go to advanced search