Search the Community

Showing results for tags 'copy'.

• Search By Tags

Type tags separated by commas.

Forums

• General
• Announcements and Site News
• AutoIt v3
• AutoIt Help and Support
• AutoIt Technical Discussion
• AutoIt Example Scripts
• Scripting and Development
• Developer General Discussion
• Language Specific Discussion
• Operating System Deployment
• Windows Client
• Windows Server
• Office

Categories

• AutoIt Team
• Beta
• MVP
• AutoIt
• Automation
• Databases and web connections
• Data compression
• Encryption and hash
• Games
• Hardware
• Information gathering
• Internet protocol suite
• Maths
• Media
• PDF
• Security
• Social Media and other Website API
• Windows
• Scripting and Development
• Operating System Deployment
• Windows Client
• Windows Server
• Office

Found 32 results

6. How Cut/Copy text from Excel and past to other software one by one ?

Hi All, I have excel file like this and i want to cut cell/text from excel to other software. I have to cut the cell of B column one by one and past into other software If Winexists("No Data Found") then restore cuted cell and goto next/down side cell How to do it ?
7. Copy PDFs from a variable folder to a folder on the Desktop [Beginner Question]

Hey Everybody, as you know im on a very low autoit-level. My question is: How can i read all PDFs from a Folder wich is open and copy them to a Folder on a Desktop. The Folder wich contains the PDFs is variable Z:\Projektls\"*"*"*EVERYTIME ANOTHER ENDING"*"*"*"*" There can be 1 PDF or even 15 PDFs. i tried it with _FileListToArray and _FileCopy but i Need some help to understand this language THANKS!
8. Beginner Question - Filepath - change letters - search for specific data

Hey Community, cause im too new in the Auto it world i will try it with the your help. hopefully. I woud like to know how i can handle my Problem. ---- I have a Excel Data with 362 random numbers. For Example: 1166642335374 1172899897343 ..... this numbers are a part of the filepath ...example D:\Projekte\1166_64233_5374 as u can see its the first number of the Excel data. After the first 4 numbers it shoud make a "_" than another 5 "_" This is my first question. How can i handle this to make it Shell execute. -------- Second question: If i am in the path. For Example: D:\Projekte\1166_64233_5374 the code shoud search for specific PDF Files. They are named like: 0050569E364B1ED79B900F73E62660EC.pdf the first 15 letters are always the same 0050569E364B1ED when he found this data he has to copy it on a Folder on the Desktop. (There can also be 2 or 3 pdfs in one Folder with this letters) ---- Please give me some help :-)
9. UDF for detecting whether AutoIt can cut-paste from a window

Here's a short UDF that will, at least in most cases, detect whether a window can be copied from or pasted to programmatically--for example, by Send()ing ctl-c, ctl-v. This is often disabled when programs (like your AutoIt script) run at a lower UAC integrity level than the application they are trying to operate on. #include <WinAPI.au3> Func _WindowIsPasteable($handle) ;accepts window handle; returns true or false whether a window will accept Ctl-C, Ctl-V Local$bCanPaste = True Local $hTestWindowPID = 0 Local$hTestWindowTID = _WinAPI_GetWindowThreadProcessId($handle,$hTestWindowPID) _WinAPI_AttachThreadInput(_WinAPI_GetCurrentThreadId(), $hTestWindowTID, True);attach to window we want to paste into$bCanPaste = _WinAPI_GetFocus() ;Test whether window is paste-able--returns False if it is not _WinAPI_AttachThreadInput(_WinAPI_GetCurrentThreadId, $hTestWindowTID, False);detach from window thread Return$bCanPaste EndFunc Pass it a window handle; it returns true or false whether a window will accept programmatic pasting. The function may not work on the CMD window, since it handles the clipboard uniquely. This function works by attaching to the program thread of the window whose handle it receives, then attempting to perform a GetFocus on that thread. In most cases, the attempt will fail if the window will not accept programmatic copy-paste.
10. How to copy the first 10 characters in excel and paste it in the search box??

May I know how to copy the first 10 characters in excel and paste it in the file explorer textbox? How to do? I know that you show use the StringLeft() function but I am not sure how to do. Please help me. Thank you!

14. While Runwait

