Search found 3242 matches

by nnnik
Today, 11:29
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

I dont have any particulary strong feelings about this. But the main variables that store the functions should be "extra super global"(because you can and should deactivate the global and super global scop with local but still want to access functions) and read-only.
by nnnik
Today, 11:14
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

Thanks for the links :)

You can use ObjectBindMethod on COM Objects.
by nnnik
Today, 09:29
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

Do you have any source on how Powershell gets the amount of parameters for any COMObject?
by nnnik
Today, 08:08
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

My case is fundamentally different from your and I do have to assume that you did not run the code. In the first case only the meta functions will be called and not the methods behind that - in the case of useing %fn%() the parameter count is therefore equivalent to 0-1 or 1-2 depending on the mode....
by nnnik
Today, 06:45
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

You are oversimplifying things: How many parameters would the following objects have at each point in time? Msgbox using `%fn`%() ;inconsistency t := new test() %t%("Hello World") %t%("Hello World", "Hello World 2") %t%() Msgbox using fn.call ;featuring the stuff of nightmares t2 := new test() t2.ca...
by nnnik
Today, 05:57
Forum: Ich brauche Hilfe
Topic: VBA: Text nach unten schieben
Replies: 5
Views: 67

Re: VBA: Text nach unten schieben

Wenn so ein Fehler auftaucht bedeutet das, dass diese Aktion fehlgeschlagen ist. Bei dir ist das ganze wie eine lange Reihe Dominosteine aufgebaut und da der erste nicht fällt klappen die anderen auch nicht um. Was fehlschlägt ist das erhalten des aktiven Word Programms. Das kann daher kommen, dass ...
by nnnik
Today, 05:44
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

And like I said the majority of what you call function objects only implement the callable interface and are not functions.
In v2 we want to move all error handling to throwing exceptions.
by nnnik
Today, 05:39
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

I never said that I do not see the same problems - in fact I have repeated this argument over and over again.
However there is no hope for v1.

In order to check the amount of parameters on any method that any AHK Object provides we may have to remove meta-functions.
by nnnik
Yesterday, 10:01
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

Function objects often do have a base object. Function objects are all objects returned by Func() . All other objects implement the "Callable" interface. They are therefore callables not function objects. Function objects don't have a base object they have a function that handles all acceses. so th...
by nnnik
Yesterday, 08:21
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change

Like we said before not all objects have a base object. ObjGetBase only applies to objects that can have a base object. Function Objects do not have a base object. Creating consistency for those old objects just isn't possible in v1. Most of your concerns are adressed in v2 to some extend. Im not su...
by nnnik
Yesterday, 04:41
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: Regression In ObjGetBase(Object) and ObjSetBase(Object, BaseObject)

As this is not unwanted behavior I moved this to wishlist.
by nnnik
Yesterday, 04:36
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: Regression In ObjGetBase(Object) and ObjSetBase(Object, BaseObject)

I myself know of this problem and have argumented against it for quite a while. But like I said there is no method for doing what you need to do. Even if you need to do it - whats impossible is impossible. AHK is not a language suited for development at all. v2 fixes this by adding a type function. ...
by nnnik
Yesterday, 01:27
Forum: Forum Issues
Topic: Codebox theme
Replies: 11
Views: 171

Re: Codebox theme

It seems to work correctly in chrome - except for the fact it starts expanded.
by nnnik
Yesterday, 00:41
Forum: Wish List
Topic: ObjGetBase(Object) and ObjSetBase(Object, BaseObject) Need to Change
Replies: 38
Views: 299

Re: Regression In ObjGetBase(Object) and ObjSetBase(Object, BaseObject)

ObjGetBase should not be used for type detection. In AHK v1 there is no method for type detection. You can use a workaround which reads an entry in the data structure of any object to identify the type of an object. However that relies on undocumented features. Anyways there is no chance to use ObjG...
by nnnik
13 Nov 2018, 14:54
Forum: Wish List
Topic: Defer initialization of objects until they are needed.
Replies: 5
Views: 111

Re: Defer initialization of objects until they are needed.

I'm glad you like it :)

You can resolve the dependencies dynamically by using A_ThisFunc.
Other than that there should be a solution involving ObjGetBase and then getting the method or data from there.
A last work around would be exceptions for .base but that has side effects.
by nnnik
13 Nov 2018, 14:51
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 63
Views: 1552

Re: Fixing codeboxes

Yes I do believe thats the case.
by nnnik
13 Nov 2018, 11:56
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 63
Views: 1552

Re: Fixing codeboxes

Thats not what I meant. I'm currently seeing a different theme from you.
After clicking through the themes it seems to be the Twighlight theme that I get.
Image
by nnnik
13 Nov 2018, 11:46
Forum: Forum Issues
Topic: Fixing codeboxes
Replies: 63
Views: 1552

Re: Fixing codeboxes

Well I seem to get the Twilight theme.
by nnnik
13 Nov 2018, 11:43
Forum: Wish List
Topic: Defer initialization of objects until they are needed.
Replies: 5
Views: 111

Re: Defer initialization of objects until they are needed.

No I mean you can create a function/class that does this for you. class delayedInitialization { static waitingForInitialization := {} __New(p*) { delayedInitialization.waitingForInitialization[this] := p } initialize() { newData := delayedInitialization.waitingForInitialization[this] newClass := new...
by nnnik
13 Nov 2018, 11:21
Forum: Forum Issues
Topic: Feedback: phpBB forum interface switch
Replies: 165
Views: 4389

Re: Feedback: phpBB forum interface switch

I implemented a quick workaround that should work for now but makes the c tag loose both the background color and the special text color it had.

Go to advanced search