Search found 33 matches

by bourdin07
27 Sep 2019, 04:03
Forum: AutoHotkey v2 Help
Topic: extends Array
Replies: 3
Views: 1541

extends Array

How to extends the native Array ?

I tried :

Code: Select all

class _Array
{
	test()
	{
		return "ok"
	}
}

Array.base := _Array

msgbox(Array.test()) ; doesn't work
Also I can't do that why ?

Code: Select all

class Array extends _Array
{
}
"Duplicate Array Declaration"
by bourdin07
26 Sep 2019, 03:23
Forum: Bug Reports
Topic: switch otb Topic is solved
Replies: 4
Views: 2197

Re: switch otb Topic is solved

switch, case does not work in AHK v1.30
I tried :

Code: Select all

_test := "ok"
switch (_test) 
{
	case "ok": 
		return
	default:
		return
}
Does not recognize action
by bourdin07
20 Sep 2019, 02:10
Forum: Scripts and Functions
Topic: FileMapping
Replies: 2
Views: 2051

Re: FileMapping

???
by bourdin07
13 Sep 2019, 04:12
Forum: AutoHotkey v2 Development
Topic: Objects - preview of upcoming changes
Replies: 35
Views: 16934

Re: Objects - preview of upcoming changes

Separate data and interface: array elements and properties/methods are separated, and generic objects do not have array elements by default and do not support obj[n]. Use obj.%n% (v2.0-a101+) to access dynamic properties/methods.
Why use obj.%n% instead obj[n]
I prefer obj[n] seriously
by bourdin07
19 Aug 2019, 07:26
Forum: AutoHotkey v2 Help
Topic: Exception.What when the script is compiled
Replies: 2
Views: 1219

Re: Exception.What when the script is compiled

Mybad

I have Exception.what function name properly when throw Exception(msg)

But when I try to loop Exception offset, what is negative integer
by bourdin07
19 Aug 2019, 04:51
Forum: AutoHotkey v2 Help
Topic: Exception.What when the script is compiled
Replies: 2
Views: 1219

Exception.What when the script is compiled

When the script is compiled Exception(msg).What return only negative integer.
But not compiled it work properly

Is is possible to get current function when the exception is thrown in compiled script (without explicitly write A_ThisFunc)?
by bourdin07
14 Aug 2019, 08:55
Forum: Wish List
Topic: string
Replies: 1
Views: 1514

string

By default string in Autohotkey is verbatim behavior like in C# : @"\\backslash is easy to type" ; output : \\backslash is easy to type or @"""Hello world""" ; output : "Hello world" I think it's a better practice to define like this: mystr := "\\\\need escape backslash" ; output : \\need escape bac...
by bourdin07
12 Aug 2019, 10:55
Forum: Scripts and Functions
Topic: [Lib] ObjDump / ObjLoad - Object Backup
Replies: 68
Views: 24008

Re: [Lib] ObjDump / ObjLoad - Object Backup

i'd like to dump a COM Object but the app crash

Code: Select all

objDump(A_ScriptDir "\test.bin", ComObjCreate("MSXML2.DOMDocument"))
It will be really nice.

It is possible and how?
by bourdin07
12 Aug 2019, 08:37
Forum: Wish List
Topic: keyword async / await
Replies: 5
Views: 2685

Re: keyword async / await

I don't know if it can help but, I wrote a program in Autohotokey to do XHR asynchronously. May be it is possible to do the same way with autohotkey and "user" function class Program { Main(args) { this.tt := "k" req := ComObjCreate("Msxml2.XMLHTTP") ; Open a request with async enabled. req.open("GE...
by bourdin07
29 Jul 2019, 10:47
Forum: Wish List
Topic: keyword async / await
Replies: 5
Views: 2685

keyword async / await

I wish to add async method in a class

Code: Select all

class MyClass
{
    async myMethodAsync()
    {
        ; awesome job
       
    }
}

MyClass.myMethodAsync()

; do other job without waiting MyClass.myMethodAsync() ...
by bourdin07
25 Jul 2019, 09:19
Forum: AutoHotkey v2 Development
Topic: async method ?
Replies: 11
Views: 2333

Re: async method ?

in my opinion async implementation must be the priority for AutoHotkey v2
by bourdin07
06 Jul 2019, 13:31
Forum: AutoHotkey v2 Development
Topic: async method ?
Replies: 11
Views: 2333

Re: async method ?

hello,
do you have exemple code?
by bourdin07
03 Jul 2019, 16:22
Forum: AutoHotkey v2 Development
Topic: async method ?
Replies: 11
Views: 2333

async method ?

I really wish to see async method in v2, or other possibility to create a worker thread

Go to advanced search