Jump to content

callback for inputbox twebbrowser

- - - - -

  • Please log in to reply
1 reply to this topic

#1
ployo60

ployo60

    Newbie

  • Members
  • PipPip
  • 28 posts
I want to know how i can select a inputbox on a website (twebbrowser) by mouse and then give me the callback about that specific inputbox. Anyone know how to do this? I have found some hooks online, the following, but i dont know how to use them or if they are the right ones for the job. anyone know how to work this?

WH_CALLWNDPROCRET - installs a hook procedure that monitors messages after they have been processed by the destination window procedure. The callback function type is CallWndProcRet. (Note: this hook only works in Win95).
WH_CBT - Installs a hook procedure that receives notifications useful to a computer-based training (CBT) application. The callback function type is CBTProc.
WH_DEBUG - Installs a hook procedure useful for debugging other hook procedures. The callback function type is DebugProc.
WH_GETMESSAGE - Installs a hook procedure that monitors messages posted to a message queue. The callback function type is GetMsgProc.
WH_JOURNALPLAYBACK - Installs a hook procedure that posts messages previously recorded by a WH_JOURNALRECORD hook procedure. The callback function type is JournalPlaybackProc.
WH_JOURNALRECORD - Installs a hook procedure that records input messages posted to the system message queue. The callback function type is JournalRecordProc. (Note: this hook is useful for recording macros).
WH_KEYBOARD - Installs a hook procedure that monitors keystroke messages. The callback function type is KeyboardProc.
WH_MOUSE - Installs a hook procedure that monitors mouse messages. The callback function type is MouseProc.
WH_MSGFILTER - Installs a hook procedure that monitors messages generated as a result of an input event in a dialog box, message box, menu, or scroll bar. The callback function type is MessageProc.
WH_SHELL - Installs a hook procedure that receives notifications useful to shell applications. The callback function type is ShellProc.
WH_SYSMSGFILTER - Installs a hook procedure that m

#2
LuthfiHakim

LuthfiHakim

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 765 posts
Is this related with this thread (recognize website input boxes when clicked)? If so then you are taking my "hook" word too literally. It did not meant windows hooking (like you ask in your original post) :) However I did write some tutorials on Windows hooking. Check the tutorials section if you are interested.

By hooking I mean our program could somehow controls and inspects behavior and information which usually not available for external parties. I think I have given you some pointers, ie. in our case we hook into TWebBrowser using interfaces known for IE (Internet Explorer), which some already defined in MSHTML unit. I also give you the link to msdn page that explain the details of MSHTML. Remember that I told you to search for event or messages or callback. And guess what, if you visit the msdn page, you will see a link that says exactly: "MSHTML Event DispInterfaces". Open that link, and voila! Information you are after :c-thumbup: :c-thumbup:.

In the page, pay special attention to: HTMLInputTextElementEvents which its short description says:

Quote

This dispinterface provides a connection point so that an application or control can intercept events fired by an input type=text element.

Edited by LuthfiHakim, 14 January 2011 - 10:33 AM.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users