I want to know more :)


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 15 of 15

Thread: I want to know more :)

  1. #1
    Guillaume Olivier Guest

    I want to know more :)


    First :

    When I hit F10 for an exemple, I want my program to print "Hi" anywhere the
    cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will appear
    beside the cursor. How can I do these sort of thing in VB6.

    Second:

    I want to create another program that makes a list of all opened windows
    titles when I hit the LIST button in my program for exemple. I mean all the
    titles goes in a listBox.

    Third:

    I want to retrieve the HTML source code from an Internet web page in a variable.

    Fourth:

    I want ... yes ... I want I really want to be a millionnaire

  2. #2
    Phil Weber Guest

    Re: I want to know more :)

    > I want to retrieve the HTML source code from an
    > Internet Web page in a variable.


    Guillaume: See the Q&A column in the July, 1997 issue of VBPJ:

    http://www.devx.com/premier/mgznarch...ul97/qanda.pdf

    ---
    Phil Weber



  3. #3
    Phil Weber Guest

    Re: I want to know more :)

    > I want to retrieve the HTML source code from an
    > Internet Web page in a variable.


    Guillaume: See the Q&A column in the July, 1997 issue of VBPJ:

    http://www.devx.com/premier/mgznarch...ul97/qanda.pdf

    ---
    Phil Weber



  4. #4
    Mike Guest

    Re: I want to know more :)


    >First :
    >
    >When I hit F10 for an exemple, I want my program to print "Hi" anywhere

    the
    >cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will appear
    >beside the cursor. How can I do these sort of thing in VB6.
    >

    This question gets asked alot. You can't do this in VB alon. This requires
    a system hook, which requires a standard DLL (not a VB active X dll). You
    will need Spyworks or some other system hook control/dll.

    Mike


  5. #5
    Mike Guest

    Re: I want to know more :)


    >First :
    >
    >When I hit F10 for an exemple, I want my program to print "Hi" anywhere

    the
    >cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will appear
    >beside the cursor. How can I do these sort of thing in VB6.
    >

    This question gets asked alot. You can't do this in VB alon. This requires
    a system hook, which requires a standard DLL (not a VB active X dll). You
    will need Spyworks or some other system hook control/dll.

    Mike


  6. #6
    Eduardo A. Morcillo Guest

    Re: I want to know more :)

    For that simple task a system wide hook is not required. It can be done
    using a windows hotkey (RegisterHotkey API) and SendKeys.

    --
    Eduardo A. Morcillo
    http://www.domaindlx.com/e_morcillo
    "Mike" <m_culley@one.net.au> wrote in message
    news:38e98f2b$1@news.devx.com...
    >
    > >First :
    > >
    > >When I hit F10 for an exemple, I want my program to print "Hi" anywhere

    > the
    > >cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will

    appear
    > >beside the cursor. How can I do these sort of thing in VB6.
    > >

    > This question gets asked alot. You can't do this in VB alon. This requires
    > a system hook, which requires a standard DLL (not a VB active X dll). You
    > will need Spyworks or some other system hook control/dll.
    >
    > Mike
    >




  7. #7
    Eduardo A. Morcillo Guest

    Re: I want to know more :)

    For that simple task a system wide hook is not required. It can be done
    using a windows hotkey (RegisterHotkey API) and SendKeys.

    --
    Eduardo A. Morcillo
    http://www.domaindlx.com/e_morcillo
    "Mike" <m_culley@one.net.au> wrote in message
    news:38e98f2b$1@news.devx.com...
    >
    > >First :
    > >
    > >When I hit F10 for an exemple, I want my program to print "Hi" anywhere

    > the
    > >cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will

    appear
    > >beside the cursor. How can I do these sort of thing in VB6.
    > >

    > This question gets asked alot. You can't do this in VB alon. This requires
    > a system hook, which requires a standard DLL (not a VB active X dll). You
    > will need Spyworks or some other system hook control/dll.
    >
    > Mike
    >




  8. #8
    Steve Cochran Guest

    Re: I want to know more :)


    "Guillaume Olivier" <g.u.s@videotron.ca> wrote in message
    news:38e94d0a$1@news.devx.com...
    >
    >
    > Third:
    >
    > I want to retrieve the HTML source code from an Internet web page in a

    variable.
    >


    You can load the web page into a WebBrowser control and then get the HTML
    via

    s1=WebBrowser.document.body.innerhtml

    I don't know if you can get the HEAD though.

    steve



  9. #9
    Steve Cochran Guest

    Re: I want to know more :)


    "Guillaume Olivier" <g.u.s@videotron.ca> wrote in message
    news:38e94d0a$1@news.devx.com...
    >
    >
    > Third:
    >
    > I want to retrieve the HTML source code from an Internet web page in a

    variable.
    >


    You can load the web page into a WebBrowser control and then get the HTML
    via

    s1=WebBrowser.document.body.innerhtml

    I don't know if you can get the HEAD though.

    steve



  10. #10
    Dany Rocheleau Guest

    Re: I want to know more :)


    "Guillaume Olivier" <g.u.s@videotron.ca> wrote:
    >
    >First :
    >
    >When I hit F10 for an exemple, I want my program to print "Hi" anywhere

    the
    >cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will appear
    >beside the cursor. How can I do these sort of thing in VB6.


    Salut Guillaume je suppose que tu parle français !!
    Pour la premiere question tu pourrais probablement faire quelques chose mais
    tu aura besoin d'une macro en VBA dans tous les programmes office.
    >
    >Second:
    >
    >I want to create another program that makes a list of all opened windows
    >titles when I hit the LIST button in my program for exemple. I mean all

    the
    >titles goes in a listBox.


    Pour la 2e question, tu as besoin d'APIs windows. Je ne les sais pas par
    coeur mais je vais jeter un coup d'oeil.

    >Third:
    >
    >I want to retrieve the HTML source code from an Internet web page in a variable.


    D'autre on déjà répondu a celle la !!!!!


    >Fourth:
    >
    >I want ... yes ... I want I really want to be a millionnaire

    MOI AUSSI !! (pis si en répondant a tes question tu deviens millionaire j'aimerais
    avoir 10% ;-)

  11. #11
    Dany Rocheleau Guest

    Re: I want to know more :)


    "Guillaume Olivier" <g.u.s@videotron.ca> wrote:
    >
    >First :
    >
    >When I hit F10 for an exemple, I want my program to print "Hi" anywhere

    the
    >cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will appear
    >beside the cursor. How can I do these sort of thing in VB6.


    Salut Guillaume je suppose que tu parle français !!
    Pour la premiere question tu pourrais probablement faire quelques chose mais
    tu aura besoin d'une macro en VBA dans tous les programmes office.
    >
    >Second:
    >
    >I want to create another program that makes a list of all opened windows
    >titles when I hit the LIST button in my program for exemple. I mean all

    the
    >titles goes in a listBox.


    Pour la 2e question, tu as besoin d'APIs windows. Je ne les sais pas par
    coeur mais je vais jeter un coup d'oeil.

    >Third:
    >
    >I want to retrieve the HTML source code from an Internet web page in a variable.


    D'autre on déjà répondu a celle la !!!!!


    >Fourth:
    >
    >I want ... yes ... I want I really want to be a millionnaire

    MOI AUSSI !! (pis si en répondant a tes question tu deviens millionaire j'aimerais
    avoir 10% ;-)

  12. #12
    G. Olivier Guest

    Re: I want to know more :)


    "Mike" <m_culley@one.net.au> wrote:
    >
    >>First :
    >>
    >>When I hit F10 for an exemple, I want my program to print "Hi" anywhere

    >the
    >>cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will appear
    >>beside the cursor. How can I do these sort of thing in VB6.
    >>

    >This question gets asked alot. You can't do this in VB alon. This requires
    >a system hook, which requires a standard DLL (not a VB active X dll). You
    >will need Spyworks or some other system hook control/dll.
    >
    >Mike
    >

    Thanks Mike



  13. #13
    G. Olivier Guest

    Re: I want to know more :)


    "Mike" <m_culley@one.net.au> wrote:
    >
    >>First :
    >>
    >>When I hit F10 for an exemple, I want my program to print "Hi" anywhere

    >the
    >>cursor is. If I'm in Microsoft Word and I hit F10, the word "Hi" will appear
    >>beside the cursor. How can I do these sort of thing in VB6.
    >>

    >This question gets asked alot. You can't do this in VB alon. This requires
    >a system hook, which requires a standard DLL (not a VB active X dll). You
    >will need Spyworks or some other system hook control/dll.
    >
    >Mike
    >

    Thanks Mike



  14. #14
    Steve Cochran Guest

    Re: I want to know more :)

    outerhtml will give you the rest.

    steve

    "Steve Cochran" <scochran@chattanooga.net> wrote in message
    news:38e9f75b@news.devx.com...
    >
    > "Guillaume Olivier" <g.u.s@videotron.ca> wrote in message
    > news:38e94d0a$1@news.devx.com...
    > >
    > >
    > > Third:
    > >
    > > I want to retrieve the HTML source code from an Internet web page in a

    > variable.
    > >

    >
    > You can load the web page into a WebBrowser control and then get the HTML
    > via
    >
    > s1=WebBrowser.document.body.innerhtml
    >
    > I don't know if you can get the HEAD though.
    >
    > steve
    >
    >



  15. #15
    Steve Cochran Guest

    Re: I want to know more :)

    outerhtml will give you the rest.

    steve

    "Steve Cochran" <scochran@chattanooga.net> wrote in message
    news:38e9f75b@news.devx.com...
    >
    > "Guillaume Olivier" <g.u.s@videotron.ca> wrote in message
    > news:38e94d0a$1@news.devx.com...
    > >
    > >
    > > Third:
    > >
    > > I want to retrieve the HTML source code from an Internet web page in a

    > variable.
    > >

    >
    > You can load the web page into a WebBrowser control and then get the HTML
    > via
    >
    > s1=WebBrowser.document.body.innerhtml
    >
    > I don't know if you can get the HEAD though.
    >
    > steve
    >
    >



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center