Hello, I just wrote a script that should copy data into my cloud using xcopy (cmd), but I want the Status Bar I have in my GUI to change it's text like that: working. -> working.. -> working... -> working. ... I would also like to make a button which interrupts xcopy (simply closing it should do the trick), but I don't know how to call ProcessClose("xcopy.exe") using a button, while I'am waiting for RunWait to finish. Example: $command = 'xcopy "' & @DesktopDir & '\text.txt"' & ' "\\ADMIN-CLOUD\private\" /EECHIY'$SW_STATE = @SW_HIDE RunWait(@ComSpec & " /c " & '"' & $command & '"', @DesktopDir,$SW_State) Please tell me if you need any further information!
15. Copy text from source code

Hi guys, I'm currently making TypeRacer script.. ofc just for fun and I found text in source code but I dont know how to copy exact words. <span style="text-decoration: underline; color: rgb(153, 204, 0);" id="nhwMiddlegwt-uid-8">TEXT TEXT</span> Exactly "TEXT TEXT" I need to copy from that source code. I just have one difficult way how to do it. Copy this to notepad, count the letters to the word and then delete and same with "</span> but its a bit slowly and difficult.. Have someone tip how to do it?
16. Allow right click copy on disabled input box

Hi, I have an input box which is disabled, and populates with a value after a button is pressed. I want to leave this box disabled after there is a value in it, but still allow the user to right click and copy the boxes contents, is this kind of thing possible somehow?
17. [SOLVED]Copy a file to clipboard

Hello Guys, I am trying to make a screenshoot copy it to clipboard and paste it into a word document i want to do that to simplify my procedures création. I am trying to use the way of sending Keys "^c" & "^v" i tryed also CTRLDOWN and c but no one of these is working. First question : Why that's not working? Is there anyother way i can work with ? I watched the help file for FileCopy but it s only moving Files and not copy them. Maybe you can see somthing going wrong in my script but i guess it s not a syntax problem. #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.2 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <ScreenCapture.au3> #include <MsgBoxConstants.au3> HotKeySet("{F2}", "Capture") HotKeySet("{F3}", "Windows") HotKeySet("{F4}", "Copy") Global $Numero = 0 Attendre () Capture() Func Capture() ; Capture full screen$Numero = $Numero+1 _ScreenCapture_Capture (@DesktopDir & "\ScreenCapture\Image"&$Numero&".jpg") ShellExecute( @DesktopDir &"\ScreenCapture\Image"&$Numero&".jpg") Sleep (500) Run("C:\WINDOWS\EXPLORER.EXE /Select, /n,/e," & @DesktopDir & "\ScreenCapture\Image"&$Numero&".jpg" ) WinWaitActive("ScreenCapture") Sleep(1500) Send("^c") ;~ Send ("{CTRLDOWN}") ;~ Sleep(10) ;~ Send ("C") ;~ Sleep(10) ;~ Send ("{CTRLUP}") EndFunc ;==>Example Func Windows () Global $Windows = WinGetTitle("[active]") MsgBox($MB_SYSTEMMODAL, "Windows", "Windows selected for copy is : "&@CRLF&$Windows) EndFunc Func Copy () WinActivate (""&$Windows) Sleep (100) Send("^v") ;~ Send ("{CTRLDOWN}") ;~ Sleep(10) ;~ Send ("V") ;~ Sleep(10) ;~ Send ("{CTRLUP}") EndFunc Func Attendre () While 1 Sleep (10) ;~ GUICreate ("Help",100,100) WEnd EndFunc

19. Incremental copy paste

