Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/21/2017 in all areas

  1. So $sServer was incorrect so have now updated it, I only used the other _FileCopy function so you could see if it was hanging during the copy. Here is your original code without the unnecessary code, like WinWait etc.. #include <MsgBoxConstants.au3> #include <File.au3> #include <Array.au3> #include <FileConstants.au3> CopyFile() Func copyfile() Local $sLogFile = FileOpen(@ScriptDir & "\CopyMSI.log", 1) Local $BuildArtifacts = "\\vm-build\BuildArtifacts" Local $dServer = "\\VM-DEV\c$\Users\Administrator\Desktop" _FileWriteLog($sLogFile, "Opened Builds folder") Local $FolderList = _FileListToArrayRec($BuildArtifacts, "Grand-4.*", 2, 0, 1, 2) _ArrayDisplay($FolderList) Local $sServer = $FolderList[$FolderList[0]] & '\G4.msi' ConsoleWrite('Source: ' & $sServer & @CRLF & 'Destination: ' & $dServer & @CRLF) FileCopy($sServer, $dServer, $FC_OVERWRITE) _FileWriteLog($sLogFile, "Copied MSI") EndFunc
    1 point
  2. Well I finally got some time free to do a bit more work on this project. Files at first post, were removed and updated. INI files no longer required, as they get created as they are needed during the order of Examples. I have rewritten some of it, and finished a few more functions, added one or two, plus pretty much rewritten all the Examples. I've also been a good boy, and added in lots of short comments. Current status is as follows. FUNCTIONS _Ini_AddUpdate($ini_virtual, $section, $key, $value = "") _Ini_Close($ini_virtual) _Ini_Create($section, $key, $value = "") _Ini_Inform($ini_virtual, $show = "") _Ini_Open($ini_fle) _Ini_Read($ini_virtual, $section, $key = "", $report = "") _Ini_Remove($ini_virtual, $section, $key = "") _Ini_Rename($ini_virtual, $section, $new, $key = "") _Ini_Save($ini_virtual, $ini_fle) _Ini_Show($ini_virtual, $section = "") _Ini_WriteSection($ini_virtual, $data, $section, $replace = 0) NOT YET FULLY IMPLEMENTED _Ini_Test($ini_virtual, $section, $key, $value, $new, $job) NOT YET IMPLEMENTED _Ini_CopySection($ini_virtual, $section, $newsect) _Ini_Sections($ini_virtual) _Ini_Log (maybe)
    1 point
  3. If you set GUICtrlSetResizing correctly, then the label should also move in the position you want. Well there are a lot of requests at the moment like Scrollbars,Sliders etc. and I don't know which will work or not. Everything that goes beyond simple clicking like buttons, checkboxes etc. require a lot of workarounds in the background which in return create problems with big projects.. There will be new features, but I don't know when I will have the time to work on it again.
    1 point
  4. [NEW VERSION] - 16 Feb 17 Added: Ability to use a user-defined sort function in place of the standard _ArraySort when sorting columns - see _GUIListViewEx_UserSort. Changed: More edit modes possible - now can have standard text, numeric values with an UpDown control, a combo (either editable or read-only), a date picker, or if all these are not enough a user-defined function. See the _SetEditStatus function header to see how these are set. More options added to the _LoadHdrData function - but the size of the default array the function expects has increased as explained in the function header. Detecting the various events within the ListView has become easier with the introduction of the _EventMonitor function. This is placed in the idle loop and allows the user to detect edit, drag/drop and sort events which may need action. Additionally the function checks for redrawing events (very important if the ListViews are coloured) and shows any tooltips initiated by the UDF. Check out the examples to see how you need to structure the function and interpret its returns. The Guide file has been rewritten to explain all the new and amended functionalities - please take a moment to read through it as amending old scripts is not difficult but does require an understanding of what to change and how to change it. New UDF, examples and Guide file in the zip in the first post. M23
    1 point
  5. Trolleule

    AutoItObject UDF

    For those who were trying to display an array with _ArrayDisplay(): $cPrivacy_sum.Details = $aSummaryDetails ; simply do _ArrayDisplay(($cPrivacy_sum.Details))
    1 point
×
×
  • Create New...