Jump to content
Sign in to follow this  

[Solved]_ControlFocus( - Mozilla Firefox

Recommended Posts



Start the video, Run the code, then pause the Vid. & wait until tooltip says Done.

Now Hit CTRL+W . The tab should close. But it wont.

The thing is that you must give focus to firefox window & then CTRL+W will close the tab.

Is there any other way to give focus to firefox?


Opt("WinTitleMatchMode", 2)     ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase

ControlFocus(" - Mozilla Firefox", "", "MozillaUIWindowClass1")

ToolTip('Done',0,0)oÝ÷ Ù±!4-8ßÛjëh×6#NoTrayIcon

Opt("WinTitleMatchMode", 2)     ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase

$win = ' - Mozilla Firefox'

ControlFocus("[CLASS:MozillaUIWindowClass]", "", "MozillaWindowClass5")
$controlclick = ControlClick("[CLASS:MozillaUIWindowClass]", "", "MozillaWindowClass5",'left',2,1,1)

Edited by goldenix

My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list]

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.