Results 1 to 8 of 8

Thread: º\__Please Help__/º

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    9

    Cool

    (Last time I post...I'm giving up soon)

    ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤
    º0o- Aejinlaevis-ke Leopiunte -o0º
    ¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤¤

    Alright, I need to know how to bring up a list of everything active on my computer. I've seen it before, yet I lost the code for it. That's not the butt buster, assuming the program has a textbox, I need VB to keep focus on it, but on a timer send out certain texts to it. Please help with this

  2. #2
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    I'm not entirely sure what you're trying to do. If you go into a bit more detail I'll try to give you some answers.

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    9
    Last time I went into detail everyone ignored me..try looking back about three days (Focusing Windows was the subject)

  4. #4
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    Well I couldnt find the message you where talking about so I'll assume you mean all active processes (could be wrong) but anyways:

    http://support.microsoft.com/support.../q187/9/13.asp
    "People who think they know everything are a great annoyance to those of us who do."

  5. #5

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    9
    Here's what I was asking..

    Alright, I've built a VB program that opens internet explorer in maximum view. The webpage i'm loading has a textbox, which luckily gains focus. Unfortunatly, I cannot get VB to send keys because it takes awhile for the page to load, and my VB version does not have a timer function. I've tried using variables that add to themselves, but that requires VB being in focus and constantly clicking a button, moving the mouse, the same things that kill the other window's focus. How do I have VB grab the focus on the opened Internet Explorer page and then shoot the sendkey commands at it(assuming it's already loaded, for example, I load it up, and make a VB program from there)?

  6. #6
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ottawa,ON,Canada
    Posts
    217
    Did you try using the Sleep API call? If not, try looking it up, I think this is what you need.

    .
    .
    .
    .
    Sorry, I just put some more thought into your problem, after stepping away for a while.

    If your program is opening IE then there should be no problem. Am I safe in assuming that you open IE with Shell? Because if you do the you have the Process ID for the IE session, returned fromthe Shell function. With the Process ID you can get the Handle to the IE Window, and from there you should be able to use WaitForInputIdle API on IE to wait until it is finished processing all of its intial messages. If that doesn't work then try the Sleep API, it will ultimately work. For an example of the how to use WaitForInputIdle see my previous thread (one of many on this subject) here > Wait until an app is loaded


    Hope this gives you what you need, if not let me know.

    [Edited by SonGouki on 04-12-2000 at 10:18 PM]

  7. #7
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    Actually you have to watch out for the Sleep[ API because it actually tells your entire system to go to sleep and not just the specific application you are in.

    What you need to do is use the "DoEvents" inside your application that tells the rest of the system to take control for a little bit and do what it has to.

  8. #8
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    you could launch internet explorer from within your project.
    Code:
    Dim myIE As New InternetExplorer
    myIE.Visible = True
    myIE.Navigate "http://forums.vb-world.net/newreply.php?action=newreply&threadid=13901"
    Don't forget to add a reference to Microsoft Internet Controls.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width