Hello Autoit community I started using Autoit about 2 weeks ago and have found myself lost looking for information. Majority of the Help options are very easy to understand but I think that my general lack of knowledge about programming has slowed my progress. I tried very hard to not be that guy asking annoying questions on the forum but I’m afraid I’m out of options… The steps below are my attempt to explain my scenario Step 1: open excel file Step 2: Read range of Excel column “A1” – “A???”) The range of rows will vary from sheet to sheet. Step 3: take the values (one cell at a time) and place one value into my web browser ran program. Step 4: if that value has been added before (indicated by the PixelSearch) than delete (represented by the mouse click) and start the loop over moving onto the next cell. Step 5: if that value is new then submit the value (represented by the 2 mouse clicks at the end of the (if function) The code listed below is as far as I got. I hope this explanation will suffice and I look forward to any help I can get. (From WinActive(“Paste Too”) down is working as intended.)
20. Problem with FileCopy()

I'm writing a small program for creating a backup. I want to do that by using FileCopy. Everything from drive C should be copied to drive D. FileCopy("C:", "D:", $FC_OVERWRITE +$FC_CREATEPATH) That doesn't do anything, though. I played a bit with the paths, but nothing does what I want. Sometimes only the folder of the program itself is copied, sometimes nothing is copied. What am I doing wrong? What do I have to do that everything from C goes to D? Thanks! Backup.au3 Edit: DirCopy does pretty much the same
21. How do I save the copied text into a new file?

Hello, I would like to make a script like the below open the browser > copy the url in the browser's address bar > save it in a text file I have no clue on how to make this I'd appreciate for any help
22. Copy folder and file names and write them to a text file

Basically I'm looking to make a snapshot of a whole HD's folders and files in one text file. Just the names. Preferably in alphabetical order. Folder 1 File 1 File 2 File 3 Folder 2 Etc Is there a function that can copy just the names without opening the files? An alternative would be to put each into rename mode and then copy the text, but that is going to be painfully slow. Thanks.
23. Check if DirCopy has finished

#include <AutoItConstants.au3> #include <Misc.au3> #include <MsgBoxConstants.au3> #include <WinAPIFiles.au3> #include <FileConstants.au3> #include <Array.au3> Local $bFpExists = False Local$aDrives = DriveGetDrive($DT_REMOVABLE) ; usbs Local$sLockdown = "C:\Work\Lockdown.exe" Local $sPassword = "test" HotKeySet("+!x", "hiddenShortcut") ; Shift-Alt-x While 1 Sleep(3000) searchForDrives() WEnd Func startApplicationConstantly() Local$barfExe = Run("C:\Work\test\test\test01.exe") EndFunc Func searchForDrives() Local $hTimer = TimerInit() Local$iRows = UBound($aDrives,$UBOUND_ROWS) ; Total number of rows. ConsoleWrite("Number of Rows " & $iRows & @CRLF) If @error Then startApplicationConstantly() Else If ($iRows > 0) Then For $i = 1 To$aDrives[0] Local $aUniqueFolderData = StringUpper($aDrives[$i]) & "\test_update" ConsoleWrite(StringUpper($aDrives[$i]) & "Drive " &$i & "/" & $aDrives[0] & @CRLF) ConsoleWrite($aDrives[$i] & @CRLF) If FileExists($aUniqueFolderData) Then DirCopy($aUniqueFolderData & "\videos\", "C:\Work\test\test01\videos",$FC_OVERWRITE) FileCopy($aUniqueFolderData & "\test01.swf", "C:\Work\test\test01",$FC_OVERWRITE) startApplicationConstantly() ExitLoop Else ConsoleWrite("no usb " & @CRLF) EndIf Next EndIf EndIf EndFuncBETTER EXPLANATION: So my program shall start an video.exe once files from the usb device are copied. The program keeps looping (While loop at the start of the script), so that I can plug off and plug in usb devices for future copy processes. Problem now is to somehow check if the first copy process has been successfully finished. If it has finished the copy loop shall finish as well. Then the user will plug off the usb device, once a new usb device has been plugged in the copy process shall start again and so on...
24. Start explorer with specific driver

How can I open a specific driver with Autoit, in my case I have an usb which has the driver letter of f.
25. 2d to 2d

Hi all, I need a hint. I'm not an adept coder by any means. I have a 2d array, and I want to copy records from the array to another 2d array. So for example, I can check strings inside the array and match them, and then write the whole row from the array to another array. So for array: Global $DeviceLocationList[1][4] I already can parse through it and check against an entry in a column, so I know the row number, but I can't figure out how to copy the entire row to a new entry in a different array in the same For loop. I am using __arrayadd for 2d arrays as downloaded from the forums to build the array. Below is a snippet where I build a 2d array, for example I would parse through that an might want to copy the record to another location. Apparently I'm too thick to understand how to read the entire row and pass it to a new array. :-( I'm looking at this page and still scratching my head -> '?do=embed' frameborder='0' data-embedContent>> (I use the below to get NIC card infos and then do <stuff> to them.) Func _GetNICHWKey($PNPFilter, $ENUMKey) For$i = 1 To 65535 $TopKey = RegEnumKey("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\" &$ENUMKey, $i) For$j = 1 To 65535 $SubKey = RegEnumKey("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\" &$ENUMKey & $TopKey,$j) If StringInStr($SubKey,$PNPFilter) Then For $k = 1 To 65535$DeviceKey = RegEnumKey("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\" & $ENUMKey &$TopKey & "\" & $SubKey,$k) $DeviceSubKey = "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\" &$ENUMKey & $TopKey & "\" &$SubKey & "\" & $DeviceKey If$DeviceKey = "" Then ExitLoop $DevName1 = RegRead($DeviceSubKey, "DeviceDesc") $DevName2 = StringSplit($DevName1, ";") $DevNameLoc =$DevName2[0] $NICENUMDevDesc =$DevName2[$DevNameLoc]$NICENUMDevLoc = RegRead($DeviceSubKey, "LocationInformation")$DevLoc1 = StringSplit($NICENUMDevLoc, ";")$DevLoc2 = $DevLoc1[0]$DevLoc3 = $DevLoc1[$DevLoc2] $DevLoc =$DevLoc3 Local $DEVLocadd[4] = [$NICENUMDevDesc, $DevLoc, "",$DeviceKey] __ArrayAdd($DeviceLocationList,$DEVLocadd, False) If @error <> 0 Then ExitLoop Next EndIf If $SubKey = "" Then ExitLoop If @error <> 0 Then ExitLoop Next If$TopKey = "" Then ExitLoop If @error <> 0 Then ExitLoop Next $DeviceLocationList[0][0] = UBound($DeviceLocationList) _ArraySort($DeviceLocationList, 0, 1, 0, 1); we sort the list of devices according to the index numbers, they end up in order of PCIbus, device, then port For$i = 1 To $DeviceLocationList[0][0] - 1 ; now we reference the location and deduce/insert the port number to position nr 2 by the ranking$DeviceLocationList[$i][2] =$i Next EndFunc ;==>_GetNICHWKey This is the __arrayadd function used to build the array. ; #FUNCTION# ==================================================================================================================== ; Name...........: __ArrayAdd ; Description ...: Adds a specified value or row at the end of an existing 1D or 2D array. ; Syntax.........: __ArrayAdd(ByRef $avArray,$vValue [, $NestArray = True]) ; Parameters ....:$avArray - Array to modify ByRef ; $vValue - Value to add, can be a 1D array if$avArray = 2D and $NestArray = False ;$NestArray - Optional flag if False causes array passed as $vValue to be interpreted as a 1D array ; of values to place in a single new row of a 2D array. Default = True, saves array as ; a single element. This flag is ignored if$avArray is 1D or $vValue is not an array. ; Return values .: Success - Index of last added item ; Failure - -1, sets @error to 1, and sets @extended to specify failure (see code below) ; Author ........: Jos van der Zande <jdeb at autoitscript dot com> ; Modified.......: Ultima - code cleanup ; ; PsaltyDS - Array and 2D$vValue inputs added ; Remarks .......: Each call to this function adds exactly one new row to $avArray. To add more rows use _ArrayConcatenate. ; Related .......: _ArrayConcatenate, _ArrayDelete, _ArrayInsert, _ArrayPop, _ArrayPush ; Link ..........; ; Example .......; Yes ; ================================================================================================================================= Func __ArrayAdd(ByRef$avArray, $vValue,$NestArray = True) Local $iBoundArray0,$iBoundArray1, $iBoundArray2,$iBoundValue1 If IsArray($avArray) = 0 Then Return SetError(1, 0, -1);$avArray is not an array $iBoundArray0 = UBound($avArray, 0); No. of dimesions in array If $iBoundArray0 > 2 Then Return SetError(1, 1, -1);$avArray is more than 2D $iBoundArray1 = UBound($avArray, 1); Size of array in first dimension If $iBoundArray0 = 2 Then$iBoundArray2 = UBound($avArray, 2); Size of array in second dimension If ($iBoundArray0 = 1) Or (IsArray($vValue) = 0) Or$NestArray Then ; If input array is 1D, or $vValue is not an array, or$NestArray = True (default) then save $vValue literally If$iBoundArray0 = 1 Then ; Add to 1D array ReDim $avArray[$iBoundArray1 + 1] $avArray[$iBoundArray1] = $vValue Else ; Add to 2D array at [n][0] ReDim$avArray[$iBoundArray1 + 1][$iBoundArray2] $avArray[$iBoundArray1][0] = $vValue EndIf Else ; If input array is 2D, and$vValue is an array, and $NestArray = False, ; then$vValue is a 1D array of values to add as a new row. If UBound($vValue, 0) <> 1 Then Return SetError(1, 2, -1);$vValue array is not 1D $iBoundValue1 = UBound($vValue, 1) If $iBoundArray2 <$iBoundValue1 Then Return SetError(1, 3, -1); $vValue array has too many elements ReDim$avArray[$iBoundArray1 + 1][$iBoundArray2] For $n = 0 To$iBoundValue1 - 1 $avArray[$iBoundArray1][$n] =$vValue[$n] Next EndIf ; Return index of new last row in$avArray Return \$iBoundArray1
×
×
• Create New...