Search found 443 matches

by hoppfrosch
23 Mar 2021, 03:29
Forum: Ask for Help (v2)
Topic: [a129] Construction of nested class Topic is solved
Replies: 4
Views: 1412

Re: [a129] Construction of nested class Topic is solved

Ah - thanks. Missing brackets ....

Have to read the documentation more concentrated - but due to the many (breaking) changes in V2 development its difficult to stay uptodate - but I'll do my best
by hoppfrosch
23 Mar 2021, 02:54
Forum: Ask for Help (v2)
Topic: [a129] Construction of nested class Topic is solved
Replies: 4
Views: 1412

[a129] Construction of nested class Topic is solved

Hi all, this used to work with pre-a129 ahkV2 versions: class a{ class b{ x := 42 y := 17 test() { return 55 } } } c := a.new() d := a.b.new() I tried the following port to a129 (simply omitting new): ... c := a() ; WORKS d := a.b() ; FAILS (Error: Too many parameters passed to function) What does t...
by hoppfrosch
22 Mar 2021, 05:28
Forum: Ask for Help (v2)
Topic: [a129] How to port?
Replies: 2
Views: 525

Re: How to port? a129

Thanks swagfag - gonna try to understand what you wrote and after that I might understand what I want to do :crazy: :lol:
by hoppfrosch
22 Mar 2021, 00:49
Forum: Ask for Help (v2)
Topic: [a129] How to port?
Replies: 2
Views: 525

[a129] How to port?

Hi, I am trying to port code to A129 (from AHK1) - I fail to port the following piece of code, as I do not fully understand, how this works: ;make default key value 0 instead of a blank string <--- thats comment from original code ... l_arr := {base:{__Get:Func("Abs").Bind(0)}} Any help appreciated ...
by hoppfrosch
27 Jan 2021, 00:51
Forum: Forum Issues
Topic: Captcha???
Replies: 4
Views: 1030

Re: Captcha???

:clap: Thanks for your good work here!
by hoppfrosch
26 Jan 2021, 03:18
Forum: Forum Issues
Topic: Captcha???
Replies: 4
Views: 1030

Captcha???

Since today, very often when I try to connect to https://www.autohotkey.com/boards a Cloudflare-Captcha page pops up .... after verifying TWO captchas I am redirected to https://www.autohotkey.com/boards/ :problem: Has anything been changed? Why do I have to verify TWO captchas? Never ever seen a ca...
by hoppfrosch
26 Jan 2021, 02:08
Forum: Ask for Help (v2)
Topic: AHK v2 GUI SubClass-ing example (and any other classes?) Topic is solved
Replies: 13
Views: 1770

Re: AHK v2 GUI SubClass-ing example (and any other classes?) Topic is solved

What I don't understand is: What happens here? OnMessage(0x201,g) ; WM_LBUTTONDOWN As documentation says, the second argument is a "functions name or a functions object". As fas as I understand "g" is a class instance in your example ... What is expected to happen/to be called if the message WM_LBUT...
by hoppfrosch
08 Jan 2021, 00:32
Forum: Off-topic Discussion
Topic: Are you a 'lefty'?
Replies: 5
Views: 1881

Re: Are you a 'lefty'?

Within a multi-monitor setup I place my taskbar between the two most used monitors to have short ways to the main taskbar from those monitors.
Usually I work in a two monitor setup with left monitor as main monitor, so currently my taskbar is on the right side.
by hoppfrosch
06 Jan 2021, 07:07
Forum: Ask for Help (v2)
Topic: How to port pointer arithmethics?
Replies: 3
Views: 478

Re: How to port pointer arithmethics?

Hello Helgef, happy new year from here as well! Thanks for your response - too much new to consider :-). Haven't noticed the buffer-object yet :-/ So my example would be ported as following? .. channelDataSize := numberOfEntries * 4 channelsData := BufferAlloc(params.channels * channelDataSize, 0) ;...
by hoppfrosch
06 Jan 2021, 01:39
Forum: Ask for Help (v2)
Topic: How to port pointer arithmethics?
Replies: 3
Views: 478

How to port pointer arithmethics?

