Sign in to follow this  
Followers 0
Echelon

Firefox Window Manipulation

7 posts in this topic

Hi there,

I've read the documentation, I've tried using the Window Info tool to obtain a class ID and I still can't seem to be able to do this. Can anyone explain to me how to manipulate web page contents from within Firefox?

I can load the browser (Firefox) without any problems, I can load the requested URL without any problems. I can even go so far as to obtain the co-ordinates of the button using the Window Tool, and then 'click' on those co-ordinates, but naturally I find that this isn't portable, because it depends upon screen resolution, Window placement, that kind of thing.

My aim was to switch all 'clicks' on co-ordinates, to accessing controls directly. Can anyone offer any advice (in English) on how I do this please? I searched the web, and I searched the forums, and I couldn't find any information.

Thanks in advance.

Share this post


Link to post
Share on other sites



Any chance to do it in IE? If yes then check out IE.au3

Share this post


Link to post
Share on other sites

I don't get it: why use AutoIt to automate FireFox?

FireFox has its own excellent automation interface and there are hundreds of add-ons to do exact that tasks. Take a look at

GreaseMonkey

You can click buttons, links and do much more with this add-on.


UDFS & Apps:


DDEML.au3 - DDE Client + Server[*]
Localization.au3- localize your scripts[*]
TLI.au3 - type information on COM objects (TLBINF emulation)[*]
TLBAutoEnum.au3 - auto-import of COM constants (enums)[*]
AU3Automation - export AU3 scripts via COM interfaces
TypeLibInspector

- OleView was yesterday

Coder's last words before final release: WE APOLOGIZE FOR INCONVENIENCE 

Share this post


Link to post
Share on other sites

why use AutoIt to automate FireFox?

I need this to (for my project «YouTube Download Center» from my sign), so i be able to check constantly the url in the address bar (that's why i ask here about the capabilities of DDEML.au3 <_<).

 

Spoiler

Using OS: Win 7 Professional, Using AutoIt Ver(s): 3.3.6.1 / 3.3.8.1

AutoIt_Rus_Community.png AutoIt Russian Community

My Work...

Spoiler

AutoIt_Icon_small.pngProjects: ATT - Application Translate Tool {new}| BlockIt - Block files & folders {new}| SIP - Selected Image Preview {new}| SISCABMAN - SciTE Abbreviations Manager {new}| AutoIt Path Switcher | AutoIt Menu for Opera! | YouTube Download Center! | Desktop Icons Restorator | Math Tasks | KeyBoard & Mouse Cleaner | CaptureIt - Capture Images Utility | CheckFileSize Program

AutoIt_Icon_small.pngUDFs: OnAutoItErrorRegister - Handle AutoIt critical errors {new}| AutoIt Syntax Highlight {new}| Opera Library! | Winamp Library | GetFolderToMenu | Custom_InputBox()! | _FileRun UDF | _CheckInput() UDF | _GUIInputSetOnlyNumbers() UDF | _FileGetValidName() UDF | _GUICtrlCreateRadioCBox UDF | _GuiCreateGrid() | _PathSplitByRegExp() | _GUICtrlListView_MoveItems - UDF | GUICtrlSetOnHover_UDF! | _ControlTab UDF! | _MouseSetOnEvent() UDF! | _ProcessListEx - UDF | GUICtrl_SetResizing - UDF! | Mod. for _IniString UDFs | _StringStripChars UDF | _ColorIsDarkShade UDF | _ColorConvertValue UDF | _GUICtrlTab_CoverBackground | CUI_App_UDF | _IncludeScripts UDF | _AutoIt3ExecuteCode | _DragList UDF | Mod. for _ListView_Progress | _ListView_SysLink | _GenerateRandomNumbers | _BlockInputEx | _IsPressedEx | OnAutoItExit Handler | _GUICtrlCreateTFLabel UDF | WinControlSetEvent UDF | Mod. for _DirGetSizeEx UDF
 
AutoIt_Icon_small.pngExamples: 
ScreenSaver Demo - Matrix included | Gui Drag Without pause the script | _WinAttach()! | Turn Off/On Monitor | ComboBox Handler Example | Mod. for "Thinking Box" | Cool "About" Box | TasksBar Imitation Demo

Like the Projects/UDFs/Examples? Please rate the topic (up-right corner of the post header: Rating AutoIt_Rating.gif)

* === My topics === *

==================================================
My_Userbar.gif
==================================================

 

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Share this post


Link to post
Share on other sites

I don't get it: why use AutoIt to automate FireFox?

FireFox has its own excellent automation interface and there are hundreds of add-ons to do exact that tasks. Take a look at

GreaseMonkey

You can click buttons, links and do much more with this add-on.

Because using a Firefox extension then means you can't simply package everything into an .exe and have the user use it. You need to ensure the relevant addons are installed in Firefox, which completely defeats the purpose of cross compatibility.

Yes, I'm aware there are MANY alternatives to what I'm asking - but in this instance I specifically require AutoIt to be used natively to read/push buttons in a Firefox window. Please don't suggest alternatives, just methods in which I can do this (if even possible). Thanks.

Share this post


Link to post
Share on other sites

Firefox does not expose its COM elements like IE does. So, the quick answer is, "No you can't. You're better off doing it in an IE window."


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

why not just force a plugin like this into firefox? if you HAVE to have it in firefox and not IE

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