Search found 106 matches

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

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

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

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

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

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

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: 548
Views: 109117

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: 55
Views: 2736

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: 55
Views: 2736

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

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

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

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

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 ...
by coffee
14 Jan 2019, 01:20
Forum: Ask For Help
Topic: Condensing Autohotkey Code
Replies: 17
Views: 764

Re: Condensing Autohotkey Code

Loop, { if (X = 0) { try { Xl := ComObjActive("Excel.Application") This is where There are however good practices in creating performant code in its own execution context May come into play. I don't know what's in the rest of your script, but I'm going to make the assertion that you don't need to r...
by coffee
14 Jan 2019, 00:44
Forum: Ask For Help
Topic: Condensing Autohotkey Code
Replies: 17
Views: 764

Re: Condensing Autohotkey Code

Hello Folks, I looked around a bit and couldn't find a quick answer, maybe you know of one? I started writing code the other day and realized that I was writing it inside more lines than necessary (due to my newness about coding and how AHK interpreter works in general) for example, I had this code...
by coffee
13 Jan 2019, 00:30
Forum: Ask For Help
Topic: Raw TRUE/FALSE test on an object Topic is solved
Replies: 3
Views: 282

Re: Raw TRUE/FALSE test on an object Topic is solved

I discovered something unexpected. If you do a raw TRUE/FALSE test on an object or variable that contains an object, the test will return TRUE. For example, "if MyObject", "if {abc:123}", and "if []" will all test as TRUE. This can be useful if a function returns FALSE or an object. And yes, I know...
by coffee
07 Jan 2019, 11:44
Forum: Ask For Help
Topic: Illegal character in return statement
Replies: 3
Views: 241

Re: Illegal character in return statement

https://autohotkey.com/docs/commands/Return.htm
Read the yellow box at the top, specifically after the comma, read the parameters examples.
by coffee
06 Jan 2019, 17:22
Forum: AutoHotkey_H
Topic: [AHK_H v2] Bug: ExeThread() -> call to nonexistent function RegisterCallback() Topic is solved
Replies: 3
Views: 349

Re: [AHK_H v2] Bug: ExeThread() -> call to nonexistent function RegisterCallback() Topic is solved

Exethread is not a native c++ function. Autohotkey H has an extra library location as a resource, i.e it can pull library files embedded in the executable itself after the default libraries fail (local, user, standard). These files are inserted in the post compile script included in the git repo. Tr...

Go to advanced search