Search found 133 matches
- 19 Jan 2019, 02:56
- Forum: Ask for Help (v1)
- Topic: Find keywords and fill in strings.... Topic is solved
- Replies: 12
- Views: 2800
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...
- 18 Jan 2019, 02:41
- Forum: Ask for Help (v1)
- Topic: Fastest sort
- Replies: 9
- Views: 2737
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...
- 15 Jan 2019, 23:32
- Forum: Ask for Help (v1)
- Topic: Fastest sort
- Replies: 9
- Views: 2737
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 ...
- 14 Jan 2019, 01:20
- Forum: Ask for Help (v1)
- Topic: Condensing Autohotkey Code
- Replies: 17
- Views: 3884
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...
- 14 Jan 2019, 00:44
- Forum: Ask for Help (v1)
- Topic: Condensing Autohotkey Code
- Replies: 17
- Views: 3884
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...
- 13 Jan 2019, 00:30
- Forum: Ask for Help (v1)
- Topic: Raw TRUE/FALSE test on an object Topic is solved
- Replies: 3
- Views: 1253
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...
- 07 Jan 2019, 11:44
- Forum: Ask for Help (v1)
- Topic: Illegal character in return statement
- Replies: 3
- Views: 851
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.
Read the yellow box at the top, specifically after the comma, read the parameters examples.
- 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: 2692
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...
- 06 Jan 2019, 01:01
- Forum: Ask for Help (v1)
- Topic: action on undedined class methods - is it possible? Topic is solved
- Replies: 32
- Views: 4143
Re: action on undedined class methods - is it possible? Topic is solved
What version are you on? It is possible to do some self contained hackery with v2 using nested functions, if it's for a single purpose. class test { _protify_() { static _ := test._protify_() this.delete("_protify_") this.base := { __Get: Func("get"), __Set: Func("set"), __Call: Func("call") } get(t...
- 30 Dec 2018, 21:04
- Forum: Ask for Help (v1)
- Topic: Is there any good alternative for script Pre-Edition for AHK?
- Replies: 11
- Views: 2416
Re: Is there any good alternative for script Pre-Edition for AHK?
What part of "Avoid Repetition" you did not understand? Look at how many times you are repeating "functionname" in your examples! At most 3, one on call (which you will have to), one on definition (which you will have to), one to retrieve the object if needed, or 1 when caching the name manually, o...
- 30 Dec 2018, 15:43
- Forum: Ask for Help (v1)
- Topic: Is there any good alternative for script Pre-Edition for AHK?
- Replies: 11
- Views: 2416
Re: Is there any good alternative for script Pre-Edition for AHK?
You know you could completely avoid repeating code by just using A_ThisFunc directly instead of whatever you are trying to do. To add to this answer: Or since you are already typing static x = a_thisfunc, you can simply type local x = a_thisfunc to cache it. Or since you insist on this. functionnam...
- 30 Dec 2018, 15:33
- Forum: Ask for Help (v1)
- Topic: An #Include problem--no way??? Topic is solved
- Replies: 6
- Views: 1093
Re: An #Include problem--no way??? Topic is solved
Thank you, gregster & swagfag! Yes, I know, the name of the subfolder is not %A_ScriptName%, the extension would have to be removed...and that is impossible again. swagfag: Your idea (to use a folder which name is exactly the name of the script) was my idea too. Unfortunately this is impossible: Wi...
- 23 Dec 2018, 12:55
- Forum: Ask for Help (v2)
- Topic: AHK v2 - Local Help file - Window Spy
- Replies: 13
- Views: 6244
Re: AHK v2 - Local Help file - Window Spy
Now I assume that AHK-2.0 is properly installed on this computer. It's not. Because you will then try to use it without adapting or changing anything. v2 is alpha, so it doesn't come with the same files as v1, since it is not "official". ______ Tested some old AHK scripts, and got some minor errors...
- 22 Dec 2018, 11:40
- Forum: Ask for Help (v2)
- Topic: AHK v2 - Local Help file - Window Spy
- Replies: 13
- Views: 6244
Re: AHK v2 - Local Help file - Window Spy
Thanks! This solution - solved the problem using the .chm file ...1) try https://www.quora.com/How-do-I-open-chm-files-in-Windows... What I still think is wrong. (my point 2) When I click on an icon that leads to a file (WindowSpy.ahk) that does not exist on this computer, a message arises that it ...
- 21 Dec 2018, 10:50
- Forum: Ask for Help (v2)
- Topic: AHK v2 - Local Help file - Window Spy
- Replies: 13
- Views: 6244
Re: AHK v2 - Local Help file - Window Spy
I do not expect the instruction to be wrong on a program, as is not exist on this computer … (all instructions is missing ;) ) The chm is fine. If it has blank contents, you have a problem with either file permissions, that specific file may require unblocking, internet permissions, or with the eng...
- 15 Dec 2018, 00:20
- Forum: Ask for Help (v1)
- Topic: [v1] BoundFunc, bind only second arg? Topic is solved
- Replies: 1
- Views: 553
Re: [v1] BoundFunc, bind only second arg? Topic is solved
Not from what I can see. There's no logic in the bind method to account for that, neither is there in the boundfunc constructor. The boundfunc parameters are simply stored in an autohotkey-type (object::createarray) array in the order they are given. On .call whatever parameters are given are 'merge...
- 06 Dec 2018, 02:13
- Forum: AutoHotkey_H
- Topic: How to build Autohotkey_H source code? Topic is solved
- Replies: 32
- Views: 15212
Re: How to build Autohotkey_H source code? Topic is solved
2>c:\ahk\ahk_h v2 source\ahkdll-alpha\source\autohotkey.cpp(56): warning C4302: 'type cast': truncation from 'LPWSTR' to 'WORD' 2>c:\ahk\ahk_h v2 source\ahkdll-alpha\source\autohotkey.cpp(137): warning C4302: 'type cast': truncation from 'LPWSTR' to 'WORD' 2>lowlevelbif.cpp 2>MemoryModule.cpp 2>Min...
- 02 Dec 2018, 19:32
- Forum: Scripts and Functions (v1)
- Topic: StringTrim() - Wrapper with Functional Enhancements
- Replies: 7
- Views: 2586
Re: StringTrim() - MinorEnhancement To BuiltIn Trim Func/Cmds
Just a disclaimer for anyone thinking on using trimming functions to remove strings. LTrim, RTrim, Trim are character trimming functions, not whole string trimming functions (as in chains of characters, what would be the equivalent to an array of characters), neither are they string replacer functio...
- 22 Oct 2018, 01:15
- Forum: Ask for Help (v2)
- Topic: Anyone had success with compiling scripts in v2?
- Replies: 10
- Views: 2381
Re: Anyone had success with compiling scripts in v2?
Use flipeador's ahk2exe remake and see if it works for you (if you can make out the spanish). He's a mod here on the forum. He has fincs' directives and a bunch of other stuff. Fincs' is basically vaporware at this point.
https://github.com/flipeador/Ahk2Exe
https://github.com/flipeador/Ahk2Exe
- 21 Oct 2018, 20:56
- Forum: AutoHotkey Development
- Topic: Bug: GuiCtrl.Pos[xyhw]
- Replies: 14
- Views: 5594
Re: Bug: GuiCtrl.Pos[xyhw]
x.y[z] is the same as x[y,z] , which is not the same as x.y.z which is the same as (x.y).z . Basically, it means that when you do GuiCtrl.Pos['x'] you are treating the GuiCtrl object as if it was multidimensional, which it isn't, so there is an error. Example for custom properties, It is multidimen...