Sign in to follow this  
Followers 0
FireFox

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

12 posts in this topic

#1 ·  Posted (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 by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

@authenticity..

He's already tried that..:)


[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

#6 ·  Posted (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 by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
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.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
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.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

How about??

ControlSend($hWnd, '', '', '^l')
send('url')

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com

Share this post


Link to post
Share on other sites

@Manjish

Send is the same thing as controlsend but more sucking...

Something like ControlSetText would be better to make it faster :)

Cheers, FireFox.


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

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