473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Get list of clickable objects on the desktop

I need to get a list of clickable objects on the desktop and their
positions.
I have written a small program in C# and by using the Win32 function:
WindowFromPoint -function I get a handle to the desktop but now I'm
stuck.

For those who need to see the code -look below
IntPtr hWnd = Win32.WindowFromPoint(Cursor.Position);

With the handle I can get alot of cool information such as: Caption,
Class and Rect but that's not what I need...!

Now what?

Regards Henrik

Feb 13 '06 #1
3 4729
Henrik,
Its not entirely clear what you need to get from the Desktop items. Have you
tried simply iterating through the shortcuts in the SpecialFolders Desktop
folder? The lines in each shortcut file tell a lot about what and where.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Henrik" wrote:
I need to get a list of clickable objects on the desktop and their
positions.
I have written a small program in C# and by using the Win32 function:
WindowFromPoint -function I get a handle to the desktop but now I'm
stuck.

For those who need to see the code -look below
IntPtr hWnd = Win32.WindowFromPoint(Cursor.Position);

With the handle I can get alot of cool information such as: Caption,
Class and Rect but that's not what I need...!

Now what?

Regards Henrik

Feb 13 '06 #2
Thanks for the quick reply.
What I'm looking for is the place Windows registers shortcuts and
buttons that's why I think I need the handle. If Windows knows that
the object under the mouse is clickable I want to know if the object is
clickable as well. That's why I want a list or so with all available
information of the specific window.

For a start the shortcuts on the Desktop is ok. Could you please give
an example of using the SpecialFolder function? -The documentation of
the function isn't really good...
Peter Bromberg [C# MVP] skrev:
Henrik,
Its not entirely clear what you need to get from the Desktop items. Have you
tried simply iterating through the shortcuts in the SpecialFolders Desktop
folder? The lines in each shortcut file tell a lot about what and where.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Henrik" wrote:
I need to get a list of clickable objects on the desktop and their
positions.
I have written a small program in C# and by using the Win32 function:
WindowFromPoint -function I get a handle to the desktop but now I'm
stuck.

For those who need to see the code -look below
IntPtr hWnd = Win32.WindowFromPoint(Cursor.Position);

With the handle I can get alot of cool information such as: Caption,
Class and Rect but that's not what I need...!

Now what?

Regards Henrik


Feb 13 '06 #3
"F1" is your friend:
http://msdn.microsoft.com/library/de...rpathtopic.asp

Cheers,
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Henrik" wrote:
Thanks for the quick reply.
What I'm looking for is the place Windows registers shortcuts and
buttons that's why I think I need the handle. If Windows knows that
the object under the mouse is clickable I want to know if the object is
clickable as well. That's why I want a list or so with all available
information of the specific window.

For a start the shortcuts on the Desktop is ok. Could you please give
an example of using the SpecialFolder function? -The documentation of
the function isn't really good...
Peter Bromberg [C# MVP] skrev:
Henrik,
Its not entirely clear what you need to get from the Desktop items. Have you
tried simply iterating through the shortcuts in the SpecialFolders Desktop
folder? The lines in each shortcut file tell a lot about what and where.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Henrik" wrote:
I need to get a list of clickable objects on the desktop and their
positions.
I have written a small program in C# and by using the Win32 function:
WindowFromPoint -function I get a handle to the desktop but now I'm
stuck.

For those who need to see the code -look below
IntPtr hWnd = Win32.WindowFromPoint(Cursor.Position);

With the handle I can get alot of cool information such as: Caption,
Class and Rect but that's not what I need...!

Now what?

Regards Henrik


Feb 13 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: bob_smith_17280 | last post by:
How many items can be stored in a Python list? I have close to 70,000 items... is this within a lists limits?
53
by: Kerberos | last post by:
I followed Dan Cederholm's image replacement tutorial, to replace a header tag by a logo. The h1 is clickable if no CSS is applied but it I replace it by the logo, the area isn't clickable anymore...
3
by: RCCNH | last post by:
I am creating a Windows application using C# in .NET. In one of the windows, I have to show a scrollable list of user objects. Those user objects contain various controls themselves (textbox,...
3
by: mallyonline | last post by:
Thank you for your previous help. I posted regarding listing the names of files held in a folder on the server and making the list appear clickable. This has now been accomplished. The...
19
by: Ross A. Finlayson | last post by:
Hi, I hope you can help me understand the varargs facility. Say I am programming in ISO C including stdarg.h and I declare a function as so: void log_printf(const char* logfilename, const...
16
by: Brian D | last post by:
I have a multiple select list that is created dynamically based on a previous selection on an asp page. The first thing I do is to clear the curent option list by ...
15
by: desktop | last post by:
If I have a sorted std::list with 1.000.000 elements it takes 1.000.000 operations to find element with value = 1.000.000 (need to iterator through the whole list). In comparison, if I have a...
3
by: crazychrisy54 | last post by:
Hi there I just wondered if there is any way using GD to insert a clickable button or some clickable text into a image? It is possible to create images for buttons but what if you want a...
0
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.