I have this two browser windows, which are opened for each order on an apparel list with about 18K orders. I have to manually copy the values from the first window and paste them on the corresponding inputs in the second window. This has to be repeated for every single order.
I was thinking about making a small tool which allows to identify both windows, copy the needed values and paste them on the second window. Is this possible with Javascript & HTML, or maybe C#?
CodePudding user response:
Technically, this cannot be achieved via JavaScript. You can use some automation tools like AutoIt e.g.
Some Keyboards are also supporting Marco functions. You can record a Macro and copy every record if the entire process is repeatable.
CodePudding user response:
I think, this could be achieved with a chrome extension.
In general, the chrome extension needs to do the following
- query all the input fields on the left window and store its values in a JS object.
- use Window.postMessage() API or something similar to send the JS object to the other window where you listen to the message and receive the content (Tricky part is to define who is sender and who is receiver).
- Then you set the value of the input fields to the values of the received js object.