Search found 3150 matches

by Helgef
Yesterday, 05:42
Forum: Ask For Help
Topic: Extracting numbers from string Topic is solved
Replies: 5
Views: 143

Re: Extracting numbers from string Topic is solved

This doesn't do what you think,

Code: [Select all]GeSHi © Codebox Plus

local static i := 1

Check listvars.

Cheers.
by Helgef
Yesterday, 05:37
Forum: Scripts and Functions
Topic: quantiles: list first number, last number, and numbers in-between
Replies: 2
Views: 91

Re: quantiles: list first number, last number, and numbers in-between

- If there are any similar scripts it would be interesting to know.

The same, although, mine is more efficient.

Cheers.
by Helgef
Yesterday, 05:25
Forum: Ask For Help
Topic: [Objects] - Clone() bug? Topic is solved
Replies: 6
Views: 113

Re: [Objects] - Clone() bug? Topic is solved

It doesn't handle circular references. ( meaning it is neither safe nor reliable for general use) Cheers. Edit: Not tested, ObjFullyClone(obj, z := "") { if !z z := [] nobj := obj.Clone() for k,v in nobj if IsObject(v) && !z.haskey(v) z[v]:="", nobj[k] := A_ThisFunc.(v, z...
by Helgef
Yesterday, 02:25
Forum: AutoHotkey v2 Development
Topic: Math Functions
Replies: 16
Views: 367

Re: Math Functions

The number is a double anyways. Specifying a less accurate number will only make make the result less accurate, not one bit faster. Unless you take, eg, pi as 3, and only make calculations with integer and integer results.
by Helgef
17 Sep 2018, 14:08
Forum: Wish List
Topic: [Request]: Official Library & Wrapper
Replies: 38
Views: 709

Re: [Request]: Official Library & Wrapper

If it is official, it should come with the installer, and be optional to install to the lib folder. Ahk_h comes with libs if I'm not mistaken.

Cheers.
by Helgef
17 Sep 2018, 09:23
Forum: Ask For Help
Topic: (solved) If-Or Multi Match Syntax? if (x=1 OR x=2 OR x=3) Topic is solved
Replies: 10
Views: 168

Re: (solved) If-Or Multi Match Syntax? if (x=1 OR x=2 OR x=3) Topic is solved

I'd use if var in matchlist over ~=. Alternative, a variadic function plus for loop, it is much simpler., avoids strings. In / contains are not Deprecated.

Cheers.
by Helgef
15 Sep 2018, 13:08
Forum: AutoHotkey v2 Development
Topic: <> no longer acceptable as a comparison operator
Replies: 35
Views: 599

Re: <> no longer acceptable as a comparison operator

Thanks, Helgef. Do you know what the thinking was on removing it? Hello, I didn't mean to ignore your question, I've been afk. There was a few mentions here . - I would keep <> for these reasons: Hello jeeswg :wave: . - I haven't heard one good reason to remove <>. One good reason is because you wa...
by Helgef
15 Sep 2018, 11:54
Forum: AutoHotkey v2 Development
Topic: Exceptions (for unknown properties, more)
Replies: 6
Views: 174

Re: Exceptions (for unknown properties, more)

Hello :wave:. I'm all for better identification of the type of exception being thrown, however, imo, less precise information is better than no information at all. Also, mostly I do not want to handle exceptions like call to non-existent method in any other way than correcting a coding mistake. The ...
by Helgef
11 Sep 2018, 02:12
Forum: Forum Issues
Topic: BBCode code tags: list of programming languages
Replies: 2
Views: 50

Re: BBCode code tag examples

there is a drop-down list , select code, in the post editor.
by Helgef
10 Sep 2018, 11:50
Forum: Ask For Help
Topic: Floor divide operator v. Floor function and divide
Replies: 8
Views: 118

Re: Floor divide operator v. Floor function and divide

Why did you stop reading at the first sentence in documentation you quoted?


Edit: hello wolf_II :wave:
by Helgef
09 Sep 2018, 10:12
Forum: Ask For Help
Topic: Error: Call to nonexistent function.
Replies: 2
Views: 76

Re: Error: Call to nonexistent function.

1 is not a function.
by Helgef
09 Sep 2018, 06:02
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 21
Views: 435

Re: Nothing.

I reasoned about it, therefore it is reasonable

That is reasonable.
are we done here?

Clearly.

I apologise for wasting space and time.

Cheers.
by Helgef
09 Sep 2018, 03:05
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 21
Views: 435

Re: Nothing.

... The purpose is not clear. You are correct, clearly my reasoning failed. The parameter is a variable. It must have a default value, except in the hypothetical case where a variable can lack a value and attempting to read it will throw an error. I wonder, do you think the hypothetical case is unr...
by Helgef
08 Sep 2018, 06:27
Forum: Ask For Help
Topic: Gui without taskbar button...alternatives to +ToolWindow?
Replies: 2
Views: 96

Re: Gui without taskbar button...alternatives to +ToolWindow?

See dllcall examples , /* Example: Temporarily remove the active window from the taskbar by using COM. Methods in ITaskbarList's VTable: IUnknown: 0 QueryInterface -- use ComObjQuery instead 1 AddRef -- use ObjAddRef instead 2 Release -- use ObjRelease instead ITaskbarList: 3 HrInit 4 AddTab 5 Delet...
by Helgef
08 Sep 2018, 06:21
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 21
Views: 435

Re: Nothing.

The name was based on That is fine, unset as in unset parameter is fine too imo. It's not really clear to me how a default value of "" is convenient, though I assumed it was. The only case I could think of was for building a string with .=, but in those cases I always initialize the varia...
by Helgef
07 Sep 2018, 12:54
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 21
Views: 435

Re: Nothing.

I am of two minds about it. I don't use #Warn UseUnset because it complains too much. Then I do not see any reason to have variables default to unset , just keep them as empty strings, and array elements too. Let unset be only for omitting a parameter. Then we keep the convenience of uninitialised ...
by Helgef
06 Sep 2018, 13:56
Forum: AutoHotkey v2 Development
Topic: Nothing.
Replies: 21
Views: 435

Re: Nothing.

Hello, thank you for the interesting post :wave:. For non-existent array elements, most often, an exception would be very helpful, it is very similar to call to non-existent method. What would null . 'str' mean? Is it an error? Eg, myUnsetVariable .= 'str' . I assume math ops would t...
by Helgef
04 Sep 2018, 13:14
Forum: Ask For Help
Topic: objects: change default value (BoundFunc: return specific value)
Replies: 7
Views: 139

Re: objects: change default value (BoundFunc: return specific value)

- With ObjRawGet, I believe that each key is getting linked to the same object. Yes of course. With ObjClone, I'm not sure what the problem is. This is what you get when you rely on undocumented behaviour. Objclone (in v1) doesn't accept more than 1 parameter. Currently in v2, you can pass surplus ...
by Helgef
02 Sep 2018, 07:35
Forum: Ask For Help
Topic: Multidimensional array
Replies: 4
Views: 122

Re: Multidimensional array

You need a custom object for that.

Go to advanced search