asiawatcher Posted July 1, 2014 Posted July 1, 2014 (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 July 1, 2014 by asiawatcher
Danp2 Posted July 1, 2014 Posted July 1, 2014 Yes, you should be able to accomplish this with the built-in _IE* functions. Latest Webdriver UDF Release Webdriver Wiki FAQs
somdcomputerguy Posted July 1, 2014 Posted July 1, 2014 (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 July 1, 2014 by somdcomputerguy - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change.
Moderators Melba23 Posted July 1, 2014 Moderators Posted July 1, 2014 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 Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
asiawatcher Posted July 2, 2014 Author Posted July 2, 2014 (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 July 2, 2014 by asiawatcher
asiawatcher Posted July 3, 2014 Author Posted July 3, 2014 (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?", "", "") $sUrl = "http://site.com/FormDetails.aspx?appid="&$ap $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 July 3, 2014 by asiawatcher
Danp2 Posted July 3, 2014 Posted July 3, 2014 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. Latest Webdriver UDF Release Webdriver Wiki FAQs
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now