need a little help

Posted on 2004-10-26
Last Modified: 2010-04-17
I was just thinking about something.
Say you have a list of like maybe 1000 links or ID's.
I only know a little c++ not any other languages but if i wanted to write a program that would say open my web browser, and go to each link one by one, how would i do that?
any idea of a example code.
lets say you have a linke like www.somelink.ID=somenumber
and you wanted to cycle through all those ID numbers one by one
so it would open the browser to www.somelink.ID=20
                      then a few seconds later go to www.somelink.ID=21   and so on.

Have any ideas?
thanks in advance?
I have a good idea how to write the code just got a idea how i woud get it to open my browser and actually run the program to do what i want it to do.


Question by:J_2023
    LVL 8

    Accepted Solution

    Try looking at the ShellExecute command...

    basically you would have a for loop which assigns your url to a string, then do a shellexecute on that url.

    url = www.somelink.ID=somenumber
    HINSTANCE status =::ShellExecute( 0, NULL, ( TCHAR * )qt_winTchar( url, true ), NULL, NULL, SW_SHOW );

    or something similar...

    hope this helps
    LVL 8

    Expert Comment

    sorry I posted QT libaries in the above shellexecute function.  disregard the qt_winTchar function.

    LVL 1

    Author Comment

    I think that is what i am looking for! I need to read up on my c++ book its been a year since i took any c++ classes.
    but i think that makes sence now thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
    An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    934 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now