Zohar Posted yesterday at 02:54 PM Posted yesterday at 02:54 PM (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 yesterday at 02:56 PM by Zohar
ioa747 Posted yesterday at 03:32 PM Posted yesterday at 03:32 PM WinActivate("[CLASS:MozillaWindowClass]") WinWaitActive("[CLASS:MozillaWindowClass]", "", 3) Send("{F6}") ; Navigate using F6 Sleep(100) ; Small delay to ensure the address bar is focused Send("^v") ; Ctrl + V to paste Send("{ENTER}") ; Go I know that I know nothing
Zohar Posted 22 hours ago Author Posted 22 hours ago 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now