|
-
Apr 11th, 2000, 07:13 AM
#1
Thread Starter
New Member
(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
-
Apr 11th, 2000, 07:20 AM
#2
Frenzied Member
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.
-
Apr 11th, 2000, 07:31 AM
#3
Thread Starter
New Member
Last time I went into detail everyone ignored me..try looking back about three days (Focusing Windows was the subject)
-
Apr 12th, 2000, 04:22 AM
#4
Hyperactive Member
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."
-
Apr 12th, 2000, 06:23 AM
#5
Thread Starter
New Member
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)?
-
Apr 12th, 2000, 08:31 AM
#6
Addicted Member
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]
-
Apr 12th, 2000, 09:15 AM
#7
Hyperactive Member
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.
-
Apr 12th, 2000, 03:48 PM
#8
Conquistador
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|