Jump to content

In Firefox, Is it Possible to Initiate the the "Paste and Go" MenuItem via a Windows Message?


Recommended Posts

Posted (edited)

Hi all

 

Imagine this scenario:

Firefox is running and is the active window,

the clipboard has a URL that we wish the browser to navigate to,

and now we need Firefox to initiate the "Paste and Go" MenuItem - which will do that.

 

Instead of sending a RightClick, and then moving with the Arrow Keys to appropriate MenuItem, and then simulating en [Enter],

maybe there's a way to spare this part, and initiate that MenuItem via a Windows Message?

 

I tried using Spy++ to find such a message, but couldn't.

There are 2 possibilities here:

1) There isn't such a Windows Message that is Sent for that MenuItem

2) There is a Windows Message that is Sent for that MenuItem, but I am just not finding it

 

Can anyone please try and see if he gets any success with that?

 

If this is not possible,

might there be another way which I could make Firefox navigate to a URL (which is in the Clipboard, or in a Variable),

other than the above mentioned way, and without installing a plugin?

 

Thank you

Edited by Zohar
  • Zohar changed the title to In Firefox, Is it Possible to Initiate the the "Paste and Go" MenuItem via a Windows Message?
Posted

Thank you ioa747

That's actually what I currently use
(or to be more accurate, I use Ctrl-L instead of F6, since it's more reliable)
Yet this way is problematic:
If the page is slow, it affects the time it takes the F6/Ctrl-L focus to happen.

That's why I wish to use the "Paste and Go" menuItem,
but hopefully, without opening it and selecting the MenuItem,
and instead, activating it via a SendMessage()..
(if one exists.. and that's where I need help)

 

 

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
×
×
  • Create New...