-
Jul 7th, 2021, 12:23 PM
#1
Thread Starter
Member
How to pass control (focus) to a Chrome window
Hello everyone!!
The question of the day that I ask you, is the following!
How can I do
to pass the Focus, or the control, if you want, to a Chrome Window, from my program !?
I tried some methods before posting, but it is difficult for me, for the following reason:
I tried to get the identity of the window to which to pass control, with other things I succeeded, for example with a Notepad window, and with something else.
But here I can't, as I noticed that the problem is the full name of the Crhome window, which can vary depending on what is already there.
Note: I don't want to open a new window every time, but use the one that is already there!
Any suggestions!?
-
Jul 8th, 2021, 04:59 AM
#2
Thread Starter
Member
Re: How to pass control (focus) to a Chrome window
My question, is something not feasible !?
How come, there is not even an answer !?
I am perplexed !!
-
Jul 8th, 2021, 10:13 AM
#3
Re: How to pass control (focus) to a Chrome window
Are you not seeing "Google Chrome" as part of the window names you get for the Chrome windows?
-
Jul 8th, 2021, 06:26 PM
#4
Re: How to pass control (focus) to a Chrome window
-
Jul 9th, 2021, 06:51 AM
#5
Thread Starter
Member
Re: How to pass control (focus) to a Chrome window
Hi jdc2000 !
Know that exist a way to do with name, but i don't know how!
I tryed in some way (with Name procedure) but it can't work.
The code you linked is very intersting... But is for .Net, and I use VB6!!
I can do this with number references of windows on top, but is complicated, because,
I must create a procedure to knowing them before, and mem. before...
For re-calling after.
It is so nasty code...
I would like to do in a better way!!
-
Jul 12th, 2021, 06:25 PM
#6
Re: How to pass control (focus) to a Chrome window
You did not answer my question in post #3.
Post all of the data that you are getting for the Window names on your test computer.
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
|