Jump to content

[NOT RESOLVED] Firefox - Open new tab and enter url


FireFox
 Share

Recommended Posts

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 by FireFox
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

@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 by FireFox
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

@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
Link to comment
Share on other sites

Guest KeeForm

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...