FireFox Posted February 14, 2009 Posted February 14, 2009 (edited) Hi, I want to know how to open a new tab and enter url in Firefox browser. I dont want solution with MozRepl or FF udf... I've tried those solutions : ControlSend('[CLASS:MozillaUIWindowClass]', '', $FFctrl, '^T') ControlSend('[CLASS:MozillaUIWindowClass]', '', $FFctrl, '^L') ControlSend('[CLASS:MozillaUIWindowClass]', '', $FFctrl, 'url')oÝ÷ Ù«¢+ØM¹ ÌäíyPÌäì¤(M¹ Ìäíy0Ìäì¤(M¹ ÌäíÕɰÌäì Thanks for anyhelp. Cheers, FireFox. Edited February 15, 2009 by FireFox
Manjish Posted February 14, 2009 Posted February 14, 2009 u said u have tried "these" solutions.. so what happened didn't they work?? Or r u documenting the most possible ways to do this task.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
Manjish Posted February 14, 2009 Posted February 14, 2009 how abt alt+F .. {down}.. {enter} Kinda lame.. i know.. .. but something which u haven't tried out.. i guess.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
Authenticity Posted February 14, 2009 Posted February 14, 2009 Opt('WinTitleMatchMode', 4) $hWnd = WinGetHandle('[CLASS:MozillaWindowClass]') ConsoleWrite($hWnd & @CRLF) WinActivate($hWnd) ControlSend($hWnd, '', 0, '^t')
Manjish Posted February 14, 2009 Posted February 14, 2009 @authenticity.. He's already tried that.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
FireFox Posted February 14, 2009 Author Posted February 14, 2009 (edited) @authenticity.. He's already tried that.. Yep, and not working for me But this is working : Opt('WinTitleMatchMode', 4) $hWnd = WinGetHandle('[CLASS:MozillaWindowClass]') ConsoleWrite($hWnd & @CRLF) WinActivate($hWnd) ControlSend($hWnd, '', '', '^t') Cheers, FireFox. Edited February 14, 2009 by FireFox
FireFox Posted February 14, 2009 Author Posted February 14, 2009 The part of new tab is resolved But the controlSend for url doesnt work... I want another way of : ;~ Opt('WinTitleMatchMode', 4) $hWnd = WinGetHandle('[CLASS:MozillaWindowClass]') ConsoleWrite($hWnd & @CRLF) WinActivate($hWnd) ControlSend($hWnd, '', '', '^t') Send('test url') Cheers, FireFox.
FireFox Posted February 14, 2009 Author Posted February 14, 2009 I found that way with controlsend : ;~ Opt('WinTitleMatchMode', 4) $hWnd = WinGetHandle('[CLASS:MozillaWindowClass]') ConsoleWrite($hWnd & @CRLF) WinActivate($hWnd) ControlSend($hWnd, '', '', '^t') $cgh = ControlGetHandle('[CLASS:MozillaWindowClass]', '', '[CLASS:MozillaWindowClass; INSTANCE:1]') ControlSend($cgh, '', '', 'new url') ControlSend($cgh, '', '', '{ENTER}') Its working but It would be better to use ControlSetText wich isn't working with this solution Thanks for anyhelp Cheers, FireFox.
Manjish Posted February 14, 2009 Posted February 14, 2009 How about?? ControlSend($hWnd, '', '', '^l') send('url') [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
FireFox Posted February 14, 2009 Author Posted February 14, 2009 @Manjish Send is the same thing as controlsend but more sucking... Something like ControlSetText would be better to make it faster Cheers, FireFox.
Manjish Posted February 15, 2009 Posted February 15, 2009 @FireFox.. So true.. But the prob is that autoit is not detecting the address bar as a control.. so u can't use controlsettext there.. I usually use it to change my labels.. in the gui.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
Guest KeeForm Posted February 16, 2009 Posted February 16, 2009 I am looking at the different options to automate Firefox. I am curious, why don't you want a solution with MozRepl? What are the disadvantages? Thanks for any ideas in advance! Dave Hi, I want to know how to open a new tab and enter url in Firefox browser. I dont want solution with MozRepl or FF udf... I've tried those solutions : ControlSend('[CLASS:MozillaUIWindowClass]', '', $FFctrl, '^T') ControlSend('[CLASS:MozillaUIWindowClass]', '', $FFctrl, '^L') ControlSend('[CLASS:MozillaUIWindowClass]', '', $FFctrl, 'url')oÝ÷ Ù«¢+ØM¹ ÌäíyPÌäì¤(M¹ Ìäíy0Ìäì¤(M¹ ÌäíÕɰÌäì Thanks for anyhelp. Cheers, FireFox.
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