Search found 4004 matches

by Helgef
Yesterday, 09:07
Forum: AutoHotkey v2 Development
Topic: v2 breaking changes policy
Replies: 9
Views: 354

Re: v2 breaking changes policy

Hi jeeswg, I already mentioned the ostensible similarities between my suggestion and the current version system, and that in practice the current one lacks the b changes. The changes to 1.b should have started years ago, I think it is too late now. We should be on 1.5 now with most of the quirks rem...
by Helgef
Yesterday, 01:25
Forum: AutoHotkey v2 Development
Topic: v2 breaking changes policy
Replies: 9
Views: 354

Re: v2 breaking changes policy

Hi guest3456 and iseahound, thanks for your comments.
Speed isn't the main goal, but might be a secondary effect. V2.0 could be released earlier if we allow some decisions to be made later, and if every decision isn't taxed with the anxiety of having to live with it forever.

Cheers.
by Helgef
18 Nov 2019, 09:21
Forum: AutoHotkey v2 Development
Topic: v2 breaking changes policy
Replies: 9
Views: 354

Re: v2 breaking changes policy

just me , I'm mainly talking about allowing development to make minor to moderate breaking changes at a more appropriate frequency than every time the entire language is overhauled. So that we don't have to live with countless quirks and limitations for decades, only for the sake of maintaining bac...
by Helgef
18 Nov 2019, 07:25
Forum: Scripts and Functions
Topic: Timelapser [Bugz000]
Replies: 1
Views: 555

Re: Timelapser [Bugz000]

Hello Bugz000, the link is dead :(

Cheers.
by Helgef
18 Nov 2019, 06:13
Forum: Ask For Help
Topic: Wrapper (class/function) for REST with JSON:API
Replies: 11
Views: 427

Re: Wrapper (class/function) for REST with JSON:API

toralf , true and false are built-in variables, so %val% will resolve to either true or false if val := "true" or val := "false" . Edit, If a variable is enclosed in percent signs within an expression (e.g. %Var%), whatever that variable contains is assumed to be the name or partial name of another...
by Helgef
17 Nov 2019, 12:59
Forum: Ask For Help
Topic: Bug! Pre increment/decrement cause abnormal behavior when used as key in associative array
Replies: 4
Views: 194

Re: Bug! Pre increment/decrement cause abnormal behavior when used as key in associative array

Post increment return the value (before the increment), not the variable after the increment. Even if this behaviour didn't occur, you'd get different results from post and pre increments, posts starts at zero, pre at one.

Cheers.
by Helgef
17 Nov 2019, 04:03
Forum: AutoHotkey v2 Development
Topic: v2 breaking changes policy
Replies: 9
Views: 354

v2 breaking changes policy

Hi. I have a few thoughts about a new breaking changes policy for v2, compared to v1. (Not talking about v2 alpha here, but what happens after v2.0 is released) Introduction In v1, generally, almost any change which can break (any documented behaviour of) existing scripts are out of the question, fo...
by Helgef
17 Nov 2019, 00:16
Forum: AutoHotkey v2 Development
Topic: Script Breaking Removal Of "Return" & "Break"
Replies: 2
Views: 140

Re: Script Breaking Removal Of "Return" & "Break"

See a few posts down :arrow: Key name synonyms,
It seems preferable to remove Return and Break due to the ambiguity with control flow statements.
Cheers-
by Helgef
17 Nov 2019, 00:10
Forum: Ask For Help
Topic: Rounding error
Replies: 1
Views: 127

Re: Rounding error

This is documented,
format wrote: Specifying a precision may cause the value to be truncated or rounded.
by Helgef
17 Nov 2019, 00:02
Forum: Ask For Help
Topic: Bug! Pre increment/decrement cause abnormal behavior when used as key in associative array
Replies: 4
Views: 194

Re: Bug! Pre increment/decrement cause abnormal behavior when used as key in associative array

This is documented, If a parameter in a function-call resolves to a variable (e.g. Var or ++Var or Var*=2), other parameters to its left or right can alter that variable before it is passed to the function. For example, MyFunc(Var, Var++) would unexpectedly pass 1 and 0 when Var is initially 0, even...
by Helgef
16 Nov 2019, 13:24
Forum: AutoHotkey v2 Help
Topic: Keep capslock always off
Replies: 5
Views: 152

Re: Keep capslock always off

Hi, SetCapsLockState('AlwaysOff')

Cheers.
by Helgef
16 Nov 2019, 07:56
Forum: Bug Reports
Topic: bug? Hotstring using just a colon
Replies: 6
Views: 620

Re: bug?

In v2, you can escape a single colon, hence, :*:`:::abc is replacing a single : with abc . This cannot happen in v1, because in v1, the backtick ( ` ) in :*:`:::abc is escaping the following double colon, see :arrow: escape sequences . So in v1, you can do :*:`::::abc to have :: be replaced by abc ,...
by Helgef
15 Nov 2019, 07:35
Forum: Ask For Help
Topic: How to identify a bitmap with a top-down orientation
Replies: 6
Views: 636

