your idea using shellFolderView without the timer

Your idea using shellFolderView without the timer.

hi,
I've done this in Delphi, vb.NET and C#.
I've manage to get the path of the last top explored window,
But, I used the timer, every time a top level window clicked?,  I get the path and the filename.
But, I used the timer.

Whats your idea without using the timer?
LVL 14
systanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ephraim WangoyaCommented:

Hey Systan
Use a thread LOL
0
Ephraim WangoyaCommented:

Now seriously, the ShellFolderView should be able to receive notifications of any changes done. You just have to intercept these messages. I have never done this myself
You can search for ShellFolderView + Notifications
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jimyXCommented:
Hi systan,
What's the difference between shellFolderView and the other shell controls that are available in Delphi (ShellComboBox, ShellTreeView and ShellListView)?

I do not have clear view yet of what you are trying to do. But of what I understood, you can use OnClick by adding flags which detect the changes in the selection.
0
Amazon Web Services

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

systanAuthor Commented:
Oh, I did use the <WinEventHook{detect windows switching}>, but I did not like the procedure, so I decided to use the timer.
Ok, I'll follow both of your recommendations.


thank you Delphi Experts.
For .NET users I don't know why all of you are speechless if there are Delphi geeks.

I'll bet back later.
0
systanAuthor Commented:
>>I do not have clear view yet of what you are trying to do
I'm trying to automate the detection of explored window path.
sample:
you have opened 2 windows;
my documents, and my pictures
when you click an item name <could be a folder or a file> to my documents?, it displays the item on the form, when you click an item name directly to my pictures?, then it displays the item name.

I don't really know if I got it right, but I did use the timer to get it, with the help of shellfolderview.


>>But of what I understood, you can use OnClick by adding flags which detect the changes in the selection.
A mouse hook? No, it can't, conflicts with shellfolderview
>>the error,
An outgoing call cannot be made since the application is dispatching an input-synchronous call.


>>Use a thread LOL
I can't figure it out
0
systanAuthor Commented:
I can't use the Onkey, I still use the shellFolderview.

thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.