Jump to content

Trying to compile some old code...    AutoItSetOption("MustDeclareVars", 0) acting like 1


sshrum
 Share

Recommended Posts

Why is AutoIT treating this:

    AutoItSetOption("MustDeclareVars", 0)

...as if it was...

    AutoItSetOption("MustDeclareVars", 1)

???

I know that "0" is the default and if I REM out the line everything works as if the 0 line was there.  I just like making sure if defaults change my code continues to work the way I set it up.

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
Share on other sites

:offtopic: @sshrum URL in you signature is showing 404 error. Would you update this link ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST APIErrorLog.au3 UDF - A logging Library * Include Dependency Tree (Tool for analyzing script relations) * Show_Macro_Values.au3 *

 

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * ADO.au3 UDF SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Good coding practices in AutoIt * 

OpenOffice/LibreOffice/XLS Related: WriterDemo.au3 * XLS/MDB from scratch with ADOX

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * IE in TaskSchedulerIE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) * PDF Related:How to get reference to PDF object embeded in IE * IE on Windows 11

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

I also encourage you to check awesome @trancexx code:  * Create COM objects from modules without any demand on user to register anything. * Another COM object registering stuffOnHungApp handlerAvoid "AutoIt Error" message box in unknown errors  * HTML editor

winhttp.au3 related : * https://www.autoitscript.com/forum/topic/206771-winhttpau3-download-problem-youre-speaking-plain-http-to-an-ssl-enabled-server-port/

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2023-04-24

Link to comment
Share on other sites

Pulled up some out code I had, just making a 1 line move to redefined a different tray default.  Went to compile and was hit in the face with all the undeclared error msgs in the compile.  Thought that was odd as I had MustDeclareVars off.  First thing I tried was to rem out the MustDeclareVars line and recompile.  All worked fine.

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
Share on other sites

  • Developers

Just guessing but hoped you would show something more specific: Guess the shown errors are au3check errors as autoit3 doesn't do anything when compiling?

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=icons\key_bindings.ico
#AutoIt3Wrapper_outfile=hotrkeyz.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

; ================================================================================================================
; SCRIPT VERSION (looked for by UpdateCheck() to check for new versions)

$sAppVersion = "1.03"

; ================================================================================================================
; LANGUAGE OPTIONS

Opt("TrayMenuMode",1)
;;;Opt("OnExitFunc", "_Exit")
;;;AutoItSetOption("MustDeclareVars", 0)

; ================================================================================================================
; INCLUDES (update as needed)

#include <Array.au3> ; _ArraySort()
#Include <Constants.au3> ;
#include <Debug.au3> ; _DebugSetup(), _DebugOut()
#include <INet.au3> ; _InetGetSource()

; ================================================================================================================
; DUPLICATE INSTANCE CHECK (may need to remove or move this around depending on where it is needed)

If UBound(ProcessList(@ScriptName)) > 2 Then Exit

; ================================================================================================================
; VARIABLE DECLARATIONS / DEFAULTS

Global $bDebug = False, $bVerbose

; ================================================================================================================
; SCRIPT IDENTITY (this is based on the filename of the script/executable)

$sAppName = stringupper(stringleft(@scriptname,1)) & StringTrimLeft(stringtrimright(@scriptname,4),1)
$sAppAuthor = "Sean Shrum"
$sAppEmail = StringLower($sAppName)& "@shrum.net"
$sAppHome = "http://www.shrum.net/sean/code/" & StringLower($sAppName)
$sAppNews = "http://www.shrum.net/cats.php?search=" & StringLower($sAppName) & "&dir=/updates"
;;;$sAppDonate = "a href="/cats.php?dir=/sean/code&body=./donations.shtml"
$sAppFileType ="." & StringLower($sAppName)
$aAppBuild = FileGetTime(@ScriptFullPath)
$sAppBuild = $aAppBuild[0] & "." & $aAppBuild[1] & "." & $aAppBuild[2] & " @ " & $aAppBuild[3] & ":" & $aAppBuild[4] & ":" & $aAppBuild[5]
$sAppTitle = $sAppName & " v." & $sAppVersion
$sAppRegSettings = "HKCU\software\shrum.net\" & $sAppName
$sAppINISettings = @scriptdir & "\" & StringLower($sAppName) & ".ini"

; ================================================================================================================
; TRAY ICON AND TOOLTIP SET (looks for <appname>.ico in same folder as <appname>.exe otherwise uses the build icon)

TraySetToolTip($sAppTitle)
TraySetIcon($sAppName & ".ico")

