Use C ++ to access Internet Explorer

As the topic says, I want to know if there is a tool or tutorial that can help me access IE, get a specific URL, do some action on this website. So I would have a program to do this for me, and not do it every time.

+4
source share
5 answers

Here is a project to automate Internet Explorer with C ++

+1
source

you really have to rephrase your question .. you said what you want to do, it is logical to access hotmail programmatically, check the pidgin code, they do it.

The documentation is found here , here , and can I think of navigating the code and tutorials as I see fit until you understand how pidgin members did it.

You can find the main page for pidgin here

Sample code to get started:

00362 static void 00363 msn_show_hotmail_inbox(PurplePluginAction *action) 00364 { 00365 PurpleConnection *gc; 00366 MsnSession *session; 00367 00368 gc = (PurpleConnection *) action->context; 00369 session = gc->proto_data; 00370 00371 if (session->passport_info.file == NULL) 00372 { 00373 purple_notify_error(gc, NULL, 00374 _("This Hotmail account may not be active."), NULL); 00375 return; 00376 } 00377 00378 purple_notify_uri(gc, session->passport_info.file); 00379 } 00652 void * 00653 purple_notify_uri(void *handle, const char *uri) 00654 { 00655 PurpleNotifyUiOps *ops; 00656 00657 g_return_val_if_fail(uri != NULL, NULL); 00658 00659 ops = purple_notify_get_ui_ops(); 00660 00661 if (ops != NULL && ops->notify_uri != NULL) { 00662 00663 void *ui_handle = ops->notify_uri(uri); 00664 00665 if (ui_handle != NULL) { 00666 00667 PurpleNotifyInfo *info = g_new0(PurpleNotifyInfo, 1); 00668 info->type = PURPLE_NOTIFY_URI; 00669 info->handle = handle; 00670 info->ui_handle = ui_handle; 00671 00672 handles = g_list_append(handles, info); 00673 00674 return info->ui_handle; 00675 } 00676 } 00677 00678 return NULL; 00679 } 
+1
source

Instead of using IE for such things, view the corresponding screenshots for your chosen language. You can google and search Stack Overflow to find many such libraries. Here you will use your language APIs to send data to the server.

0
source

I don’t know a single tool.

I use the built-in browser for such things. You can connect to a running instance of IE. See Connect to IE Executable Instance As soon as you receive an IWebBrowser2 instance, the encoding will be the same.

  1. Get the document interface pWebBrowser-> Document-> QueryInterface (IID_IHTMLDocument2 (LPVOID *) & Doc);
 2. Get all the elements of the document.  Doc-> get_all (& Elements);
 3. List the elements Elements-> get_length (& Ullen);  for each Elements-> element (element, index and ppvElement);
 4. Determine which item is needed.  * by class name * by ID, etc. .. here I used the class name ppvElement-> get_className (& bstrElement);
 5. Paste the text for user / password ppvElement-> put_innerText (wsUreser_or_Psswd)
 6. Find the "Login" button and click on it.  ppvElement-> Press ();

Your results may vary.

-

Michael

0
source

Why don't you make a dapper feed in two minutes? Apparently, some people have already done this .

0
source

All Articles