![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Professional Programmer
|
Get Window Class by clicking it.
Hey yall. On my new Download Blocker edition, I'm wantign to add where the user can set their own preferences of what to block, so they can block more then just what I put in there for them to block. So I'm wondering if there is a way to get a windows class and title by clicking it. Class would be fine, but both would be better, if possible. Right now all I have you know everyday stuff, like control panel, display properties, and the like. But I am wanting to where the user can open the program they want to block, click it and it will be added to a database, so it will blocked. Please help me, if you dont understand let me know and I'll try to make it simpler.:banana:
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
|
|
#2 |
|
Programmer
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3
![]() |
Sorry man, can't understand what you want..
__________________
"The most incomprehensible idea about the universe is that it is comprehensible" - Albert Einstein |
|
|
|
|
|
#3 |
|
Programmer
Join Date: Feb 2006
Location: Ohio
Posts: 93
Rep Power: 3
![]() |
bigguy, there's an ancient VB application called "WinHwnd" that is an example of what I believe you're looking to do. Not sure if you can still find that program on-line anymore.
If I recall correctly, you send the WM_GETTEXTLENGTH and WM_GETTEXT windows messages to the target window, in order to get the title. Use the Win API function "GetClassName" to get the class name. Don't know if there is a better [insulated] way to do all this in VB.Net. There probably is.
__________________
Neeley.org |
|
|
|
|
|
#4 |
|
Professional Programmer
|
Alphonso: what I was meaning is like I open calculator, click it's title bar or w/e and it get the classname. Then teh classname is added to a database so it will block it next time it is opened.
Dr.P thanks for the info, I'll look around for it.
__________________
Forgiveness is the fragrance that the violet sheds on the heal that has crushed it. - Mark Twain Destruction leads to a very rough road, but it also breeds creation. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Wierd compile Error. Need help please. | Keiyentai | Java | 7 | Aug 19th, 2006 1:35 AM |
| Char[11] -> LPCWSTR | Kilo | C++ | 5 | May 30th, 2006 3:47 AM |
| What is: "Oriented programming (OO)?" | BrinyCode | C++ | 12 | Nov 22nd, 2005 7:40 AM |
| GUI Progress Bar | badbasser98 | C++ | 55 | Nov 4th, 2005 7:28 AM |
| User Input for Number Format | ericelysia1 | Java | 0 | Jul 21st, 2005 3:41 PM |