Re: How to identify a bitmap with a top-down orientation

Hi :wave: I checked and the value of biHeight member is always positive, no matter the real orientation. How do you deduce what is the real orientation? The orientation is just the order of storing the pixels in memory, it shouldn't affect how the image looks when you display it. As far as I can rem...
by Helgef
15 Nov 2019, 06:38
Forum: Ask For Help
Topic: Help with IFileOperationProgressSink RegisterCallback function
Replies: 7
Views: 300

Re: Help with IFileOperationProgressSink RegisterCallback function

Hi. Sorry, I misread your code, and it actually didn't call the callbacks on the first try, so I assumed you got it wrong. But it works when I add setworkingdir , but that is only due to a local problem, not an error on your part. the file is not moved to the folde It does get moved on both our vers...
by Helgef
15 Nov 2019, 03:17
Forum: Scripts and Functions
Topic: Gdip_CreateBitmapFromHBITMAP() with transparency.
Replies: 11
Views: 1317

Re: Gdip_CreateBitmapFromHBITMAP() with transparency.

iseahound wrote:
03 Apr 2019, 22:53
Helgef wrote:
I have a very vague memory asking about something like this, well, thanks I guess ;)

Cheers.
by Helgef
15 Nov 2019, 02:57
Forum: Ask For Help
Topic: Help with IFileOperationProgressSink RegisterCallback function
Replies: 7
Views: 300

Re: Help with IFileOperationProgressSink RegisterCallback function

See code comments #NoEnv setworkingdir %a_Scriptdir% FileAppend, , foo.txt FileCreateDir, test Item := A_ScriptDir "\foo.txt" Folder := A_ScriptDir "\test" ; create the vTable VarSetCapacity(ProgressSinkVtbl, 19 * A_PtrSize, 0) Loop, 19 NumPut(RegisterCallback("Func", , , A_Index), ProgressSinkVtbl,...
by Helgef
15 Nov 2019, 00:30
Forum: Bug Reports
Topic: bug? Hotstring using just a colon
Replies: 6
Views: 620

Re: bug?

joefiesta , it means that the attempt to escape the single colon is futile. As for, :*:::: this fails too This has two possible interpretations, either it is a hotstring which is missing its abbreviation, with the replacement text : this fails too , or the abbreviation is a single colon with the re...
by Helgef
14 Nov 2019, 12:29
Forum: Bug Reports
Topic: bug? Hotstring using just a colon
Replies: 6
Views: 620

Re: bug?

hotstrings wrote: Although commas, percent signs, and single-colons within hotstring definitions do not need to be escaped, backticks and those semicolons having a space or tab to their left require it.
You can use the hotstring function, hotstring(":*::", "abc").

Cheers.
by Helgef
14 Nov 2019, 12:04
Forum: Ask For Help
Topic: Get last line in a variable Topic is solved
Replies: 5
Views: 196

Re: Get last line in a variable Topic is solved

Second last line, assuming the last line is blank,

Code: Select all

f(str, del := "`n") {
	str := rtrim(str, del)
	return substr(str, instr(str, del,, 0) + strlen(del))
}
Cheers.
by Helgef
14 Nov 2019, 06:39
Forum: Ask For Help
Topic: Get last line in a variable Topic is solved
Replies: 5
Views: 196

Re: Get last line in a variable Topic is solved

You can also use instr to search from behind,

Code: Select all

f(byref str, del := "`n") {
	return substr(str, instr(str, del,, 0) + strlen(del))
}
Cheers.

Go to advanced search