; ================================================================================================================
; SPLASH SCREEN / TRAYTIP BUBBLE (*only* if no command line params are present: automated run/batch call)

if $CmdLine[0] = 0 Then Traytip($sAppTitle,$sAppHome & @CRLF & "By " & $sAppAuthor & " :: " & $sAppEmail,5)

; ================================================================================================================
; PROGRAM GROUP / SHORTCUTS CREATION (fires only when Executed reg value = "" from above)

$iRunCount = RegRead($sAppRegSettings, "Executed")
If $iRunCount = "" Then
    DirCreate(@ProgramsCommonDir & "\shrum.net\" & $sAppName)
    FileCreateShortcut(@ScriptFullPath, @ProgramsCommonDir & "\shrum.net\" & $sAppName & "\" & $sAppName & ".lnk")
    FileCreateShortcut($sAppHome, @ProgramsCommonDir & "\shrum.net\" & $sAppName & "\Homepage.lnk")
    FileCreateShortcut($sAppDonate, @ProgramsCommonDir & "\shrum.net\Donate.lnk")
    FileCreateShortcut(@ScriptFullPath, @UserProfileDir & "\application data\microsoft\Internet Explorer\Quick Launch\" & $sAppName & ".lnk")
EndIf

; ================================================================================================================
; REGISTRY UPDATES (location, version, runcount)

RegWrite($sAppRegSettings, "Executed", "REG_SZ", $iRunCount + 1)
RegWrite($sAppRegSettings, "", "REG_SZ", @Scriptdir)
RegWrite($sAppRegSettings, "Version", "REG_SZ", $sAppVersion)

; ================================================================================================================
; SYSTRAY MENU DEFINITIONS (if any)

TrayCreateItem ("[ Settings ]")
$mCombos = TrayCreateItem ("...Combos")
TrayItemSetState (-1, $TRAY_DEFAULT)
$mReload = TrayCreateItem ("...Reload")
TrayCreateItem ("")
TrayCreateItem ("[ Project ]")
$mAbout = TrayCreateItem ("...About")
$mUpdate = TrayCreateItem ("...Update")
$mDebug = TrayCreateItem ("...Debug")
$mHomepage = TrayCreateItem ("...Homepage")
$mNews = TrayCreateItem ("...News")
$mSupport = TrayCreateItem ("...Support")
;;;$mDonate = TrayCreateItem ("...Donate")
$mExit = TrayCreateItem ("...Exit")
TraySetState ()
TraySetClick (16)

; ================================================================================================================
; LAST RUN SETTINGS LOAD

; N/A

; ================================================================================================================
; COMMAND-LINE / <appname>.INI EVALUATION

; N/A

; ================================================================================================================
; ARGUMENT CHECKS / PROMPTS

; N/A

; ================================================================================================================
; DEBUG WINDOW (notepad; if requested)

if $bDebug then _DebugSetup()

; ================================================================================================================
; SETTINGS SAVE (all user passed params should be formatted to program-desired formats by this point)

; N/A

; ================================================================================================================
; MAIN PROGRAM

if _GetCombosDir() = "" then _SetCombosDir()

_CombosDirReadSet()

while 1
    _MenuMonitor()
WEnd

; ================================================================================================================
; FUNCTIONS

Func _AboutDialog()
    _ConsoleWrite("+ _AboutDialog()")
    msgbox(0,"About", $sAppTitle & " ( build " & $sAppBuild & " ) by " & $sAppAuthor & @crlf & $sAppHome & " :: " & StringLower($sAppName) & "@shrum.net")
    if msgbox(4,$sAppTitle, "Would you like information regarding a small donatation in support of " & $sAppname & "?") = 6 then
        _ConsoleWrite(":   Opening website '" & $sAppDonate & "'")
        Run(@ComSpec & " /c start " & $sAppDonate)
    endif
    _ConsoleWrite("- _AboutDialog()")
EndFunc

func _CombosDirReadSet()
    _ConsoleWrite("+ _CombosDirReadSet()")
    $sCombosDir = _GetCombosDir()
    if not fileexists($sCombosDir & "\! = ALT") Then
        FileOpen($sCombosDir & "\! = ALT",1)
        FileOpen($sCombosDir & "\# = WIN",1)
        FileOpen($sCombosDir & "\^ = CTRL",1)
        FileOpen($sCombosDir & "\+ = SHIFT",1)
    EndIf
    _ConsoleWrite("> Collecting hotkey directories listed under '" & $sCombosDir & "'")
    $aResult = ""
    $aResult = _FileSearch($sCombosDir, ".", ".", 2, False)
    If $aResult[0] > 0 Then
        _ConsoleWrite("> Activating the following hotkeys:")
        For $i = 1 To $aResult[0]
            _ConsoleWrite(": " & stringtrimleft($aResult[$i], Stringlen($sCombosDir) + 1))
            HotKeySet(stringtrimleft($aResult[$i], Stringlen($sCombosDir) + 1), "_HotKeyTrap")
        Next
    EndIf
    _ConsoleWrite("- _CombosDirReadSet()")
EndFunc

func _ConsoleWrite($sMsg)
    _DebugOut($sMsg)
    Consolewrite($sMsg & @CRLF)
EndFunc

Func _DefineSetting($sSetting="", $sValue="")
    _consolewrite('+ _DefineSetting("' & $sSetting & '", "' & $sValue & '")')
    Switch $sSetting
        case "Debug"
            if $sValue then
                $bDebug = $sValue
            Else
                if not $bDebug then
                    $bDebug = True
                Else
                    $bDebug = False
                EndIf
            endif
            if $bDebug Then
                _DebugSetup("Debug console :: " & $sAppTitle & " :: build " & $sAppBuild)
                opt("TrayIconDebug",1)
                TrayItemSetState($mDebug,1)
                _DebugOut("+ Application: " & @scriptname)
                _DebugOut("+ Version: " & $sAppVersion)
                _Debugout("+ Build: " & $sAppBuild)
                _DebugOut("+ Location: " & @Scriptdir)
                _DebugOut("+ OS: " & @OSVersion & " build " & @OSBuild & " " & @OSServicePack & " (" & @OSTYPE & ")")
                _DebugOut("+ Language: " & @OSLang)
                _DebugOut("+ Processor: " & @ProcessorArch)
                _DebugOut(" ")
                _DebugOut("[== Start: " &  @year & "." & @mon & "." & @MDAY & " @ " & @hour & ":" & @min & ":" & @sec & " ======================]")
            Else
                opt("TrayIconDebug",0)
                TraySetToolTip($sAppTitle)
                TrayItemSetState($mDebug,4)
                _DebugOut("[== End: " &  @year & "." & @mon & "." & @MDAY & " @ " & @hour & ":" & @min & ":" & @sec & " ========================]")
            EndIf

    EndSwitch
    _consolewrite("- _DefineSetting()")
EndFunc

Func _Exit()
    _ConsoleWrite("+ _Exit()")
    if $bDebug then _DefineSetting("Debug", False)
    _ConsoleWrite("- _Exit()")
    Exit
EndFunc

Func _FileSearch($FSstartDir, $FSFilepattern = ".", $FSFolderpattern = ".", $FSFlag = 0, $FSrecurse = True, $FSdepth = 0)
    _ConsoleWrite('+ _FileSearch("' & $FSstartDir & '", "' & $FSFilepattern & '", "' & $FSFolderpattern & '", ' & $FSFlag & ', ' & $FSrecurse & ', ' & $FSdepth & ')')
    If StringRight($FSstartDir, 1) <> "\" Then $FSstartDir &= "\"
    If $FSdepth = 0 Then
        $FSfilecount = DirGetSize($FSstartDir, 1)
        Global $FSarray[$FSfilecount[1] + $FSfilecount[2] + 1]
    EndIf
    $FSsearch = FileFindFirstFile($FSstartDir & "*.*")
    If @error Then Return
    While 1
        $FSnext = FileFindNextFile($FSsearch)
        If @error Then ExitLoop
        If StringInStr(FileGetAttrib($FSstartDir & $FSnext), "D") Then
            If $FSrecurse And StringRegExp($FSnext, $FSFolderpattern, 0) Then
                _FileSearch($FSstartDir & $FSnext, $FSFilepattern, $FSFolderpattern, $FSFlag, $FSrecurse, $FSdepth + 1)
            EndIf
            If $FSFlag <> 1 Then
                $FSarray[$FSarray[0] + 1] = $FSstartDir & $FSnext
                $FSarray[0] += 1
            EndIf
        ElseIf StringRegExp($FSnext, $FSFilepattern, 0) And $FSFlag <> 2 Then
            $FSarray[$FSarray[0] + 1] = $FSstartDir & $FSnext
            $FSarray[0] += 1
        EndIf
    WEnd
    FileClose($FSsearch)
    If $FSdepth = 0 Then
        ReDim $FSarray[$FSarray[0] + 1]
        _ArraySort($FSarray)
        _ConsoleWrite("- _FileSearch()")
        Return $FSarray
    EndIf
    _ConsoleWrite("- _FileSearch()")
EndFunc

func _GetCombosDir()
    _ConsoleWrite("+ _GetCombosDir()")
    $sCombosDir = Regread($sAppRegSettings, "Combos")
    if $sCombosDir <> "" then
        _ConsoleWrite(": Registry value set, checking: " & $sCombosDir)
        while not FileExists($sCombosDir)
            Msgbox(0,$sAppTitle, "Unable to locate defind combos folder.  You will now be prompted to define a new location.")
            _SetCombosDir()
        WEnd
    Else
        _ConsoleWrite(": Registry value not set, prompting.")
        _SetCombosDir()
    EndIf
    $sCombosDir = Regread($sAppRegSettings, "Combos")
    return $sCombosDir
EndFunc

Func _HotKeyTrap()
    _ConsoleWrite("+ _HotkeyTrap()")
    _Run(_GetCombosDir() & "\" & @HotKeyPressed)
    _ConsoleWrite("- _HotkeyTrap()")
EndFunc   ;==>_HotKeyTrap

func _MenuMonitor()
    $msg = TrayGetMsg ()
    Select
        Case $msg = $TRAY_EVENT_PRIMARYDOWN
            _AboutDialog()
        Case $msg = $mCombos
            _ShellExecute('"' & _GetCombosDir() & '"')
        Case $msg = $mReload
            _CombosDirReadSet()
        Case $msg = $mAbout
            _AboutDialog()
        Case $msg = $mDebug
            _DefineSetting("Debug", Not $bDebug)
        case $msg = $mUpdate
            _UpdateCheck()
        case $msg = $mHomepage
            _ShellExecute($sAppHome)
        case $msg = $mSupport
            _ShellExecute("mailto:" & $sAppEmail &"?subject=[%20Support%20]%20" & $sAppName & "%20v." & $sAppVersion)
        case $msg = $mNews
            _ShellExecute($sAppNews)
        case $msg = $mDonate
            _ShellExecute($sAppDonate)
        case $msg = $mExit
            Exit
    EndSelect
EndFunc

Func _Random($iMax)
    ; Cus AutoIT's Random(1,1,1) returns 0 every time
    _ConsoleWrite('+ _Random(' & $iMax & ')')
    If $iMax = 1 Then
        $iResult = 1
    Else
        $iResult = Random(1, $iMax, 1)
    EndIf
    _ConsoleWrite('+ _Random(' & $iMax & ')')
    Return $iResult
EndFunc   ;==>_Random

Func _Run($sRun, $sParameter = "")
    _ConsoleWrite('+ _Run("' & $sRun & '", "' & $sParameter & '")')
    $aFiles = _FileSearch($sRun, ".", ".", 1)
    if isarray($aFiles) Then
        For $i = 1 To $aFiles[0]
            _ShellExecute($aFiles[$i], $sParameter)
        Next
    Else
        _ConsoleWrite(": Location contains no files")
    EndIf
    _ConsoleWrite("- _Run()")
EndFunc   ;==>_Run

func _SetCombosDir()
    $sResult = FileSelectFolder("Select the folder that will hold or currently holds your Hotrkeyz combo subfolders. Pressing Cancel or Esc will automatically create a \combos folder in the executable location.", "", 7)
    if @error then
        $sResult = @scriptdir & "\combos"
        dircreate($sResult)
    EndIf
    RegWrite($sAppRegSettings, "Combos", "REG_SZ", $sResult)
EndFunc

Func _ShellExecute($sCmd, $sParam = "")
    _ConsoleWrite('+ _ShellExecute("' & $sCmd & '", "' & $sParam & '")')
    If $sCmd = "" Then
        _ConsoleWrite(":  No command passed")
    Else
        _ConsoleWrite(":  Running '" & $sCmd & "'")
        ShellExecute('"' & $sCmd & '"', $sParam)
    EndIf
    _ConsoleWrite("- _ShellExecute()")
EndFunc   ;==>_ShellExecute

func _UpdateCheck()
    _ConsoleWrite("+ _UpdateCheck()")
    traytip($sAppTitle, "Retrieving public version from source...",10)
    $sTemp = ""
    $aTemp = stringsplit(_InetGetSource($sAppHome & "/" & stringlower($sAppName) & ".au3"), @CRLF)
    For $i = 1 to $aTemp[0]
        if StringInStr($aTemp[$i], "$sAppVersion") then
            $sTemp = $aTemp[$i]
            ExitLoop
        endif
    Next
    if $sTemp <> "" then
        $aOnlineVersion = StringSplit($sTemp, "=")
        $sOnlineVersion = StringReplace(StringStripWS($aOnlineVersion[2], 8), '"', "")
        _ConsoleWrite(":  Online = " & $sOnlineVersion)
        _ConsoleWrite(":  User = " & $sAppVersion)
        if $sOnlineVersion <> "" and Not Stringinstr($sOnlineVersion, "<html>") Then
            If $sAppVersion < $sOnlineVersion Then
                _ConsoleWrite(":  User is OLDER")
                TrayTip($sAppTitle, "Your version is out-of-date",5)
                $sMsg = "A newer version of this program is available for download." & @CRLF & @CRLF
                $sMsg &= "Do you want to visit the " & $sAppname & " site to download the newer version?" & @CRLF & @CRLF
                $sMsg &= "Selecting 'Yes' will close this app and take you to the website."
                If MsgBox(4, $sAppTitle, $sMsg) = 6 Then
                    _ConsoleWrite(":  Launching default web browser to " & $sAppHome)
                    _ShellExecute($sAppHome)
                    Exit
                EndIf
            ElseIf $sAppVersion = $sOnlineVersion Then
                _ConsoleWrite(":  User is EQUAL")
                TrayTip($sAppTitle, "Your version is up-to-date.",5)
            ElseIf $sAppVersion > $sOnlineVersion Then
                _ConsoleWrite(":  User is NEWER")
                TrayTip($sAppTitle, "Your version is newer; current public release = v." & $sOnlineVersion & @CRLF & "This may be due to you running a newer beta version",5)
            EndIf
        Else
            _ConsoleWrite(":  Data received but no version info found")
            traytip($sAppTitle,"Unable to locate versioning info in data received." & @CRLF & "Please go to the homepage for further update details.",5)
        EndIf
    Else
        _ConsoleWrite(":  Unable to obtain version content")
        traytip($sAppTitle,"Unable to obtain online version info." & @CRLF & "Check your connection and try again.",5)
    EndIf
    _ConsoleWrite("- _UpdateCheck()")
EndFunc

Line 16

And while we're there, what happened to OnExitFunc?

Sean Shrum :: http://www.shrum.net

All my published AU3-based apps and utilities

'Make it idiot-proof, and someone will make a better idiot'

 

Link to comment
Share on other sites

  • Moderators

Did you update your AutoIt and try compiling older code?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

  • Developers

You still didn't specify the error you get, but I am getting a bunch of au3check errors, which have nothing to do with that Opt() setting. So are the errors you get au3check related or Aut2Exe ?

Jos 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers
21 hours ago, sshrum said:

And while we're there, what happened to OnExitFunc?

Helpfile would be a good place to check the changes made in syntax over time.  ;)

Jos

v3.3.2.0
Some of the following features are deprecated. Deprecated features are no longer documented but continue to work. Deprecated features will be removed after version 3.3.2.0. It is strongly recommended that scripts relying on deprecated features be updated to work with the new behavior. Some features have already been removed and will be noted as such.

AutoIt:

ShellExecute() and ShellExecuteWait() no longer use the "open" verb by default. See the remarks section for those functions for more details. 
The return value of InetGet() has changed. It is important to read and understand the changes because it is possible to leak resources if InetGet() is used incorrectly. 
InetGet("abort"), @InetGetActive and @InetGetBytesRead are now deprecated. The following list shows the new functions used to access the old behavior: 

InetGet("abort") - Calling the new InetClose() function with a handle returned from InetGet() will abort a download. 
@InetGetActive - Calling the new InetGetInfo() function with no parameters returns a count of active downloads. 
@InetGetBytesRead - Calling the new InetGetInfo() function with a handle returned from InetGet()will return the bytes read (and more) for a download. 
The FtpBinaryMode option set with AutoItSetOption() has been removed. Now InetGet() takes a flag to specify the transfer mode. 
The URLDownloadToFile() alias for InetGet() has been removed. 
AdlibEnable() and AdlibDisable() are deprecated. See the new functions AdlibRegister() and AdlibUnRegister(). 
OnAutoItStart() is deprecated. See the new pre-processor statement #OnAutoItStartRegister. 
OnAutoItExit() is deprecated. See the new functions OnAutoItExitRegister() and OnAutoItExitUnRegister(). 
The AutoItSetOption() option OnExitFunc has been removed. See the new functions OnAutoItExitRegister() and OnAutoItExitUnRegister().

 

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...