Dear friends,

I have one problem in my project. I am making one label printing software for ebay. I had made up 95% of the project. Now what is the problem I want to get a field value from ebay site. My application is windows based. I had put one button in IE tool bar. That application opening when we are clicking on the button. Now i want a help to find out what are the sold items are checked and what is the value of the checkbox. that only.

The same kind of programs i seen several places. everywhere people are using a dll file to call.

for example sothink swf catcher. it running the dll and checking swfs are available or not in the page.

Its an urgent requirement. pls help me asap.

thanks

Shibu

Dani AI

Generated

Short summary and practical options for , and :

There are two robust ways to get which checkboxes are selected on an active browser page from a Windows app: (A) attach to the browser process and read the page DOM directly (works well for Internet Explorer), or (B) run code inside the page (BHO/toolbar script or injected JavaScript) and hand the data to the native app. ’s point about fragile selectors is correct—site markup changes often—so prefer stable IDs/data-attributes or, when possible, an official API instead of screen-scraping.

Minimal C# example (IE + COM interop). Add COM references “Microsoft Internet Controls” and “Microsoft HTML Object Library”, target the correct bitness (x86 for 32-bit IE):

using SHDocVw;
using mshtml;

List<string> GetCheckedValuesFromAllIE()
{
    var results = new List<string>();
    var shells = new ShellWindows();
    foreach (InternetExplorer ie in shells)
    {
        var doc = ie.Document as HTMLDocument;
        if (doc == null) continue;
        var inputs = doc.getElementsByTagName("input");
        foreach (IHTMLElement el in inputs)
        {
            var input = el as IHTMLInputElement;
            if (input == null) continue;
            if (string.Equals(input.type, "checkbox", StringComparison.OrdinalIgnoreCase) && input.@checked)
                results.Add(input.value ?? String.Empty);
        }
    }
    return results;
}

Notes, tradeoffs and troubleshooting:

  • If the toolbar code runs inside IE (BHO/extension) it can collect values and launch the native app with the data (command line, temp file or a custom URI), which is more reliable than cross-process scraping.
  • If multiple IE windows exist, match by ie.HWND or LocationURL to pick the correct instance.
  • If nothing is found, inspect the page with dev tools to find the checkbox attributes or observe if the page uses dynamic rendering (wait for DOM updates).
  • Respect user consent and site terms; prefer official APIs for long-term reliability.

Recommended Answers

All 3 Replies

Before you open the Windows process, you need a JS routine to look at the device on the screen. It could put the information in a cookie for you. But it is a problem, because you do not own the files you want to find the information from.

This will take constant maintenance, because I happen to know that eBay changes the names and arrangements of things on the screen periodically, to prevent malware attacks on user's computers.

Thanks for your reply. Actually my requirement is to find the selected sold item value with one windows based application.

pls check the document and kindly help me.


Otherwise you know how to get the source code of active ebay webpage directly by vb or vb.net?


give me ur suggestions asap.

thanks
shibu

hey shibu,
did you figured out? Please let me know. Now i am in your same situation!
i need to get HTML source to text from active page.
Ram

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.