Search found 4459 matches

by Helgef
Today, 09:12
Forum: AutoHotkey v2 Help
Topic: This thing that all AHK deloppers do at least once in their life.
Replies: 1
Views: 62

Re: This thing that all AHK deloppers do at least once in their life.

I still see the same prints when I uncomment

Code: Select all

;this.Add('Edit')             ; ★
;this.Add('Button',, "Ok")    ; ★
Cheers.
by Helgef
12 Sep 2020, 06:12
Forum: Scripts and Functions
Topic: Emoji() : 40 unicode icons
Replies: 14
Views: 623

Re: Emoji() : 40 unicode icons

Nice, thanks for sharing :thumbsup: :heart:

Cheers.
by Helgef
12 Sep 2020, 06:09
Forum: Scripts and Functions
Topic: IsAlphaBitmap() : Returns true if hBitmap is alpha transparent
Replies: 4
Views: 180

Re: IsAlphaBitmap() : Returns true if hBitmap is alpha transparent

The function can fail in case of interruptions. You can use critical to ensure no other thread destroy the gui before the function returns. Or use a unique gui for each call.

Cheers.
by Helgef
24 Aug 2020, 00:18
Forum: Scripts and Functions
Topic: DragBoxGuiDropFiles() : Tiny auto-pop UI to dragaccept content from File explorer/Web browser
Replies: 6
Views: 2616

Re: DragBoxGuiDropFiles() : Tiny auto-pop UI to dragaccept content from File explorer/Web browser

V := VarSetCapacity(V,8)
Remove the assignment ;).
So, where does 123456 get stored ?
In the variable, but apparently not in its string buffer. Related, Caching.

Cheers.
by Helgef
23 Aug 2020, 11:25
Forum: Scripts and Functions
Topic: DragBoxGuiDropFiles() : Tiny auto-pop UI to dragaccept content from File explorer/Web browser
Replies: 6
Views: 2616

Re: DragBoxGuiDropFiles() : Tiny auto-pop UI to dragaccept content from File explorer/Web browser

Dllcall CreateWindowEx, return ptr

Return (varsetcapacity(V
This will return a number and storing it in v, you don't have any guarantee of the capacity of v.

Return % expr. Don't need %.

Cheers.

Edit, hi :wave: And thanks for sharing :beer:
by Helgef
19 Aug 2020, 10:55
Forum: General Discussion
Topic: We just broke the most users online number again!
Replies: 5
Views: 998

Re: We just broke the most users online number again!

Most users ever online was 9489 on 18 Aug 2020, 15:39
I think that was a circa 4k jump. Interesting.
by Helgef
15 Aug 2020, 23:11
Forum: Bug Reports
Topic: [a122] unary minus/member access precedence
Replies: 3
Views: 1776

Re: [a122] unary minus/member access precedence

where in the last case the expected behavior is that of invoking property get on (-4.5)
Both types of member access (x.y and x.%expr%) are of higher precedence than unary minus. So the behaviour of the last case would be the one to expect.

Cheers.
by Helgef
11 Aug 2020, 00:58
Forum: AutoHotkey v2 Help
Topic: global variable problem in new v2 version
Replies: 7
Views: 4000

Re: global variable problem in new v2 version

Perhaps renaming #If to #HotIf wasn't enough... Perhaps the word If shouldn't be in there. The word If might also cause newcomers to think they define the hotkeys conditionally. Perhaps something like #HotkeyContext would be clearer, although a bit long Note: Unlike if statements, braces have no ef...
by Helgef
10 Aug 2020, 00:27
Forum: Ask For Help
Topic: "F12 & Hotkey::" instead of "F12 & 1::"? Topic is solved
Replies: 2
Views: 1525

Re: "F12 & Hotkey::" instead of "F12 & 1::"? Topic is solved

Two examples, hk_f12(thisHotkey){ ; f12 & "hotkey" callback msgbox % thisHotkey } key_list := [1, 2, 3, "a"] for k, v in key_list { hkfn := func("hk_f12").bind(v) hotkey % "f12 & " . v, % hkfn } f12::return #if getkeystate("F12", "p") 1:: 2:: 3:: a:: hk_f12() { msgbox % a_thishotkey } Cheers.
by Helgef
10 Aug 2020, 00:06
Forum: AutoHotkey v2 Help
Topic: A strange __set() disturbance Topic is solved
Replies: 29
Views: 13611

Re: A strange __set() disturbance Topic is solved

that is weird, considering: meta-set's signature is __Set(this, Name, Params, Value) { } yet the set function object's appears to be ...(this, Value, Params*) { } It is not a meta set being called. It is a prop setter. Set: The function object to call when the property is assigned a value. Its seco...
by Helgef
08 Aug 2020, 03:34
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 26569

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

Having the ability to count the object's references would help A LOT. As I said, use objaddref/release , o := {} objaddref objptr(o) count := objrelease(objptr(o)) msgbox count Yes but what if a reference counter is unknown and/or the culprits that increase it r unknown as well, and... I don't know...
by Helgef
07 Aug 2020, 12:41
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 26569

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

We already have ObjAddRef / ObjRelease if we need that.
by Helgef
07 Aug 2020, 06:18
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 26569

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

This is the conventional behaviour.
Caching wrote:AutoHotkey automatically converts between numbers and strings in cases like "Value is " myNumber and MsgBox myNumber.
by Helgef
06 Aug 2020, 12:58
Forum: Bug Reports
Topic: [a119] #Warn Unreachable detection failure
Replies: 2
Views: 1063

Re: [a119] #Warn Unreachable detection failure

I didn't see this before I posted in the other thread. It's not a bug. But I wouldn't use blocks like this to circumvent the warning.
by Helgef
06 Aug 2020, 12:36
Forum: AutoHotkey v2 Help
Topic: global variable problem in new v2 version
Replies: 7
Views: 4000

Re: global variable problem in new v2 version

whether this is a bug or its cause the feature isnt fully fleshed out yet, i cant say. Before the script starts to run, show a warning for each line that immediately follows a Return, Break, Continue, Throw or Goto at the same nesting level , My bold. The block which starts below the #hotif counts ...
by Helgef
05 Aug 2020, 04:30
Forum: Ask For Help
Topic: Is there any easy method to randomise an array
Replies: 7
Views: 4273

Re: Is there any easy method to randomise an array

Hello, very nice to see you back again @A_AhkUser :superhappy: .
A_AhkUser wrote:
04 Aug 2020, 17:59

Code: Select all

loop % count:=arr.Count(ranStr:="") {
This is unacceptable though :terms: :lol: . (count accepts exactly zero parameters)

Cheers.
by Helgef
04 Aug 2020, 05:50
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 26569

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

Correct. I didn't run the other test (yet, maybe)
by Helgef
03 Aug 2020, 11:21
Forum: AutoHotkey v2 Development
Topic: Updated to v2-119. [list of 50 suggestions]
Replies: 78
Views: 26569

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

2.0-a118-1e6cd8a1 1. dll call with 1 param | min:0.4000 max:22.9000 avg:0.5307 2.0-a119-179d27fd 1. dll call with 1 param | min:0.4000 max:1673.5000 avg:0.5172 This test code isn't very good. Disregarding that the performance of dllcall is a pretty poor metric for a118 vs a119 performance, you shou...

Go to advanced search