Tushar Posted April 13, 2022 Share Posted April 13, 2022 I want to read data from excel file and put that data into some other desktop automate field....How i do it plzz help Link to comment Share on other sites More sharing options...
Developers Jos Posted April 13, 2022 Developers Share Posted April 13, 2022 Search function broken? Did you open the helpfile and search for Excel ? Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Tushar Posted April 13, 2022 Author Share Posted April 13, 2022 Yes I open but there is no such function which copy the excel data into field Link to comment Share on other sites More sharing options...
Developers Jos Posted April 13, 2022 Developers Share Posted April 13, 2022 Yes there is: _Excel_RangeRead() SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Danp2 Posted April 13, 2022 Share Posted April 13, 2022 Excel_RangeRead() will retrieve the data from Excel. The solution for moving the data into the external application will depend on the target. Can you tell us more about the target application? Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
Tushar Posted April 14, 2022 Author Share Posted April 14, 2022 The target location is the mouse coordinates of that position...How will I put that data into that mouse coordinates ? RangeRead() function is not helpful in that situation. Link to comment Share on other sites More sharing options...
Tushar Posted April 14, 2022 Author Share Posted April 14, 2022 This is my sample code to copy the data from excel and paste it into mouse coordinate #include<Excel.au3> Local $oExcel_1= _Excel_Open() Local $sWorkbook="C:\Users\Tushar Verma\Desktop\AUTO IT\Test.xlsx" Local $oWorkbook = _Excel_BookOpen($oExcel_1,$sWorkbook) WinActivate($oWorkbook) Local $read1=_Excel_RangeRead($oWorkbook,Default,"B1") ;Now paste that into some mouse coordinates. How I do it? Link to comment Share on other sites More sharing options...
Tushar Posted April 14, 2022 Author Share Posted April 14, 2022 is there anyone who solve this query ? Link to comment Share on other sites More sharing options...
water Posted April 14, 2022 Share Posted April 14, 2022 We do not know which application you want to paste the data to. So I suggest to use _Excel_RangeCopyPast to copy the Excel data to the clipboard and then send the keys to the selected applications to paste the date (like ctrl+v) My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Tushar Posted April 14, 2022 Author Share Posted April 14, 2022 @water Could you please give me the sample script. I m new into autoit and find it difficult to do. Thanks in advance. Link to comment Share on other sites More sharing options...
water Posted April 14, 2022 Share Posted April 14, 2022 I see that you are new here. But you have to show some effort yourself. We do not spoon feed code to users. First step: Add _Excel_RangeCopyPaste to your script Second Step: Post your script so we can check the code Third step: Tell us which application you need to paste the data to. If there are multiple applications then please tell us which application you use most. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Developers Jos Posted April 14, 2022 Developers Share Posted April 14, 2022 (edited) 1 hour ago, Tushar said: is there anyone who solve this query ? Also please be a little patient and do not bump your post within 24 hours unless you have payed for your 1 hour SLA service contract. Edited April 14, 2022 by Jos Danp2 1 SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Tushar Posted April 14, 2022 Author Share Posted April 14, 2022 (edited) @water Sorry for this...I m using outlook application to paste my data. My code is this... expandcollapse popup#Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_UseX64=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <AutoItConstants.au3> #include <MsgBoxConstants.au3> #include<Excel.au3> Example() HotKeySet("+!d", "Terminate"); shift-alt-d Func Example() Local $oExcel_1= _Excel_Open() Local $sWorkbook="C:\Users\Tushar Verma\Desktop\AUTO IT\Test.xlsx" Local $oWorkbook = _Excel_BookOpen($oExcel_1,$sWorkbook) WinActivate($oWorkbook) Sleep(3000) $read1=_Excel_RangeCopyPaste($oWorkbook,Default,"B1:B3") MsgBox(0,"Read",$read1) Local $iPID = Run("C:\Program Files\Microsoft Office\root\Office16\OUTLOOK.EXE"); Sleep(10000); MouseClick("left",944,89); Sleep(10000); MouseClick("left",241,208); Sleep(5000); MouseClick("left",1148,647,12); Sleep(5000); MouseClick("left",739,357); Sleep(5000); MouseClick("left",744,429); Sleep(5000); ControlFocus("Choose File to Upload","","Edit1"); ControlSetText("Choose File to Upload","","Edit1","C:\Users\Tushar Verma\Desktop\Add-in File\Pinnable_CRM"); ControlClick("Choose File to Upload","","Button1"); Sleep(5000); MouseClick("left",638,294); Sleep(8000); MouseClick("left",1133,71); Sleep(5000); MouseClick("left",370,686); Sleep(10000); MouseClick("left",1078,90); Sleep(10000); MouseClick("left",1097,483); Sleep(1000); Send("Username"); Sleep(2000); Send("{TAB}"); Sleep(2000); Send("Password"); Sleep(2000); MouseClick("left",1188,655); Sleep(10000); MouseClick("left",1328,180); Sleep(2000); MouseClick("left",160,678); ;Task Sleep(2000); MouseClick("left",26,88); Sleep(2000); If WinActivate("Untitled - Task","") Then ControlClick("Untitled - Task","","RichEdit20WPT3"); ;At this location I wanted to paste the copied excel data. and I don't know how I solve this step. Thanks in advance. how to post code Edited April 14, 2022 by Jos Please use Code box for source ;) Link to comment Share on other sites More sharing options...
water Posted April 14, 2022 Share Posted April 14, 2022 (edited) You know that there is an Outlook UDF? This means you do not have to automate the Outlook GUI but simply call functions as you do with Excel. What do you try to do with Outlook? Create an email, a contact ...? Edited April 14, 2022 by water My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Tushar Posted April 15, 2022 Author Share Posted April 15, 2022 I want to automate the outlook with the 3rd party application to create some task in outlook. Link to comment Share on other sites More sharing options...
water Posted April 15, 2022 Share Posted April 15, 2022 Is my understanding correct that you want to Extract data from Excel Create a Task in Outlook with data from Excel I'm not sure about this: Grab some data from Pineapple CRM and add this to the Task. Maybe this is done by a Pineapple Outlook Add in? 1. and 2. can easily be done using the Excel and OutlookEX UDF. But I'm not sure about 3. Can you please tell us if I'm correct and what Pineapple exactly does in creating a Task? My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Tushar Posted April 16, 2022 Author Share Posted April 16, 2022 Yes Pinnable CRM is an add-in file which I used to add in Outlook. How I achieve the Part-2 Could you please tell me. Thanks in advance. Link to comment Share on other sites More sharing options...
water Posted April 16, 2022 Share Posted April 16, 2022 If the Pineapple Outlook addin provides a COM interface I suggest to use COM to create a task. Else I suggest to use AutoIt's Control* functions to automate the Outlook GUI. Send and Mouse* functions are not very reliable as they depend on screen resolution, window position and might interfere with user actions. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Nine Posted April 16, 2022 Share Posted April 16, 2022 Or you could use UIAutomation to perform the action in Pineapple OUtlook... “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
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