Redgirl Posted October 15, 2011 Share Posted October 15, 2011 Hello all1st. Sorry for my bad English I’m Dutch and English is not my best language.I have a Problem with finishing my Script. I have never bevor work with Autoit inCombination with Excel. I hope you can help me. I have create my basic script for a program to found duplicated cases in myQWS3270 program.All new cases will be copied inside a Excel sheet in line AMy tool must copies the information from A1 and run a scriptIn this scripted will be copy new data’s inside the clipboardAnd must be passed inside B1 After this he must follow up this with read details in A2 script past info B2 etc. I can not say how may cell in line A will be used it is different. It can be 30 or 600But this program must stop at the last cell. #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.6.1 Author: Lilly Jansen Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <Excel.au3> $sFilePath1 = @ScriptDir & "\Test1.xls" ; Diese Datei sollte bereits existieren $oExcel = _ExcelBookOpen($sFilePath1) $sCellValue = _ExcelReadCell($oExcel, 1, 1) clipput($sCellValue) ; That scripted will be changed it was only for testing the will make the _ExcelReadCell($oExcel, 1, 1) sin WinActivate ("a1.txt") WinWaitActive ("a1.txt") Sleep (1000) Send("{LSHIFT down}") send ("{right 6}") Send("{LSHIFT up}") send ("^c") While Sleep(50) $sText = ClipGet() _ExcelWriteCell($oExcel, $sText, 1, 2) Do Sleep(50) Until ClipGet() <> $sText WEnd Please can anyone help meThanksRedgirl 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