Need very basic starter for use of MadShell in Delphi

delphi package - easy access to shell apis

Need very basic starter for use of MadShell in Delphi

Postby MrMajorThorburn » Wed Nov 08, 2017 4:30 pm

I'm still very much a learner of Delphi and wondered if anyone had a simple starter project I could use to list the names of the icons on the desktop.
That will give me a good stepping stone over the lake I'm approaching and stop me getting too wet right at the beginning of my path to the island of knowledge I can see out there and hope to reach some day.
Regards, 70+ year old with over 50 years of involvement in computing systems and still enjoying the hobby.
MrMajorThorburn
 
Posts: 5
Joined: Wed Nov 08, 2017 3:58 pm

Re: Need very basic starter for use of MadShell in Delphi

Postby madshi » Thu Nov 09, 2017 1:42 pm

There's a demo project in the madShell\Demos folder which deals with desktop icon names.
madshi
Site Admin
 
Posts: 9442
Joined: Sun Mar 21, 2004 5:25 pm

Re: Need very basic starter for use of MadShell in Delphi

Postby MrMajorThorburn » Thu Nov 09, 2017 5:37 pm

Thanks you very much.
That was what I wanted.
Can get my grey matter churning now.
MrMajorThorburn
 
Posts: 5
Joined: Wed Nov 08, 2017 3:58 pm

Re: Need very basic starter for use of MadShell in Delphi

Postby MrMajorThorburn » Tue Nov 14, 2017 11:30 am

I am sorry but I cant seem to get that to work. I am using Embarcadero Delphi, current free version.
I get the IsValid part and have confirmed s1 does get reset to an empty string and the count of items is not 0 but all the items return p1.x as -1 so no items are being returned.
Am I missing something?
MrMajorThorburn
 
Posts: 5
Joined: Wed Nov 08, 2017 3:58 pm

Re: Need very basic starter for use of MadShell in Delphi

Postby madshi » Tue Nov 14, 2017 11:59 am

I haven't tested the desktop position functionality in a while. It's possible that it doesn't work on the latest win10 update. Have you tried on an older OS, just as a test?
madshi
Site Admin
 
Posts: 9442
Joined: Sun Mar 21, 2004 5:25 pm

Re: Need very basic starter for use of MadShell in Delphi

Postby MrMajorThorburn » Wed Nov 15, 2017 7:07 am

Normally would have a virtual Windows 7 available but my desktop died a while ago and I am still rebuilding it.
So answer is no have not.
Should be able to do that in a few days so will do that then.
MrMajorThorburn
 
Posts: 5
Joined: Wed Nov 08, 2017 3:58 pm

Re: Need very basic starter for use of MadShell in Delphi

Postby MrMajorThorburn » Thu Nov 23, 2017 6:05 pm

Have setup a W7 x64 system and get the same results, all items get position -1,-1.
MrMajorThorburn
 
Posts: 5
Joined: Wed Nov 08, 2017 3:58 pm

Re: Need very basic starter for use of MadShell in Delphi

Postby madshi » Thu Nov 23, 2017 6:16 pm

Hmmmm... It's been an eternity that I've looked into madShell. It seems it doesn't support 64bit compiling yet, so I suppose it's possible that it might have trouble on 64bit OSs. However, it did still work recently for me in win10 x64. I'll have a look at this when I find some time, but it might take a couple of days.
madshi
Site Admin
 
Posts: 9442
Joined: Sun Mar 21, 2004 5:25 pm


Return to madShell

Who is online

Users browsing this forum: No registered users and 1 guest