Sign in to follow this  
Followers 0
Exit

{Browser_Home} key question

6 posts in this topic

I have a problem with the {Browser_Home} key.

Here a reproducer.

$state = @SW_RESTORE
if MsgBox(4+262144,"",@lf & "Browser Minimize ?" & @lf,0) = 6 Then $state = @SW_MINIMIZE
For $i = 1 To 3
    Send("{BROWSER_HOME}")
    Sleep(500)
    WinSetState("[active]", "", $state)
Next
MsgBox(262144,"",@lf & "Check number of browser windows" & @lf,0)

Just let it run 2 times. First run with "yes". Second run with "No".

On first run (minimize), there are 3 browser instances.

On second run (restore), there is only 1 browser instance.

Does anybody has an explanation?

What happens when pressing the real "Browser Home" key?

I cannot test it due to absence of such a key on my keyboard.

Anybody knows where the definition for this key can be read in the registry?


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

edit:Explanation

if page is open and active it will redirect it to homepage(already on homepage makes no diffrance)

if page is open but not active (in focus) it will open new page

if page dont exsist it will open new page.

if you send it too fast youl newer know how many wins youl get, for example from your script i got 1 win instead 3 and instead 2 that whas your result

Alternative

#include <IE.au3>
For $i = 1 To 5
    $oIE = _IECreate ()
    _IEAction($oIE, "home")
Next
Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

Thanks for your reply.

My problem is that I have to use {Browser_Home} key.

_IECreate is no alternative.

The reproducer was only meant to show that the key sometimes opens a new window and sometimes docks to a exiting instance as new tab or sometimes does nothing.

So I digged a little and found a difference when using different show-codes.

I want to force the key to open a new window, but I found no registry entry to manipulate that behaviour.

Perhaps somebody knows. :)


My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

Thanks for your reply.

My problem is that I have to use {Browser_Home} key.

_IECreate is no alternative.

The reproducer was only meant to show that the key sometimes opens a new window and sometimes docks to a exiting instance as new tab or sometimes does nothing.

So I digged a little and found a difference when using different show-codes.

I want to force the key to open a new window, but I found no registry entry to manipulate that behaviour.

Perhaps somebody knows. :)

Wild guess, but try to:

Run("cmd /c start http://")

It works with Chrome, don't know about Firefox, Opera or IE.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

with HotKeySet i think you can still click the button and force open new win.

btw, where is {Browser_Home} key located on kboard? :)

Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)



460px-Thief-4-temp-banner.jpg
There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

 

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

btw, where is {Browser_Home} key located on kboard? :)

usually above the function keys (F1-F12) on a multimedia keyboard.

Sometimes it is labeled "WWW".

Edited by forumer100

My UDFs, Abbrevs and Snippets
If you like my post, just click the like button :) 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0