![]() |
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:
|
Sorry man, can't understand what you want..
|
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. |
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. |
| All times are GMT -5. The time now is 12:57 AM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC