Search found 15 matches

by bourdin07
27 Sep 2019, 09:35
Forum: AutoHotkey v2 Development
Topic: AutoV2Script > ChangeOrSuggest V2 code for V1 script Topic is solved
Replies: 17
Views: 1370

Re: AutoV2Script > ChangeOrSuggest V2 code for V1 script Topic is solved

nnnik wrote:
01 Aug 2019, 17:49
It would be better to make the v2 gui object available in v1.
I'm totally agree
by bourdin07
27 Sep 2019, 07:22
Forum: AutoHotkey v2 Development
Topic: v2-thoughts Discussion
Replies: 42
Views: 32976

Re: v2-thoughts Discussion

AHK v1.30 will still maintained or dead when v2 will released ? Too many changes breaks my programs Personnally I don't care of changes on Object v2... Object work fine in v1.1.31, AHK v1.1.* work fine The most important is to implement Gui object in v1 and change syntax to remove % on method such a...
by bourdin07
27 Sep 2019, 04:03
Forum: AutoHotkey v2 Help
Topic: extends Array
Replies: 3
Views: 327

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: AutoHotkey v2 Development
Topic: switch otb Topic is solved
Replies: 4
Views: 559

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: 1527

Re: FileMapping

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

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: 261

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: 261

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: 477

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: 17019

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: 807

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: 807

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: 1046

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: 1046

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: 1046

async method ?

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

Go to advanced search