Hi, I am trying to port a script from AHK V1 to AHK V2 a122. How to port constructs like this (pointer arithmetics)?: ... channelDataSize := numberOfEntries * 4 channelsData := BufferAlloc(params.channels * channelDataSize, 0) ; <<<< already ported DllCall("GdiPlus\GdipBitmapGetHistogram" , "Ptr" , ...
by hoppfrosch
06 Jan 2021, 00:48
Forum: Off-topic Discussion
Topic: Text file Diff and Merge
Replies: 4
Views: 1076

Re: Text file Diff and Merge

Why not use the same tools on Windows as on Unix? see for example: https://stackoverflow.com/questions/6877238/what-is-the-windows-equivalent-of-the-diff-command a.) Yes - as far as I understand your request, you are looking for tools creating a patch-file. The common tool for creating patch files v...
by hoppfrosch
29 Dec 2020, 11:45
Forum: Scripts and Functions (v1)
Topic: [Script] Quick Picto Viewer v5+
Replies: 260
Views: 83784

Re: [Script] Quick Picto Viewer and Fast Slideshow creator

Nothing else to say, but: Superb! :dance:

Thank you , Marius - great work!
by hoppfrosch
03 Dec 2020, 07:36
Forum: Ask for Help (v2)
Topic: Create nested class instance from variable Topic is solved
Replies: 5
Views: 1299

Re: Create nested class instance from variable Topic is solved

As a non-english native you have to read this, make mental notes AND understand all the intrisic details of those sentences :lol:
by hoppfrosch
03 Dec 2020, 00:22
Forum: Ask for Help (v2)
Topic: Create nested class instance from variable Topic is solved
Replies: 5
Views: 1299

Re: Create nested class instance from variable Topic is solved

:thumbup: Great-works exactly the way I desired.

Just to understand it:

Code: Select all

class a{ }
C := a
Obviously classnames ("a") cannot be used as variable name anymore. Haven't noticed this yet.
Where can I find documentation about this? Don*t have even an idea where to search for ... :crazy:
by hoppfrosch
02 Dec 2020, 06:55
Forum: Ask for Help (v2)
Topic: Create nested class instance from variable Topic is solved
Replies: 5
Views: 1299

Create nested class instance from variable Topic is solved

Hello everybody I want to create an instance of a nested class. The class name is given through a variable. class a {} o1 := a.new() ; Works cn := "a" o2 := %cn%.new() ; Works class b { class c {} } o3 := b.c.new() ; Works cn := "b.c" o4 := %cn%.new() ; !!!! Fails! "Variable name contains an illegal...
by hoppfrosch
23 Jul 2020, 00:03
Forum: Ask for Help (v1)
Topic: How can I simplify my code with RegExReplace?
Replies: 6
Views: 2800

Re: How can I simplify my code with RegExReplace?

In RegEx plain braces are used to capture groups - using the (?: .....) syntax defines a NON-CAPTURING group...

For a good expalantion of capturing vs. non-capturing group see https://stackoverflow.com/questions/3512471/what-is-a-non-capturing-group-in-regular-expressions
by hoppfrosch
11 May 2020, 00:28
Forum: Ich brauche Hilfe
Topic: Script Manager / AHK Help Style Template
Replies: 9
Views: 2086

Re: Script Manager / AHK Help Style Template

Lange Geschichte - kurzes Summary: Es gab schon einige Versuche ein vereinheitliches System für UDFs für Autohotkey zu schaffen. Das passierte auf unterschiedlichen Komplexitätsebenen (angefangen von Vorschlägen zu standardisierten Dokumentationsheadern bis hin zu ausgewachsenen Paketverwalungssyste...
by hoppfrosch
01 May 2020, 11:29
Forum: Ich brauche Hilfe
Topic: Duplicate eliminieren
Replies: 16
Views: 1887

Re: Duplicate eliminieren

@BNOLI : Richtig - @haichen hat es schon beschrieben. Wenn die eigentlichen Daten zu identischen Schlüsselwerten nicht eindeutig sind (das hatte @just me ja bereits am Anfang des Threads gefragt), muss man die Daten natürlich auch gegeneinander validieren um sicherzustellen, die gewünschten (korrekt...

Go to advanced search