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?
 
Ephraim WangoyaConnect With a Mentor Commented:

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
 
Ephraim WangoyaCommented:

Hey Systan
Use a thread LOL
0
 
jimyXConnect With a Mentor Commented:
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
Cloud Class® Course: Amazon Web Services - Basic

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.