The MASM Forum

General => The Workshop => Topic started by: LordAdef on January 31, 2018, 06:47:37 AM

Title: Is this little prog feasible at all?
Post by: LordAdef on January 31, 2018, 06:47:37 AM
Hi guys,

In my work I have this tedious job of filling dozens forms (in a web page) where most of the fields have the same values.....

I wonder if it was possible to copy these values from an array, go to Firefox where the fields are and:

paste,  "enter",   "tab"....  again etc...

unless you could suggest a ready available tool to do this, I wonder if that could be quickly implemented with our masm tools.

Cheers
Alex
Title: Re: Is this little prog feasible at all?
Post by: jj2007 on January 31, 2018, 06:58:45 AM
Problem is that Firefox (and most other browsers) do not use standard controls. No chance to use WM_SETTEXT or similar. Perhaps you could check what the add-on SDK (https://developer.mozilla.org/en-US/docs/Archive/Add-ons/Add-on_SDK) offers. But even that one is already obsolete - they recommend WebExtensions (https://developer.mozilla.org/en-US/Add-ons/WebExtensions) instead. See Your first extension (https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Your_first_WebExtension) for a simple example.
Title: Re: Is this little prog feasible at all?
Post by: LordAdef on January 31, 2018, 07:03:34 AM
Well, I could use a browser that would make the thing work. That's not the problem
Title: Re: Is this little prog feasible at all?
Post by: LordAdef on January 31, 2018, 04:33:16 PM
I found a ready-made solution, and it´s free (Win only).

It´s called AutoHotKey!

It´s an easy language where you write scripts (into the notepad) to be ran in real-time by Windows.
I already coded my script and it´s doing exactly I wanted.


Really cool stuff. Worth checking out