-
Content Count
2071 -
Joined
-
Last visited
-
Days Won
29
Everything posted by Attila Kovacs
-
Creating a Shell-Link with hotkey property
Attila Kovacs replied to PeterPanettone's topic in I made this
I'm not sure if you missed the second line in the code "shortcut creation object". I did not know that you want to edit existing shortcuts, sorry. I'm wasting here my time. Confirmed. -
Creating a Shell-Link with hotkey property
Attila Kovacs replied to PeterPanettone's topic in I made this
This is how I'm using it. SCut := TWin32ShortCut.Create; try SCut.Location := ciDesktop; SCut.FileName := sp[0]; SCut.AppPath := ResolvePath(sp[1]); SCut.WorkDir := ResolvePath(sp[2]); SCut.IconPath := ResolvePath(sp[3]); if l > 4 then if TryStrToInt(sp[4], i) then SCut.IconIndex := i; SCut.SaveShortCut; finally SCut.Free; end; function ResolvePath(const Path: string): string; var sp: TArray<string>; i: Integer; begin sp := Path.Split(['%']); Result := ''; for i := 0 to High(sp) do case i mod 2 of 0: Result := Result + sp[i]; 1: Result := Result + GetEnvironmentVariable(sp[i]); end; end; -
Creating a Shell-Link with hotkey property
Attila Kovacs replied to PeterPanettone's topic in I made this
And? Change Published to Public and TWin32FindDataA to TWin32FindDataW or TWin32FindData, Dummy: Longint to Dummy: Cardinal -
Creating a Shell-Link with hotkey property
Attila Kovacs replied to PeterPanettone's topic in I made this
https://web.archive.org/web/20171110112441/https://www.tek-tips.com/faqs.cfm?fid=7526 -
Creating a Shell-Link with hotkey property
Attila Kovacs replied to PeterPanettone's topic in I made this
They killed Kenny! Strange, I just opened it 5 minutes ago 😄 Try it later again, its a thin unit to do the same. (As I understand your needs) -
Creating a Shell-Link with hotkey property
Attila Kovacs replied to PeterPanettone's topic in I made this
https://www.tek-tips.com/faqs.cfm?fid=7526 ? -
Why is this thread in RTL and DOP?
-
TJson - Strip TDateTime property where value is 0?
Attila Kovacs replied to Lars Fosdal's topic in Network, Cloud and Web
@Lars Fosdal Thx for the input, I wanted to create something generic with the less effort, I'll go with Uwe's example above and decorate the fields for this PHP API for now. Strange, that I'm the only one who facing this, but the DecodeISO8601Time() conversion in System.DateUtils is not ISO8601. -
TJson - Strip TDateTime property where value is 0?
Attila Kovacs replied to Lars Fosdal's topic in Network, Cloud and Web
Barely passed 6 months and I'm sitting here with dates like "2019-10-27T22:48:20+0100" from a php API, which are ISO8601 dates, but Delphi can't handle it because of the missing colon in the time zone offset...... I've tried everything I can think of to hook the conversion to TDateTime, globally (not on field basis) but I failed. The corresponding methods are not virtual, Reverter can be regged only on classes, interceptors only on field basis. Maybe it's too late and I'm missing something, @Uwe Raabe, how can I register a reverter for TDateTime? (Creating the marshal objects is not a problem at all, I'm already doing it for other reasons.) -
and what if the db changes in the meantime?
-
You have to disable every skinning as the whole dialog will be repainted on every compiled line. I'm also stuck on 10.1 but this seems to be the right decision for now.
-
I'm so upset I wrote this comment.
-
Hi, If I ignore a topic, I'm getting punished by the activity stream notification as it keeps yielding me unread content on the top even if I click it away. Any workaround?
-
are those jpg's recoded by the forum? It has "CREATOR: gd-jpeg v1.0 (using IJG JPEG v62)" in the header.
-
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
It's not valid for the latest ICO format. As I already mentioned, we don't care Windows XP and co. anymore. -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
From 1995. Did you read the disclaimer? -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
Windows 10 explorer displays the png compressed 32x32 icon preview so I assume it's a standard now but it's not documented anywhere. Which I also understand as the whole thing is just a crap and could have been only saved by this png hack. But sooner or later they have to dump it or redesign it. -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
He wrote that ico supports bmp, png, svg... 😉 I didn't believe it so I tested it. -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
Hiew+Far. Piece of cake. -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
@Kas Ob. I've created an ico with svg inside manually and it won't be recognized as a valid ico by any app. The file format does not restrict on any image formats indeed, but nothing is supported beside bmp and png. -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
Cool. Add from file (add ico) / change / save resource as. Perfect. Thx! Btw. pressing ctrl-o (open) meanwhile the splash screen is showing ends up in an AV. (Sorry, I'm an incurable tester :) -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
You mean all the EOL Windows versions? Well, that makes no sense in 2020. -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
Yes, it does. It's just a silly app limitation disabling compression for lower res. Well, this is even more silly, I thought the browser picks the size it's need and only dl that. Maybe we need 20+ years to get it right and not to waste resources.... -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
@Kas Ob. Ok, I can't reproduce it with 6.9.1. Anyway, the ICO format for favicon is ancient. It can be either png: https://sympli.io/blog/2017/02/15/heres-everything-you-need-to-know-about-favicons-in-2017/ or svg in the future (edge still won't render it, why I'm not wondering...) http://xn--dahlstrm-t4a.net/svg/favicon/favicon.html -
Forum favico is unsuitable and huge, need replacing.
Attila Kovacs replied to a topic in Community Management
I have Axialis too but it surely won't compress to png under 256x256. Nor does IcoFx.