Search found 111 matches

by coffee
20 Aug 2019, 21:28
Forum: AutoHotkey v2 Development
Topic: Why are static definitions not inherited?
Replies: 19
Views: 1162

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

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

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

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

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

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

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

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

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: 9
Views: 1597

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: 9
Views: 1597

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: Wish List
Topic: Suggestions on documentation improvements
Replies: 608
Views: 139984

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

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

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

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.
by coffee
19 Jan 2019, 02:56
Forum: Ask For Help
Topic: Find keywords and fill in strings.... Topic is solved
Replies: 12
Views: 1262

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

When using excel COM sometimes it can be a good idea to set excel to R1C1 notation in the excel options so you can visualize what you want and then work straight with integers, instead of lettered columns. You can use numbers as pseudo pointers that you can increase decrease as needed. Or simply vis...
by coffee
18 Jan 2019, 02:41
Forum: Ask For Help
Topic: Fastest sort
Replies: 9
Views: 1086

Re: Fastest sort

Let me guess.... It slows down the script? :D xd, you are just not accessing direct memory addresses like you would in a compiled language (and maybe google's v8? i know they do some fuckery with hidden classes), i.e you are not going straight to the element, you may have to go over a few, in addit...
by coffee
15 Jan 2019, 23:32
Forum: Ask For Help
Topic: Fastest sort
Replies: 9
Views: 1086

Re: Fastest sort

A sort truly implemented in AHK is never going to be as fast as a the Sort command which is implemented in C++. The Sort command is probably a Quicksort at its core. It uses qsort from maykrosoft, so YEET. Array[pivot] I'm gonna let someone else spoil your fun and tell you what happens when you do ...

Go to advanced search