Results 1 to 6 of 6

Thread: How to pass control (focus) to a Chrome window

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2021
    Posts
    59

    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!?

  2. #2

    Thread Starter
    Member
    Join Date
    Mar 2021
    Posts
    59

    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 !!

  3. #3
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,393

    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?

  4. #4
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,393

    Re: How to pass control (focus) to a Chrome window


  5. #5

    Thread Starter
    Member
    Join Date
    Mar 2021
    Posts
    59

    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!!

  6. #6
    PowerPoster jdc2000's Avatar
    Join Date
    Oct 2001
    Location
    Idaho Falls, Idaho USA
    Posts
    2,393

    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
  •  



Click Here to Expand Forum to Full Width