Jump to content

Getting back into AutoIt, need help with FireFox


Vadtec
 Share

Recommended Posts

I've been browsing the forums, and I'm 95% certain I haven't found a solution to my question. But, I'm also 95% certain what I want to do will either be a) not do-able, or :) extremely involved. That being said...

I need to automate the filling in of a complex form in FireFox (and IE eventually, but for now just FF). The main problem is, I do not have the luxury of installing the addon that is needed for ff.au3 to work with FF. This leaves me with a problem.

I need a way to identify the controls inside of the MozillaWindowClass that the form is contained in. I don't so much care about their HTML IDs or anything like that as I do being able to find a root/start control and being able to fill in the form from there.

I've looked at WinGetHandle() and related for some inspiration, but alas I seem to not be finding what I'm after. Is it even possible to hook into a handle and manipulate it's contents like this? If so, how would I go about doing that? Also, is it possible to get the Window Info tool to look inside a control and identify the controls within it, within the context of a FF browser window?

I apologize if this has been answered somewhere in the forums. Just trying to automate stuff without being able to install addons for the browsers.

- Vadtec

Link to comment
Share on other sites

Have you looked at the It might be of some use to you for what you're looking to do. I don't use FF or the UDF, so I won't be of any help with it.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

Have you looked at the It might be of some use to you for what you're looking to do. I don't use FF or the UDF, so I won't be of any help with it.

I clearly stated in my original post that I am not able to use this UDF because it requires a plugin for FF and I do not have the luxury of being able to install the plugin on the computers I would like to use this script on. It's a corporate environment with access restrictions for plugins. If I can simply find a way to hook into FF or otherwise access the HTML elements on the page that would be most optimal.

So, having stated again that I cannot (easily) use the above UDF, is there any way to access the controls inside the web browser? Would hooking into the window itself be possible? Could really use some help on this one.

Thanks.

- Vadtec

Link to comment
Share on other sites

Sorry I tried to help you, be assured that in the future no help from me will ever be offered.

p.s. I simply missed the one line where you said you couldn't install the plug in. I don't think that warranted the response you gave, and the attitude.

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

  • Moderators

I agree with BrewMan. I can't think of a better way to ensure you're ignored than being rude to someone who is offering assistance.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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

×
×
  • Create New...