Windows

Sign in to follow this  
Followers 0

14 files

  1. I encourted a problem with FilePath Length ( > 260 chars)
    https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx
     
    As a solution I try to use Windows "subst" command:
    And I make a wrraper UDF for this.
    Here is example how to use:
    #include <AutoItConstants.au3> #include <FileConstants.au3> #include <MsgBoxConstants.au3> #include "SubstWrapper.au3" _Subst_Example1() ;~ _Subst_Example2() Func _Subst_Example1() _Subst_SetCallback(ConsoleWrite) ; Generate LONG FILE NAME Local $sFileName = '' For $i = 1 To 25 $sFileName &= '1234567890' Next $sFileName = $sFileName & '.au3' Local $sDestDir = StringLeft(@WindowsDir, 1) & ':\Subst_testing' ; usually C:\Subst_testing Local $sDest = $sDestDir & '\' & $sFileName MsgBox($MB_OK, _ StringLen($sFileName) & ' ' & StringLen($sDest), _ FileCopy(@ScriptFullPath, $sDest, $FC_CREATEPATH + $FC_OVERWRITE) _ ) ; Of course according to: https://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx ; To specify an extended-length path, use the "\\?\" prefix. For example, "\\?\D:\very long path". ; ; I could use ; FileCopy(@ScriptFullPath, "\\?\" & $sDest, $FC_CREATEPATH + $FC_OVERWRITE) ; ; but for showing how SubstWrapper.au3 works I will not add "\\?\" prefix Local $sDrive = 'r' $sDest = $sDrive & ':\' & $sFileName DirCreate($sDestDir) ; Associates a path with a drive letter. _Subst_Add($sDrive, $sDestDir) If @error Then MsgBox($MB_ICONERROR, '_Subst_Add', '@error = ' & @error & @CRLF & '@extended = ' & @extended) ShellExecute($sDrive & ':') MsgBox($MB_OK, _ StringLen($sFileName) & ' ' & StringLen($sDest), _ FileCopy(@ScriptFullPath, $sDest, $FC_OVERWRITE) _ ) MsgBox($MB_OK, 'Waiting', _ 'Check the content of ' & $sDrive & ':' & @CRLF & _ 'When you Click "OK" button the ' & $sDrive & ': will be Deleted ' & @CRLF & _ 'REMARK: Content should be save - not deleted' _ ) ; Deletes a substituted (virtual) drive. _Subst_Del($sDrive) If @error Then MsgBox($MB_ICONERROR, '_Subst_Del', '@error = ' & @error & @CRLF & '@extended = ' & @extended) EndFunc ;==>_Subst_Example1 Func _Subst_Example2() _Subst_SetCallback(ConsoleWrite) ; set drive letter with out colon and backspace Local $sDrive = 's' ; Associates a path with a drive letter. _Subst_Add($sDrive, @WorkingDir) If @error Then MsgBox($MB_ICONERROR, '_Subst_Add', '@error = ' & @error & @CRLF & '@extended = ' & @extended) ; list of current virtual drives Local $aResult_outer = _Subst_ListToArray() If @error Then MsgBox($MB_ICONERROR, '_Subst_List', '@error = ' & @error & @CRLF & '@extended = ' & @extended) Local $aResult_inner For $iOuter_idx = 0 To UBound($aResult_outer) - 1 $aResult_inner = $aResult_outer[$iOuter_idx] _ArrayDisplay($aResult_inner, '$aResult_inner[' & $iOuter_idx & ']') Next ShellExecute($sDrive & ':') MsgBox($MB_OK, 'Waiting', _ 'Check the content of ' & $sDrive & ':' & @CRLF & _ 'When you Click "OK" button the ' & $sDrive & ': will be Deleted ' & @CRLF & _ 'REMARK: Content should be save - not deleted' _ ) ; Deletes a substituted (virtual) drive. _Subst_Del($sDrive) If @error Then MsgBox($MB_ICONERROR, '_Subst_Del', '@error = ' & @error & @CRLF & '@extended = ' & @extended) ; list of current virtual drives _Subst_List() If @error Then MsgBox($MB_ICONERROR, '_Subst_List', '@error = ' & @error & @CRLF & '@extended = ' & @extended) EndFunc ;==>_Subst_Example2  
    SUPPORT TOPIC IS HERE.
     

    22 downloads

       (0 reviews)

    0 comments

    Updated

  2. Did this because i needed, retrieves a list of adapters from the registry, shows you your current Mac Address of the adapter in use, the user simply changes the second input field to the address he wants, then select the adapter on the list, and click 'set', after a reboot, the mac should be changed.
    (The field to input the mac to set accepts '-' ':' or no separation character. ex: AA:BB:CC... or AA-BB-CC... or AABBCC...)

    459 downloads

       (1 review)

    1 comment

    Updated

  3. Autoit Airliners.net wallpaper changer Works from XP to W10

    82 downloads

       (0 reviews)

    0 comments

    Updated

  4. A collection of image filter effects usable with AutoIt!
     
    IMPORTANT: You are not allowed to sell this code or just parts of it in a commercial project or modify it and distribute it with a different name!
    Distributing copies of this UDF incl. _GDIPlus_BitmapApplyFilter.dll in compiled format (exe) must be free of any fee!
     
    More information can be found in the forum thread!
     

    130 downloads

       (0 reviews)

    0 comments

    Updated

  5. Function for enabling Aero-like blur effect in Windows 10.

    164 downloads

       (0 reviews)

    0 comments

    Updated

  6. Some Graphical Examples using GDI+ Vol. II (33 examples)
     
    This is the continuation of "Some Graphical Examples using GDI+ Vol. I".
     
    Have fun.

    274 downloads

       (2 reviews)

    3 comments

    Updated

  7. A little animated Screensaver based on FavIcons

    139 downloads

       (0 reviews)

    0 comments

    Updated

  8. Simple snowfall using GDI+ & ASM.
    Thanks to Eukalyptus for the ASM codes. 
     
    If the script runs too slow reduce the amount of flakes in line 48.
     
    For more information please visit the forum thread.
     
    Happy snowing.

    171 downloads

       (0 reviews)

    0 comments

    Updated

  9. This is a simple example of distorting GDI+ Paths using other Paths, instead of using Matrix objects.
    A PDF file explaining the process is included.

    66 downloads

       (0 reviews)

    0 comments

    Updated

  10. A simple firework for New Year's Eve with sound fx build 2016-01-08.
     

    84 downloads

       (0 reviews)

    0 comments

    Updated

  11. Introduction
    Since the introduction of ObjCreateInterface, AutoIt is able to create native, real objects. However, this is quite difficult for non-experienced users. This UDF here enables a "classic" syntax for declaring classes and instantiating objects from them. Before you ask: No, it is not just another preprocessor that's "faking" OOP syntax - this is the real deal. While it assists users with a more familiar syntax, objects are created at runtime.
    Care has been put into this UDF and it is in the authors interest to fix all bugs remaining and implement features as long as the result works in the Stable release of AutoIt.
    Features
    Define an unlimited number of classes. Classes can be defined in other includes of the script. Create unlimited instances of objects. Create arrays of objects. Mix and match different data types in arrays (one or more elements can be objects). Define custom constructors and destructors. Pass an unlimited number of arguments to the constructor (even to all objects in one array at the same time). Automatic garbage collection. Compatible with Object-enabled AutoIt keywords (With etc.), optional parentheses on parameterless functions. Fully AU3Check enabled. IntelliSense catches class-names for auto-completion. Automatically generates a compilable version of the script. Non-instantated classes get optimzed away. Read the tutorial.

    161 downloads

       (0 reviews)

    0 comments

    Updated

  12. Utter is simply a UDF created for the maximum utilization of SAPI (Speech Recognition API) in windows you can add your own words to be recognized by the computer you can set speed,picth and select the voice you want by speech synthesis included in windows.Utter can create a free grammar recognition engine as well as custom made grammar recognition engine suiting according to your need also it is flexible.The shutdown function of the UDF must be called before calling another one to destroy the current engine running when autoit closes the engine will also close many functionalities are included an update will be soon in future

    380 downloads

       (1 review)

    0 comments

    Updated

  13. Transpond UDF helps in making complied scripts communicate with each other it has basic functions which are easy to use.you can send data to other windows as well as recieve them directly.you can help scripts share there data via transpond Udf.
    Features:
             *   Compressed zip with examples
             *   Reading data and sending data to windows
             *   Calling functions when data is available to read 
     
    TRANSPOND UDF IS NOT AVAILABLE AND REMOVED DUE TO COMPLAINTS DOWNLOAD IT BY GOOGLING..

    291 downloads

       (0 reviews)

    0 comments

    Updated

  14. fixed error 1061

    2,107 downloads

       (0 reviews)

    0 comments

    Submitted

Sign in to follow this  
Followers 0