Search found 405 matches

by vvhitevvizard
30 Jul 2020, 07:11
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. [list of 45 suggestions]

You need to use a much larger array to see the real difference between the 2 methods - e.g. 10k entries. True. It gives a basic idea. It might yield even greater delta cuz we measure c+=a[a_index] inside loops and loop initialization takes some time. I might insert perfcounter queries between this ...
by vvhitevvizard
30 Jul 2020, 06:43
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. [list of 45 suggestions]

The single advantage of an enumerator/iterator over accessing each index by its value one after another is speed. U r absolutely right here. I've just tested loop array.length {array[a_index]} vs for v in array {v} vs for k,v in array {v} using AHK V2-118. My dbg class measures average, minimum, ma...
by vvhitevvizard
30 Jul 2020, 05:31
Forum: AutoHotkey v2 Development
Topic: Smarter dllcall()
Replies: 3
Views: 2011

Re: Smarter dllcall()

What is PY? Its definitely .py Python :) I found that PY calls DLL without specifying the parameter type. This is very convenient, using DLL becomes very simple. So can we achieve the same effect in V2? It was partially tackled in AHK_H V2 branch (by HotKeyIt ) with DllCall 's equivalent named Dyna...
by vvhitevvizard
30 Jul 2020, 05:09
Forum: AutoHotkey v2 Development
Topic: [a119] Associative or Pseudo- Arrays and Dereferencing Numbers Topic is solved
Replies: 35
Views: 9277

Re: [a119] Associative or Pseudo- Arrays and Dereferencing Numbers Topic is solved

