
DarkwarlorD
Active Members-
Posts
37 -
Joined
-
Last visited
Content Type
Forums
Downloads
Forum Articles
Events
Everything posted by DarkwarlorD
-
how to create sample builder and stub
DarkwarlorD replied to sisio's topic in AutoIt General Help and Support
Morning, In a early version of AutoIt there are a tool called CodeWizard ... I don't know if the current installation of AutoIt ships the tool. -
[Solved] returning data from compiled script
DarkwarlorD replied to Simpel's topic in AutoIt General Help and Support
Hello, @Simpel Take a look here: -
FileCopy works only with overwrite ? [SOLVED]
DarkwarlorD replied to satanico64's topic in AutoIt General Help and Support
Morning, @satanico64 ... I don't know if you have subfolders or the type of image you have, but you can try something like this: $remote = "C:\Remote" ; Your Remote Folder $local = "C:\Temp" ; Your Local Folder $ext = "*.gif" $array = _FileListToArray($remote, $ext, $FLTA_FILES) $count = 0 For $i = 1 To $array[0] $result = FileCopy($remote & "\" & $array[$i], $local) If $result = 1 Then $count +=1 Next MsgBox(0, "Files Copy", "Total Copied: " & $count &" Files")Works for me, your just need to adjust if you have subfolders or multiple extensions (see _FileListToArrayRec) -
Man, your work is incredible! You really improved the original
-
@climmax As an option, instead looking for the lenght of the name, try to add some symbol before the timestamp (can be configured on the ini), then just check if the symbol exist (with StringInStr or RegEx) to don't rename again. About the two files don't be renamed, try to look if they have diferent timestamp, as @jguinch said.
-
Get number of occurrences in Array
DarkwarlorD replied to noob62's topic in AutoIt General Help and Support
Hi @noob62 ... Try This: #include <Array.au3> Local $i = 0 Local $row Local $aArray[12][2] = [["Computer 1", "192.168.1.1"], _ ["Computer 2", "192.168.1.2"], _ ["Computer 1", "192.168.1.3"], _ ["Computer 3", "192.168.1.4"], _ ["Computer 3", "192.168.1.5"], _ ["Computer 1", "192.168.1.6"], _ ["Computer 1", "192.168.1.7"], _ ["Computer 4", "192.168.1.8"], _ ["Computer 5", "192.168.1.9"], _ ["Computer 6", "192.168.1.10"], _ ["Computer 7", "192.168.1.11"], _ ["Computer 1", "192.168.1.12"]] Local $aResult = _ArrayFindAll($aArray, "Computer 1") For $i = 0 To UBound($aResult) -1 FileWrite("C:\output.txt", $aResult[$i]& "," & @CRLF) Next FileWrite("C:\output.txt", "Number of Ocorrences: " & $i & @CRLF) -
A simple utility for pasting include files
DarkwarlorD replied to kcvinu's topic in AutoIt Example Scripts
Morning ... As a suggestion you can add support to Portable installations of AutoIt ... I use a portable version and your script doesn't work for me But the idea is great, keep going -
Great work, @valdemar1977 Just to make more clear we can put some extra variables to be showed on DBUG ... I did a little modification just to test and seems good ... take a look: #include <DBUG.au3> HotKeySet("{ESC}", "Close") Main() Func Main() ProgressOn("DBUG Test", "Testing the AutoIt DBUG", "Counting") For $i = 0 To 10 $prog = $i * 10 $last = 10 - $i ProgressSet($prog, $last & " to 10") Sleep(500) Next #Region STOP DBUG ProgressSet(100, "DONE", "Test Finished") Sleep(200) ProgressOff() #Region START DBUG EndFunc Func Close() Exit 0 EndFunc ;==>Close Just 2 new vars to be checked on Debugger And I'm glad you have used my code
-
Morning, Guys @valdemar1977, you are the best ... Now it's work really GREAT Thanks for the assistance, this will help me A LOT
-
Morning, @valdemar1977 This is my code: #include <dbug.au3> HotKeySet("{ESC}", "Close") Main() Func Main() ProgressOn("DBUG Test", "Testing the AutoIt DBUG", "Counting") For $i = 0 To 10 ProgressSet($i * 10, 10 - $i & " to 10") Sleep(500) Next ProgressSet(100, "DONE", "Test Finished") Sleep(200) ProgressOff() EndFunc Func Close() Exit 0 EndFuncwhen i run I get this >"I:\LiberKey\MyApps\autoit-v3\SciTe\..\AutoIt3.exe" /ErrorStdOut "I:\LiberKey\MyApps\autoit-v3\Projects\teste.au3" >DBUG started with 0 arguments [PID:0]. --> Press F6 for activate DBUG window, Ctrl+Q for exit. >Exit code: 0 Time: 1.173 I don't use wrapper anymore, and when I compile I use pragma directive. I downloaded your last version before write this topic, and still don't work. Sorry, probably I'm doing something wrong but I don't know what. Thanks for the support My System Specification: AutoIt Version: V3.3.14.1 [X32] Windows Version: WIN_XP [Portuguese] Language: 0416
-
Problem with _ArrayUnique
DarkwarlorD replied to DarkwarlorD's topic in AutoIt General Help and Support
Thanks, guys I did the correction sugested by @Iczer and works! Thanks -
Hi, guys I'm doing a little research in Array and found a very useful function: _ArrayUnique. But I'm having problems while trying to use. Here is my code, i get directly from the Help File #include <Array.au3> Local $aArray[6][2] = [[1, "A"], [2, "B"], [3, "C"], [1, "A"], [2, "B"], [3, "C"]] _ArrayDisplay($aArray, "2D array") ; Display the current array. Local $aArrayUnique = _ArrayUnique($aArray) ; Use default parameters to create a unique array of the first column. _ArrayDisplay($aArrayUnique, "$aArray first column") ; Display the unique array. $aArrayUnique = _ArrayUnique($aArray, 1) ; Create a unique array of the second column. _ArrayDisplay($aArrayUnique, "$aArray second column") ; Display the unique array. But when I run, i got this: >"I:\LiberKey\MyApps\autoit-v3\SciTe\..\AutoIt3.exe" /ErrorStdOut "I:\LiberKey\MyApps\autoit-v3\Projects\teste.au3" "I:\LiberKey\MyApps\autoit-v3\Include\Array.au3" (2297) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: If IsInt($aArray[$iBase]) Then If IsInt(^ ERROR >Exit code: 1 Time: 1.749 I use a portable version of AutoIt. Below has some System Specifications: AutoIt Version: V3.3.14.1 [X32] Windows Version: WIN_XP [Portuguese] Language: 0416 Someone can help me? (And sorry for my bad english)
-
I don't know what I'm doing wrong but I can't make it work. I put the Dbug.au3 on my Include folder, and the images in 2 different paths ... at the same level then Include folder and inside include folder. I made a test script and put on top the required #include <dbug.au3> and when I run I got the shadow file, but none GUI. When I run the DbugScript.au3 it runs until be removed. Anyone had this problem or know how I can fix. I'm using Autoit 3.3.14.1 and last release of Dbug (10.08.15)
-
How can I read side by side under the other
DarkwarlorD replied to mertdnz's topic in AutoIt General Help and Support
Try to use the function _HexToString($sHex) in the String.au3 I copied that from AutoIt Help #include <MsgBoxConstants.au3> #include <String.au3> Local $sString = "This is a sample string" Local $sHex = _StringToHex($sString) ; Convert the string to a hex string. MsgBox($MB_SYSTEMMODAL, "", "Original String: " & $sString & @CRLF & " Hex: " & $sHex) $sString = _HexToString($sHex) ; Convert the hex string back to the original string. MsgBox($MB_SYSTEMMODAL, "", "Original Hex: " & $sHex & @CRLF & "String: " & $sString) -
AutoIt Eye Clock v1.3.1 build 2015-06-28
DarkwarlorD replied to UEZ's topic in AutoIt Example Scripts
This Clock is really nice .... I'm thinking in use it on my computer Thanks, @UEZ -
Did you tried the DirCopy function? ;~ Function DirCopy("source dir", "dest dir" [, flag = 0]) DirCopy($sDrive & "\ArcGIS\Desktop\DNRGPS", @HomeDrive)
-
Smtp Mailer That Supports Html And Attachments.
DarkwarlorD replied to Jos's topic in AutoIt Example Scripts
Worked GREAT! Thanks, man! AutoIt Rules -
Smtp Mailer That Supports Html And Attachments.
DarkwarlorD replied to Jos's topic in AutoIt Example Scripts
I have a little issue ... When i tried to compile, i got the error: error: missing separator character before keyword. $objEmail.To ~~~~~~~~~~^I'm using AutoIt version 3.3.12.0 Anyone got this problem too? How I Fix? Thanks for the attention -
case 16 return "Você fez algo que não deveria" case 16 return "Você não pode se beneficiar de código roubado. A culpa corroerá sua mente. Não faça maldades por diversão. Solucione" case 16 return "Por favor me perdoe e deixe-me fazer a coisa certa" case 16 return "Deixe-me cometer o crime" pt-BR I hope that help you
-
Next time try to follow the examples. ; Write a REG_DWORD value RegWrite("HKEY_CURRENT_USER\Software\Policies\Microsoft\MMC\FX:{b05566ac-fe9c-4368-be02-7a4cbb7cbe11}", "Restrict_Run", "REG_DWORD", "00000001")
-
IniRead() Not Finding Values
DarkwarlorD replied to jdillig's topic in AutoIt General Help and Support
Good evening. I Tried your script with a few modifications ... take a look: $Lab_LDConfig_Descript = IniRead(@ScriptDir & "\LDConfig.ini", "Lab Description", "Description", "ERROR") if $Lab_LDConfig_Descript = "ERROR" Then MsgBox(0, "Error!", "Iniread returned ERROR!") Else MsgBox(0, "Success!", "Iniread returned " & $Lab_LDConfig_Descript) EndIf For me worked fine, but I changed both the path and the default value returned by IniRead. Try change or verifying the path of ini file -
Need little help with copy folder to folder
DarkwarlorD replied to Borje's topic in AutoIt General Help and Support
@Borje, you can try this: $fileSrc = FileSelectFolder("Select the Source folder", "C:\") $fileDst = FileSelectFolder("Select the Destination folder", "C:\") If FileCopy($fileSrc, $fileDst) Then MsgBox(0, "Success", "Files Copied with SUCCESS!" & @CRLF & "No files overwrited") Else MsgBox(0, "Failure", "Something wrong happened!") EndIf Tell me if works to you, for me it's working And if you need to copy Directory and sub-directories, use DirCopy instead FileCopy -
Thank you, guys, for answer so fast I will try those sugested by @AZJIO ...
-
Thank you @Danyfirex but what I wanna say is if there id a way to get the info from UDF Header to make a Help File ... Just like Javadoc do.