Search found 2673 matches

by Helgef
17 Feb 2018, 12:20
Forum: Ask For Help
Topic: Access Parent Instance Variables from a Nested Class
Replies: 4
Views: 116

Re: Access Parent Instance Variables from a Nested Class

The important point is that instantiating either of the two classes, doesn't imply an instance of the other. Hence, as hinted by nnnik , if the child needs a parent, the child needs to create it (the parent doesn't need to know :shh: ), or the parent needs to create a child and tell it (and then the...
by Helgef
17 Feb 2018, 12:14
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 20
Views: 496

Re: Local and subroutines inside functions

if a function gets interrupted by another call to itself , its local variables would still be in the previous state

No, recursive function calls are supported (meaning each call has its own set of local variables, but share statics.).

Cheers.
by Helgef
16 Feb 2018, 17:25
Forum: AutoHotkey v2 Development
Topic: A_ variables
Replies: 18
Views: 826

Re: A_ variables

a generalised Assign function I do not think that is easily implemented to support built-in variables. They aren't really variables, you cannot pass them byref for example. I haven't felt the inability to get/set in one go a major problem It certainly isn't a major problem. There are currently two ...
by Helgef
16 Feb 2018, 07:34
Forum: AutoHotkey v2 Development
Topic: A_ variables
Replies: 18
Views: 826

Re: A_ variables

A_ThisHotkeyRaw So you have problems identifying which hotkey was triggered? That variable will not be very helpful. All these ideas tells me we need to have hotkey objects... ;) If we had hotkey objects, the question, which hotkey was triggered? would never be asked, the object would uniquely iden...
by Helgef
16 Feb 2018, 06:48
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 20
Views: 496

Re: Local and subroutines inside functions

I agree nnnik. In general, when there is a discussion involving multiple interpretations about something in the documentation, it needs explicit clarification.

Cheers.
by Helgef
16 Feb 2018, 02:42
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 20
Views: 496

Re: Local and subroutines inside functions

I think clarification in the documentation should be made. I'm not opposed that, I suggest bold, However, the following limitations apply: a subroutine thread that interrupts a function-call thread (or vice versa) would be able to change the values of local variables seen by the interrupted thread....
by Helgef
15 Feb 2018, 07:30
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 20
Views: 496

Re: Local and subroutines inside functions

From what I see the piece of Text from above describes the case where a function is running and interupted It implies that the subroutine is using the function's variables. It describes when the variables are cleared, which imples they are not cleared in other cases. Variables cannot belong to a la...
by Helgef
15 Feb 2018, 06:35
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 20
Views: 496

Re: Local and subroutines inside functions

@ nnnik , it is not a bug, it is a useless feature though ( jumping into a function from outside), as hinted by Masonjar13 . However, the following limitations apply: a subroutine thread that interrupts a function-call thread (or vice versa) would be able to change the values of local variables seen...
by Helgef
15 Feb 2018, 02:56
Forum: Bug Reports
Topic: Local and subroutines inside functions
Replies: 20
Views: 496

Re: Local behaving as static

The variable var is local , not static and not global. When you click the button, you have access to function's (one and only) variable space. The return (of the gui thread) doesn't belong to the function, hence the function's local variables aren't made blank. You could argue that listlines should ...
by Helgef
13 Feb 2018, 03:45
Forum: Scripts and Functions
Topic: yet another spinner
Replies: 19
Views: 895

Re: yet another spinner

The examples works fine on win7 (1.1.28.00 64/32 bit U/A) :thumbup:. And they spin while moving. Good job!

Cheers.
by Helgef
12 Feb 2018, 06:02
Forum: Ask For Help
Topic: Random "bugs" in Autohotkey? Topic is solved
Replies: 43
Views: 843

Re: Random "bugs" in Autohotkey? Topic is solved

some programs will not produce any text at all if the logical modifier state is incorrect. Additionally, some programs' menu can be opened by something like !1::send "{blind}{text}f" , for example in Notepad , but not in Opera (where nothing happens but !1::send "!f" would open ...
by Helgef
12 Feb 2018, 05:52
Forum: AutoHotkey v2 Development
Topic: list of every object type/property/method
Replies: 13
Views: 317

Re: list of every object type/property/method

I agree with nnnik . [Object] Object e.g. MyClass [for a class instance] Class [for a class object] Specifically, it returns Class for an Object having a __class key. If an Object , say obj , lacks such a key it will report (recursively) obj.base.__class (or Object if not found.) Object.Enumerator [...
by Helgef
12 Feb 2018, 04:25
Forum: AutoHotkey v2 Development
Topic: Problems with property definition using OTB and omitting []
Replies: 2
Views: 88

Re: Problems with property definition using OTB and omitting []

lexikos wrote:It'll be fixed.
:thumbup:
lexikos wrote:FYI, the bug only applies to property names shorter than three characters.

Indeed, whitespace included it seems. This works,

Code: [Select all]GeSHi © Codebox Plus

class a{
b {
}
}

Cheers.
by Helgef
11 Feb 2018, 15:21
Forum: Ask For Help
Topic: Putting function Hotstring() at work
Replies: 2
Views: 69

Re: Putting function Hotstring() at work

Nice, thanks for sharing, it is a great addition :thumbup:.

Cheers.
by Helgef
11 Feb 2018, 07:01
Forum: AutoHotkey v2 Development
Topic: list of every object type/property/method
Replies: 13
Views: 317

Re: list of every object type/property/method

There are (at least) three types of built-in enumerator objects,

Code: [Select all]GeSHi © Codebox Plus

Gui.Enumerator
ComObjArray.Enumerator
Object.Enumerator
by Helgef
11 Feb 2018, 06:45
Forum: Ask For Help
Topic: AutoHotkey sends keys out of order & keys not released issue
Replies: 4
Views: 76

Re: [HELP] AutoHotkey sends keys out of order & keys not released issue

I suggest you put a return after settimer. Why do you have Pause at the top of the script? Why do you (and many others) have all those irrelevant settings? Also see sleep.

Cheers.
by Helgef
11 Feb 2018, 04:23
Forum: AutoHotkey v2 Development
Topic: Problems with property definition using OTB and omitting []
Replies: 2
Views: 88

Problems with property definition using OTB and omitting []

Issue example,

Code: [Select all]GeSHi © Codebox Plus

class a {
b{
}
}

causes

Code: [Select all]GeSHi © Codebox Plus

Error at line 2.

Line Text: b{ }
Error: Not a valid method, class or property definition.

The program will exit.

This works,

Code: [Select all]GeSHi © Codebox Plus

class a {
b
{
}
}
class c {
d[]{
}
}

:arrow: 2.0-a088-338ed55
Cheers.
by Helgef
10 Feb 2018, 14:22
Forum: Ask For Help
Topic: RegEx issue. Of course.... Topic is solved
Replies: 12
Views: 197

Re: RegEx issue. Of course.... Topic is solved

This should technically be faster, since it's only calling each RegEx function once It might, or might not, using muliple calls with simpler patterns can be faster than one with a complex pattern. It is case depenent. There was a thread which showed that something like regexreplace(str,"a|...

Go to advanced search