Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 24th, 2007, 10:02 AM   #1
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote
Old Jan 25th, 2007, 4:27 AM   #2
alphonso
Programmer
 
Join Date: Dec 2005
Location: Philippines, where the seasons are: hot, and hotter
Posts: 72
Rep Power: 3 alphonso is on a distinguished road
Sorry man, can't understand what you want..
__________________
"The most incomprehensible idea about the universe is that it is comprehensible" - Albert Einstein
alphonso is offline   Reply With Quote
Old Jan 25th, 2007, 6:36 AM   #3
dr.p
Programmer
 
dr.p's Avatar
 
Join Date: Feb 2006
Location: Ohio
Posts: 93
Rep Power: 3 dr.p is on a distinguished road
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
dr.p is offline   Reply With Quote
Old Jan 25th, 2007, 10:47 AM   #4
bigguy
Professional Programmer
 
bigguy's Avatar
 
Join Date: Sep 2005
Location: Arkansas
Posts: 298
Rep Power: 0 bigguy is an unknown quantity at this point
Send a message via AIM to bigguy Send a message via MSN to bigguy Send a message via Yahoo to bigguy
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.
bigguy is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC