Thank you very much, Rindis, you are right.
Original data came from wingettitle where I deleted the generic (last) part in order to get the full source path; on some files only, that application had additional parts AFTER its generic part, though, so instead of stringtrimright, I needed to get the path by
Code: Select all
pos := instr(title, genericpart,, 0, 1)
title := substr(title, 1, pos-1)
Also, I had some unwanted "0" directly after some variable, obviously by typing that inadvertently myself, or it being typed by the cat (she avoids the keys of the keyboard, but the num0 is very near its border), so some variable then didn't get the correct value anymore (I'd prefer to be able to "really" declare AHK variables, but that's not possible, unfortunately, so mistyped variables can never be excluded).
Now it works fine; thank you very much again!