rmckay Posted October 14, 2019 Share Posted October 14, 2019 Hello, I'm new to AutoIt and trying to understand the debug process. I'm trying to use one of the Koda examples - ComboBox from Koda. After I construct the Koda window I want to use IUIAutomation::findall() to get the items in the Koda combobox. Sometimes the script I've written runs - I can expand the combox and see the contents. When the script crashes I get an error msg: >"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3" /UserParams +>18:49:22 Starting AutoIt3Wrapper v.19.102.1901.0 SciTE v.4.1.2.0 Keyboard:00000409 OS:WIN_10/ CPU:X64 OS:X64 Environment(Language:0409) CodePage:0 utf8.auto.check:4 +> SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE UserDir => C:\Users\Owner\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper SCITE_USERHOME => C:\Users\Owner\AppData\Local\AutoIt v3\SciTE >Running AU3Check (3.3.14.5) params:-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6 -w 7 from:C:\Program Files (x86)\AutoIt3 input:C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3 "C:\Users\Owner\Documents\AutoIt\Include\UIASpy_Elements.au3"(5,96) : warning: $dtagIUIAutomation already declared/assigned Global $sCLSIDCUIAutomation, $sIIDIUIAutomation, $sIIDIUIAutomationElement, $dtagIUIAutomation, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "C:\Users\Owner\Documents\AutoIt\Include\UIASpy_Elements.au3"(5,123) : warning: $dtagIUIAutomationElement already declared/assigned Global $sCLSIDCUIAutomation, $sIIDIUIAutomation, $sIIDIUIAutomationElement, $dtagIUIAutomation, $dtagIUIAutomationElement ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3 - 0 error(s), 2 warning(s) ->18:49:22 AU3Check ended. Press F4 to jump to next error.rc:1 >Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3" +>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop !<Console.au3>: Launching process on own... + CmdLine:"C:\Program Files (x86)\AutoIt3\autoit3.exe" "C:\Users\Owner\Documents\AutoIt\Get Combobox Contents from Koda Cbox\Get Combobox Contents from Koda Cbox 03.au3" /Console=True > Get Combobox Contents from Koda Cbox 03.au3 returned 15 (0x0000000F) !>18:49:23 AutoIt3.exe ended.rc:15 +>18:49:23 AutoIt3Wrapper Finished. >Exit code: 15 Time: 1.792 I'm assuming that the "returned 15" is a reason for the crash. If that is so where do I look for information about what caused it? Thanks Link to comment Share on other sites More sharing options...
Subz Posted October 14, 2019 Share Posted October 14, 2019 Can you post the script? Link to comment Share on other sites More sharing options...
rmckay Posted October 14, 2019 Author Share Posted October 14, 2019 Hi Subz, Thanks for the quick response. I've rebooted several times and sometimes have the problem and sometimes not. Trying to reduce the script to a point that it's easy to troubleshoot. Will post as soon as I get something that's repeatable. Link to comment Share on other sites More sharing options...
water Posted October 14, 2019 Share Posted October 14, 2019 I do not think your script crashed (ended unexpectedly) but simply ended and a returncode (rc) of 15 is passed to the caller. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
rmckay Posted October 18, 2019 Author Share Posted October 18, 2019 Hi water, That clarifies that the script did not have an normal ending. I've been trying to find a listing of the causes of return codes other than zero but have drawn a blank, Thanks Link to comment Share on other sites More sharing options...
water Posted October 18, 2019 Share Posted October 18, 2019 Windows error codes can be found here: https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes--0-499- 15 means: ERROR_INVALID_DRIVE 15 (0xF) The system cannot find the drive specified. My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
rmckay Posted October 22, 2019 Author Share Posted October 22, 2019 Thanks @water, I wouldn't have found that ever! Link to comment Share on other sites More sharing options...
water Posted October 22, 2019 Share Posted October 22, 2019 (edited) 😃 Edited October 22, 2019 by water My UDFs and Tutorials: Spoiler UDFs:Active Directory (NEW 2022-02-19 - Version 1.6.1.0) - Download - General Help & Support - Example Scripts - WikiExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example ScriptsOutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - WikiOutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - DownloadOutlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - WikiPowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - WikiTask Scheduler (NEW 2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs:Excel - Example Scripts - WikiWord - Wiki Tutorials:ADO - WikiWebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now