hi all .could any one tell me how i can get the HookControl ? I want to run an example and it tell me to dragg HookControl to my main form but dont know where to to get it . Looking forward for replies.Thanks
Thanks for replies.Whatsup i came across same example as the one you uploaded . I tried to run yours again but i keep getting these errors when runing the project:
during loading the project i get this error:
Errors during load .Refer to 'c:\HookControle\TestHook\form1.log'for details
And then when i press the hook button i get this error:
Compile error:
Method or data member not found
pointing at :
.GetTopLevelHandle(ParentCaption)
content of form1.log
Line 12: Class HookCtrl.HookControl of control HookControl was not a loaded control class.
Line 15: The property name _ExtentX in HookControl is invalid.
Line 16: The property name _ExtentY in HookControl is invalid.
Line 15: The property name _ExtentX in HookControl is invalid.
Line 16: The property name _ExtentY in HookControl is invalid.
I i placed HookControl.ocx and MainHook.dll in system32 folder but still the above errors don't go away. Could you help me fix these erros and be able run and learn from attached project?
Last edited by tony007; May 25th, 2010 at 12:27 PM.
You need to select "ActiveX Controls (*.Ocx)" in the file type in that browse box. If I am not wrong then the default is "Type Libraries (*.olb,*.tlb blah blah)"
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread "Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
I was browsing through the zip file to see if I was missing something but I guess I will have to wait till I try it on my laptop. I don't have vb6 in the office
A good exercise for the Heart is to bend down and help another up...
Please Mark your Thread "Resolved", if the query is solved
MyGear:
★ CPU ★ Ryzen 5 5800X
★ GPU ★ NVIDIA GeForce RTX 3080 TI Founder Edition
★ RAM ★ G. Skill Trident Z RGB 32GB 3600MHz
★ MB ★ ASUS TUF GAMING X570 (WI-FI) ATX Gaming
★ Storage ★ SSD SB-ROCKET-1TB + SEAGATE 2TB Barracuda IHD
★ Cooling ★ NOCTUA NH-D15 CHROMAX BLACK 140mm + 10 of Noctua NF-F12 PWM
★ PSU ★ ANTEC HCG-1000-EXTREME 1000 Watt 80 Plus Gold Fully Modular PSU
★ Case ★ LIAN LI PC-O11 DYNAMIC XL ROG (BLACK) (G99.O11DXL-X)
★ Monitor ★ LG Ultragear 27" 240Hz Gaming Monitor
★ Keyboard ★ TVS Electronics Gold Keyboard
★ Mouse ★ Logitech G502 Hero
here are 2 projects that i just checked and fixed
hookdemo -
Code:
* open notepad,
* compile/run the app
* type notepad title, (in english version, it's: Untitled - Notepad)
you must type the title correct.
* type something in notepad, you should see only XXX
because you hooked it.
the second project is just for building the ocx with no errors,
so you can use it with other samples.
whatis up thanks. i was only able to run the hookDemo . So inorder to to hook to any external application i need to have the handle of the controle in the application ?did this program inject any dll to the external application? where to get the source code for that dll that has been injected ?
Furthermore, I want to do something useful using hooking such as hooking to this external application winsock API "recv" and reads the incoming data and fill it in textbox in my own application. Could you tell me how i can modify this HookDemo project to just do that for me.Looking forward for replies.Thanks
Last edited by tony007; May 25th, 2010 at 05:34 PM.