Click here to Skip to main content
15,904,153 members

Comments by OriginalGriff (Top 200 by date)

OriginalGriff yesterday View    
I'm not sure you can do that, but if you can it'll rely on calling the GetForegroundWindow function (winuser.h) - Win32 apps | Microsoft Learn[^]
But ... that may just return the focussed window in the current app, not the whole system (security and all that).

But as Dave says, there is no "focus order" list in Windows so if your target app is minimised or switched away from, you can't find out which app it was at all.
OriginalGriff 4 days ago View    
Yes but you still have to check!
OriginalGriff 4 days ago View    
Yes, but if it's invisible, it can't be the current cell because the user can't access it!
OriginalGriff 15-May-24 1:45am View    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

Use the "Improve question" widget to edit your question and provide better information.
OriginalGriff 14-May-24 23:27pm View    
This is not a good question - we cannot work out from that little what you are trying to do.
Remember that we can't see your screen, access your HDD, or read your mind - we only get exactly what you type to work with - we get no other context for your project.
Imagine this: you go for a drive in the country, but you have a problem with the car. You call the garage, say "it broke" and turn off your phone. How long will you be waiting before the garage arrives with the right bits and tools to fix the car given they don't know what make or model it is, who you are, what happened when it all went wrong, or even where you are?

That's what you've done here. So stop typing as little as possible and try explaining things to people who have no way to access your project!

Use the "Improve question" widget to edit your question and provide better information.