the last update that introduced useful detection of unset variables is unable to process pseudoarrays correctly. Indeed, the warning is triggered at parsing (loading time) and these vars exist at runtime. Well, its the same issue as output variables (#45) - we might need some keywords (e.g. dyn and...
by vvhitevvizard
29 Jul 2020, 08:18
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. [list of 45 suggestions]

https://www.autohotkey.com/boards/viewtopic.php?f=37&t=75049 Again, tuples would be nice. Barring that, an array or an object. I use tuples ( unmodified lists) here and there in Python, the more types we could have in AHK the better! no doubt about it. But I touch the current AHK version status quo...
by vvhitevvizard
29 Jul 2020, 07:50
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. Just a bliss! Feels so good. But a [list of 42 suggestions]

There is no point in introducing new syntax when what we have getpos(x:=0, y:=0, w:=0, h:=0) works fine. My complaint concerns #warn UseUnsetLocal . So instead of assigning some value just to appease warning dialogues: ;function start: local x:=0, y:=0, w:=0, h:=0 ;... getpos(x, y, w, h) ;x1:=x, y1...
by vvhitevvizard
29 Jul 2020, 07:34
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. [list of 45 suggestions]

For some unknown reason it brings a dramatic slowdown for some scripts upto 8% compared to version V2-118! This is not very useful information if we don't know what and how you measure this. Actually I got quite a lot of real-world test files due to for every project I do have a benchmark mode. Her...
by vvhitevvizard
29 Jul 2020, 04:37
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. [list of 45 suggestions]

Thx for quick reply, Helgef ! It looks great. swagfag 40. well, what about "For map enumerator to return key is quite convenient cuz value can be obtained via KEY."? Yes, map and array enumerators don't correspond to each other's key / value preference. We just need a unified (expected) rule here. A...
by vvhitevvizard
29 Jul 2020, 04:05
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. [list of 45 suggestions]

swagfag wrote:
28 Jul 2020, 20:11
40.
BTW, I don't quite understand the meaning of this (from V2-a118):
Revised implementation of for: Increased maximum number of variables from 2 to 19
Does it mean that now I can write for i,j,k,l,m,n in customobj.enumerator?
by vvhitevvizard
29 Jul 2020, 03:36
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. [list of 45 suggestions]

swagfag 44. is broken, remnant from v1 where it sets ErrorLevel or throws if inside a try(since theres no ErrorLevel in v2 anymore, throwing is all there is) meanwhile, swallow the exception or Good morning! yeah I wrote that point after realizing wrapping it in try/catch block feels awkward: try s...
by vvhitevvizard
28 Jul 2020, 08:54
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. Just a bliss! Feels so good. But a [list of 42 suggestions]

43. Similar to #42 , a button to unconditionally exit a parsing process after the first warning dialogue at loading time. 44. To stop a file that is currently playing, use SoundPlay on a nonexistent filename as in this example: SoundPlay "Nonexistent.avi". And it throws: soundplay("-1") I believe w...
by vvhitevvizard
27 Jul 2020, 05:17
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated to v2-119. Just a bliss! Feels so good. But a [list of 42 suggestions]

116->118 (117 was buggy due to catch(var)) I find this new load-time warning This var appears to never be assigned a value to be very useful. It finds code leftovers that would trigger at some point to a run-time error and r very hard to debug. :clap: Issue #25 was addressed. It works and now its p...
by vvhitevvizard
17 Jul 2020, 02:07
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 - give it a new name
Replies: 18
Views: 5443

Re: AutoHotkey v2 - give it a new name

why not just use FileGetVersion and write your own test function? All the v2 binaries (that I've seen at least) have the specific build listed in their metadata. #requires is a preprocessor command that activates at the script loading time. It activates before runtime, before other lines following ...
by vvhitevvizard
16 Jul 2020, 21:05
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 - give it a new name
Replies: 18
Views: 5443

Re: AutoHotkey v2 - give it a new name

Pretty sure #Requires defines a minimum version requirement. The point is one might want maximum version requirement to be defined, too :D My use case I'm in the middle of upgrade for some code chunks and I do know exactly what AHK versions the current code is compliant with (I upgrade it gradually...
by vvhitevvizard
16 Jul 2020, 20:24
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 - give it a new name
Replies: 18
Views: 5443

Re: AutoHotkey v2 - give it a new name

#requires I can't apprehend what syntax is required to make some special script version run ONLY with the exact alpha version. I tried #Requires AutoHotkey v2.0-a103 But it still runs on V2-a116 w/o that special warning/error. Also, request: ability to set a range, e.g. v2.0-a103, v2.0-a107 with co...
by vvhitevvizard
16 Jul 2020, 08:47
Forum: AutoHotkey v2 Development
Topic: changing operators // and //= to only do integer or floor division
Replies: 17
Views: 5407

Re: changing operators // and //= to only do integer or floor division

After some thought, having restricted to fixed-point integers only division operator // is a good move. It enables better error checking. :thumbup:
by vvhitevvizard
16 Jul 2020, 08:33
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 27808

Re: Updated from v2-108 to v2-112. Just a bliss! Feels so good. But a [list of bugs/suggestions]

:thumbup: 17/07/2020. Updated the opening post and also added more points (up to 42 ). 39. #requires I can't apprehend what syntax is required to make some special script version run ONLY with the exact alpha version. I tried #Requires AutoHotkey v2.0-a103 But it still runs on V2-a116 w/o that speci...
by vvhitevvizard
16 Jul 2020, 08:30
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7722

Re: GuiCtrl.GetPos()

@vvhitevvizard the whole “single opt parameter string” was meant to bridge the gap. My preference is still either a method or property that returns an object as it used to. yeah. Property to return a value like it was before isn't bad either. I addressed here the whole "parameters string" legacy st...
by vvhitevvizard
16 Jul 2020, 07:48
Forum: AutoHotkey v2 Development
Topic: changing operators // and //= to only do integer or floor division
Replies: 17
Views: 5407

Re: changing operators // and //= to only do integer or floor division

Helgef wrote:
16 Jul 2020, 07:44
Old // did floor(a/b).
Cheers.
yeah, Floor is closer to discarding the remainder. =) I've seen ur post in the topic proving that Round's result may be different from Floor. :thumbup:
by vvhitevvizard
16 Jul 2020, 07:30
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 20
Views: 7722

Re: GuiCtrl.GetPos()

kczx3 , on the contrary, in https://www.autohotkey.com/boards/viewtopic.php?f=37&t=77841 I suggested to expand that new gc.getpos(var,var,var,var) style with: gc.setpos(), gc.settextstyle( [bold/italic/other flags,size, kerning/etc]), gc.setcolor(color [,background]), gc.autosize, gc.settextalign()...

Go to advanced search