Sign in to follow this  
Followers 0
asiawatcher

AUTOIT copy and paste automatically data fields from one form to another in x2 web browser windows

7 posts in this topic

#1 ·  Posted (edited)

AUTOIT copy and paste automatically data fields from one form to another in x2 web browser windows

is it possible ? for example we got a crm at work and it contains a data of a customer address first/last name tax number etc etc and i have to copy/paste each and every field from one browser window to another browser window for submitting an application form with customers data

is this possible ? i do this manually everyday at work using either chrome or internet explorer, customers data and application form server are x2 different sites

what im asking is if i can make an autoit application that with a push of a button will transfer customners data from one web form to another web form automatically without me copying and pasting from each field to each other field

 

i have seen some solutions that are copying from excel to webform but i need from webform to webform like autocomplete of IE but different data everytime

cheers

Edited by asiawatcher

Share this post


Link to post
Share on other sites



Yes, you should be able to accomplish this with the built-in _IE* functions.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yes, it is possible. Refer to the IE functions in the Help file. You can get this done much quicker with those than by using Copy/Paste procedures.Your question is in the wrong forum. There is a General Help & Support forum, you know. This forum is for people to post and share with others scripts they have written.

Edited by somdcomputerguy

- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

Share this post


Link to post
Share on other sites

asiawatcher,

The "Examples" section where you started this thread is clearly marked: "This is NOT a general support forum!". I have moved it for you, but would ask you to be more careful in future. ;)

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

hi thanks for all your replies and sorry for posting in wrong forum

any code example to get me going ? there are so many functions in ie.au3

only asking coz i searched everywhere and only thing i can find is to/from excel and webforms

 

i successfully set data to forms but how do i copy from the one form ? then i can put the data in variables and then set the values

 
_IEFormElementSetValue($ofirstName, "test1")
_IEFormElementSetValue($osurNameCompanyName, "test2")
 

thanks

Edited by asiawatcher

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

anyone ? :/

here is a code sample, i also have tried the ones i commented out they don't work either

please some help cheers

#include <IE.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GuiStatusBar.au3>
#include <ProgressConstants.au3>
#include <MsgBoxConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
Opt("GUIResizeMode", $GUI_DOCKAUTO)
Opt("GUIResizeMode", $GUI_DOCKAUTO)
Opt("GUIResizeMode", $GUI_DOCKAUTO)
Opt("GUIResizeMode", $GUI_DOCKAUTO)
Opt("GUIResizeMode", $GUI_DOCKAUTO)
Opt("GUIResizeMode", $GUI_DOCKAUTO)
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <string.au3>
#include <FTPEx.au3>
#include <File.au3>
#include <Misc.au3>
#include <ClipBoard.au3>
#include <date.au3>
#include <ProgressConstants.au3>
#Include <Constants.au3>
#Include <INET.au3>
#include <SendMessage.au3>
#include <array.au3>
 
 
ClipPut("")
 
$ap = InputBox("id number", "enter page id number?", "", "")
 
 
 
$oIE = _IECreate($sUrl, 0, 1, 0, 1)
 
 
 
;$oHWND = _IEPropertyGet($oIE, "hwnd")
;WinSetState($oHWND, "", @SW_MAXIMIZE)
 
$oForm = _IEFormGetCollection($oIE, 0)
 
;$oForm = _IEFormGetObjByName($oIE, "form1")
 
;portRequestFormId
 
 
;$name = _IEFormElementGetObjByName($oForm, 'Name') ; change name !
$name = _IEFormGetObjByName($oIE, "Name")
 
 
$surname = _IEFormElementGetObjByName($oForm, "Surname") ; change name !
 
 
MsgBox(0, "Form Element Value", _IEFormElementGetValue($name))
Edited by asiawatcher

Share this post


Link to post
Share on other sites

You didn't explain what isn't working, but I assume that the MsgBox isn't displaying the desired value. My suggestion would be to submit a small reproducer script that uses a public website (ie: Yahoo, Google, etc) so that others can run the script and offer meaningful assistance.

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