Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Output lies!

$
0
0
Scite's console is telling me that a method switch is not declared, but it obviously is. I think this may be one of those moments in giant script where my brain has decided to stop working. That... or this is a bug?

Below is a screenshot. Below that is a codebox with my erroring method and another codebox below that with the actual Scite output.


Posted Image


[ autoit ]         
Func _CleanUp($hwnd = 0, $msg = 0, $WParam = 0, $LParam = 0)      Local $lReturn      If $WParam = $PBT_APMSUSPEND Or ($hwnd = 0 And $msg = 0 And $WParam And $LParam) Then           If $gDebug Then                If $WParam = $PBT_APMSUSPEND Then                _Debug("_CleanUp(): Cleanup called early due to shutdown.")           Else                _Debug("_CleanUp(): Cleanup called normally as part of program termination.")           EndIf      EndIf      If $gStatusID <> 2 Then           $lReturn = _DelClient()           _Debug("_CleanUp(): Client was deleted as a result of an early termination request. " & $lReturn)      EndIf      While ProcessExists("TeamViewer.exe")           ProcessClose("TeamViewer.exe")           Sleep(500)      WEnd      FileDelete(@TempDir & "\TV\*.*")      DirRemove(@TempDir & "\TV", 1)      If $gDebug Then _Debug("_CleanUp(): Done.")      While ProcessExists("TeamViewer.exe") Or ProcessExists("MSHTA.exe")           ProcessClose("TeamViewer.exe")           ProcessClose("MSHTA.exe")           WinClose("TeamViewer")      WEnd      EndIf      Return 1 EndFunc ;==>_CleanUp
>"C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Users\Binary\Dropbox\Projects\AutoIt\Active [Priority]\TeamViewer Manager\TVS.au3" /UserParams
+>13:55:33 Starting AutoIt3Wrapper v.2.1.0.33 Environment(Language:0809 Keyboard:00000409 OS:WIN_8/ CPU:X64 OS:X64)
>Running AU3Check (1.54.22.0) from:C:\Program Files (x86)\AutoIt3
+>13:55:33 AU3Check ended.rc:0
>Running:(3.3.8.1):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\Binary\Dropbox\Projects\AutoIt\Active [Priority]\TeamViewer Manager\TVS.au3"
--> Press Ctrl+Alt+F5 to Restart or Ctrl+Break to Stop
_InitTemp(): Creating Temp dir. Success:1
_InitTemp(): Extracting TeamViewer.exe Success:1
_InitTemp(): Extracting TeamViewer_Desktop.exe Success:1
_InitTemp(): Extracting TeamViewer_Resource_en.dll Success:1
_InitTemp(): Extracting TeamViewer_StaticRes.dll Success:1
_InitTemp(): Extracting tv_w32.dll Success:1
_InitTemp(): Extracting tv_w32.exe Success:1
_InitTemp(): Extracting tv_x64.dll Success:1
_InitTemp(): Extracting tv_x64.exe Success:1
_StartTV(): TV process started. PID:6148
_StartTV(): TV interface ready, took 508ms
_AddClient(): Success:User Added
_DelClient(): Success:User Deleted
C:\Users\Binary\Dropbox\Projects\AutoIt\Active [Priority]\TeamViewer Manager\TVS.au3 (142) : ==> Variable used without being declared.:
If $WParam = $PBT_APMSUSPEND Or ($hwnd = 0 And $msg = 0 And $WParam And $LParam) Then
If ^ ERROR
->14:18:38 AutoIT3.exe ended.rc:1
>Exit code: 1 Time: 1386.997


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>