jpm Posted November 7, 2013 Posted November 7, 2013 Many thanks I fix the webfile name which was not in accordance with SQLite.dll.au3 Now it is working with the current .22 beta
jchd Posted November 8, 2013 Posted November 8, 2013 Ah, warm thanks JP. This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)
Iczer Posted November 10, 2013 Posted November 10, 2013 almost forgot about old good bug it present since stable release. see colour change after mouse hovering on Checkbox1. also attached demo-pic. #include <ButtonConstants.au3> #include <GUIConstantsEx.au3> #include <TabConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form2 = GUICreate("Form2", 320, 250, 555, 555) $Tab1 = GUICtrlCreateTab(16, 16, 289, 193) $TabSheet1 = GUICtrlCreateTabItem("TabSheet1") $Checkbox1 = GUICtrlCreateCheckbox("Checkbox1", 52, 75, 97, 17) $Checkbox2 = GUICtrlCreateCheckbox("Checkbox2", 52, 107) GUICtrlCreateTabItem("") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
guinness Posted November 10, 2013 Posted November 10, 2013 That issue isn't present when running the stable on Windows 8.1 x64. UDF List: _AdapterConnections() • _AlwaysRun() • _AppMon() • _AppMonEx() • _ArrayFilter/_ArrayReduce • _BinaryBin() • _CheckMsgBox() • _CmdLineRaw() • _ContextMenu() • _ConvertLHWebColor()/_ConvertSHWebColor() • _DesktopDimensions() • _DisplayPassword() • _DotNet_Load()/_DotNet_Unload() • _Fibonacci() • _FileCompare() • _FileCompareContents() • _FileNameByHandle() • _FilePrefix/SRE() • _FindInFile() • _GetBackgroundColor()/_SetBackgroundColor() • _GetConrolID() • _GetCtrlClass() • _GetDirectoryFormat() • _GetDriveMediaType() • _GetFilename()/_GetFilenameExt() • _GetHardwareID() • _GetIP() • _GetIP_Country() • _GetOSLanguage() • _GetSavedSource() • _GetStringSize() • _GetSystemPaths() • _GetURLImage() • _GIFImage() • _GoogleWeather() • _GUICtrlCreateGroup() • _GUICtrlListBox_CreateArray() • _GUICtrlListView_CreateArray() • _GUICtrlListView_SaveCSV() • _GUICtrlListView_SaveHTML() • _GUICtrlListView_SaveTxt() • _GUICtrlListView_SaveXML() • _GUICtrlMenu_Recent() • _GUICtrlMenu_SetItemImage() • _GUICtrlTreeView_CreateArray() • _GUIDisable() • _GUIImageList_SetIconFromHandle() • _GUIRegisterMsg() • _GUISetIcon() • _Icon_Clear()/_Icon_Set() • _IdleTime() • _InetGet() • _InetGetGUI() • _InetGetProgress() • _IPDetails() • _IsFileOlder() • _IsGUID() • _IsHex() • _IsPalindrome() • _IsRegKey() • _IsStringRegExp() • _IsSystemDrive() • _IsUPX() • _IsValidType() • _IsWebColor() • _Language() • _Log() • _MicrosoftInternetConnectivity() • _MSDNDataType() • _PathFull/GetRelative/Split() • _PathSplitEx() • _PrintFromArray() • _ProgressSetMarquee() • _ReDim() • _RockPaperScissors()/_RockPaperScissorsLizardSpock() • _ScrollingCredits • _SelfDelete() • _SelfRename() • _SelfUpdate() • _SendTo() • _ShellAll() • _ShellFile() • _ShellFolder() • _SingletonHWID() • _SingletonPID() • _Startup() • _StringCompact() • _StringIsValid() • _StringRegExpMetaCharacters() • _StringReplaceWholeWord() • _StringStripChars() • _Temperature() • _TrialPeriod() • _UKToUSDate()/_USToUKDate() • _WinAPI_Create_CTL_CODE() • _WinAPI_CreateGUID() • _WMIDateStringToDate()/_DateToWMIDateString() • Au3 script parsing • AutoIt Search • AutoIt3 Portable • AutoIt3WrapperToPragma • AutoItWinGetTitle()/AutoItWinSetTitle() • Coding • DirToHTML5 • FileInstallr • FileReadLastChars() • GeoIP database • GUI - Only Close Button • GUI Examples • GUICtrlDeleteImage() • GUICtrlGetBkColor() • GUICtrlGetStyle() • GUIEvents • GUIGetBkColor() • Int_Parse() & Int_TryParse() • IsISBN() • LockFile() • Mapping CtrlIDs • OOP in AutoIt • ParseHeadersToSciTE() • PasswordValid • PasteBin • Posts Per Day • PreExpand • Protect Globals • Queue() • Resource Update • ResourcesEx • SciTE Jump • Settings INI • SHELLHOOK • Shunting-Yard • Signature Creator • Stack() • Stopwatch() • StringAddLF()/StringStripLF() • StringEOLToCRLF() • VSCROLL • WM_COPYDATA • More Examples... Updated: 22/04/2018
Iczer Posted November 10, 2013 Posted November 10, 2013 (edited) I'm on WinXP x64 also - it's only happen if Checkbox is plased on tab-control Edited November 10, 2013 by Iczer
BrewManNH Posted November 10, 2013 Posted November 10, 2013 Must be an XP thing, because it doesn't happen on Vista x86. If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator
kylomas Posted November 11, 2013 Posted November 11, 2013 Win7 Home 64bit no problems in stable or beta (run from SCiTE) Forum Rules Procedure for posting code "I like pigs. Dogs look up to us. Cats look down on us. Pigs treat us as equals." - Sir Winston Churchill
iCode Posted November 14, 2013 Posted November 14, 2013 (edited) anyone else having problems running tidy on their script? prior to .21 i think it worked fine in .21 it would run and format the script, then crash every time in .22 it crashes on startup every time without formatting the script running it with no extra parms i can supply a dump file for tidy.exe if it helps win 7 x64, autoit 3.3.9.2.2 - 32 bit tools mode Edited November 14, 2013 by iCode FUNCTIONS: WinDock (dock window to screen edge) | EditCtrl_ToggleLineWrap (line/word wrap for AU3 edit control) | SendEX (yet another alternative to Send( ) ) | Spell Checker (Hunspell wrapper) | SentenceCase (capitalize first letter of sentences) CODE SNIPPITS: Dynamic tab width (set tab control width according to window width)
Exit Posted November 14, 2013 Posted November 14, 2013 Just use the newest beta of tidy:http://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/Tidy.exe App: Au3toCmd UDF: _SingleScript()
Developers Jos Posted November 14, 2013 Developers Posted November 14, 2013 anyone else having problems running tidy on their script? prior to .21 i think it worked fine in .21 it would run and format the script, then crash every time in .22 it crashes on startup every time without formatting the script running it with no extra parms i can supply a dump file for tidy.exe if it helps win 7 x64, autoit 3.3.9.2.2 - 32 bit tools mode Should indeed be solved in the current Beta version of Tidy as this was a table space issue with the growing number of UDF's. 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.
Exit Posted November 14, 2013 Posted November 14, 2013 Found a bug in beta 3.3.9.22 My script is very large and therefore I made this small reproducer. #include <IE.au3> Func _AutoitError() $Text = "Autoitversion = " & @AutoItVersion & @CR $Text &= "Scriptline = " & $oIEErrorHandler.scriptline & @CR $Text &= "HexError = " & Hex($oIEErrorHandler.number, 8) & @CR $Text &= "Description = " & StringStripWS($oIEErrorHandler.WinDescription, 2) & @CR Beep(2000, 100) MsgBox(48 + 262144, "COM Error in "&@ScriptName, $Text) EndFunc ;==>_AutoitError $oIEErrorHandler = ObjEvent("AutoIt.Error", "_AutoitError") WinClose("[class:CabinetWClass]") ; close control window For $i = 1 To 999 If $i = 3 Then ShellExecute("Control") ; open control window ConsoleWrite("**** " & $i & " ******" & @CRLF) $oIE = _IEAttach("nonsense") Sleep(3000) Next Tested in XP, Win7 and Win 8.1 When running in Prod (3.3.8.1), COM Error is NOT raised. In Beta(3.3.9.22), COM Error is raised, when certain browser/explorer windows exist. e.g. control panel. The script closes eventual existing control panels. A control window is started at the third Iteration of the loop and then, the COM error handler is raised. _IEAttach() function seems to be involved. App: Au3toCmd UDF: _SingleScript()
mLipok Posted November 14, 2013 Posted November 14, 2013 I test your repro code the same effect Win7 Pro 64Bit + AutoIt 3.3.9.22 in both case AutoIt 3.3.9.22 and 3.3.8.1 Control Panel opens at 3 attempt but only in 3.3.9.22 error hanlder show the MsgBox 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 Code * for 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 API * ErrorLog.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 TaskScheduler * IE 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 stuff * OnHungApp handler * Avoid "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" , 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
mLipok Posted November 14, 2013 Posted November 14, 2013 When I use the Beta version of AutoIt (3.3.9.22) on one of my programs, I have this message: !>19:54:04 AutoIt3.exe ended.rc:-1073741819 >Exit code: -1073741819 Time: 58.103 Can anyone tell me if the number -1073741819 is the result of a some kind of system debug and that on this basis, one of the developers can deduce roughly where the error is. I know I should be prepared reproductive code, for now I'm on track. But the question I've always wondered. 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 Code * for 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 API * ErrorLog.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 TaskScheduler * IE 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 stuff * OnHungApp handler * Avoid "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" , 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
Developers Jos Posted November 14, 2013 Developers Posted November 14, 2013 Found a bug in beta 3.3.9.22 My script is very large and therefore I made this small reproducer. #include <IE.au3> Func _AutoitError() $Text = "Autoitversion = " & @AutoItVersion & @CR $Text &= "Scriptline = " & $oIEErrorHandler.scriptline & @CR $Text &= "HexError = " & Hex($oIEErrorHandler.number, 8) & @CR $Text &= "Description = " & StringStripWS($oIEErrorHandler.WinDescription, 2) & @CR Beep(2000, 100) MsgBox(48 + 262144, "COM Error in "&@ScriptName, $Text) EndFunc ;==>_AutoitError $oIEErrorHandler = ObjEvent("AutoIt.Error", "_AutoitError") WinClose("[class:CabinetWClass]") ; close control window For $i = 1 To 999 If $i = 3 Then ShellExecute("Control") ; open control window ConsoleWrite("**** " & $i & " ******" & @CRLF) $oIE = _IEAttach("nonsense") Sleep(3000) Next Tested in XP, Win7 and Win 8.1 When running in Prod (3.3.8.1), COM Error is NOT raised. In Beta(3.3.9.22), COM Error is raised, when certain browser/explorer windows exist. e.g. control panel. The script closes eventual existing control panels. A control window is started at the third Iteration of the loop and then, the COM error handler is raised. _IEAttach() function seems to be involved. Don't use the Errorhandler in this way as this is already done internally in the IE functions. Read the IE.au3 code and look at line 329 - 343. Line 343 is giving the error now. 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.
trancexx Posted November 14, 2013 Posted November 14, 2013 When I use the Beta version of AutoIt (3.3.9.22) on one of my programs, I have this message: Can anyone tell me if the number -1073741819 is the result of a some kind of system debug and that on this basis, one of the developers can deduce roughly where the error is. I know I should be prepared reproductive code, for now I'm on track. But the question I've always wondered. It's impossible to say what's causing the error without seeing the code you run. However, AutoIt shouldn't ever error out that way. It's strong indicator of internal bug. ♡♡♡ . eMyvnE
Developers Jos Posted November 14, 2013 Developers Posted November 14, 2013 Google is your friend: The error number -1073741819 in hex is 0xC0000005 which indicates an access violation in windows. When you are just using internal functions this could be a bug or are you doing DLL stuff? 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.
mLipok Posted November 14, 2013 Posted November 14, 2013 Initially it looks like a problem with _sql.au3 But I'm not sure. I have to spend on analysis of more time. 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 Code * for 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 API * ErrorLog.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 TaskScheduler * IE 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 stuff * OnHungApp handler * Avoid "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" , 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
mLipok Posted November 14, 2013 Posted November 14, 2013 Google is your friend: The error number -1073741819 in hex is 0xC0000005 which indicates an access violation in windows. When you are just using internal functions this could be a bug or are you doing DLL stuff? Jos I do a test: first I create _Obfuscated.au3 (/MO) and to this I add #AutoIt3Wrapper_run_debug_mode=Y and here are the results: bingo: DLL 44821: 0-0: If $b_czy_nowe_okno_diagnostyczne = True Then 44822: 0-0: _DiagnosticOut_NEW($s_out_text, $v_edit_number) 44875: 0-0: If IsHWnd($h_DiagnosticGUI) = 0 Then Return 44876: 0-0: Local $h_memo = ControlGetHandle($s_nazwa_okna_diagnostycznego, "", "Edit" & $v_edit_number) 44877: 0-0: Local Const $WM_GETTEXTLENGTH = 0x000E 44878: 0-0: Local Const $EM_SETSEL = 0xB1 44879: 0-0: Local Const $EM_REPLACESEL = 0xC2 44880: 0-0: Local $nLen = _SendMessage($h_memo, $WM_GETTEXTLENGTH, 0, 0, 0, "int", "int") 0526: 0-0: Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageW", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) 0527: 0-0: If @error Then Return SetError(@error, @extended, "") 0528: 0-0: If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] 44881: 0-0: _SendMessage($h_memo, $EM_SETSEL, $nLen, $nLen, 0, "int", "int") 0526: 0-0: Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageW", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) 0527: 0-0: If @error Then Return SetError(@error, @extended, "") 0528: 0-0: If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] 44882: 0-0: _SendMessage($h_memo, $EM_REPLACESEL, True, $sMessage, 0, "int", "wstr") 0526: 0-0: Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageW", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) 0527: 0-0: If @error Then Return SetError(@error, @extended, "") 0528: 0-0: If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] 44883: 0-0: Local $nLen = _SendMessage($h_memo, $WM_GETTEXTLENGTH, 0, 0, 0, "int", "int") 0526: 0-0: Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageW", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) 0527: 0-0: If @error Then Return SetError(@error, @extended, "") 0528: 0-0: If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] 44884: 0-0: _SendMessage($h_memo, $EM_SETSEL, $nLen, $nLen, 0, "int", "int") 0526: 0-0: Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageW", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) 0527: 0-0: If @error Then Return SetError(@error, @extended, "") 0528: 0-0: If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] 44885: 0-0: _GUICtrlEdit_LineScroll($h_memo, 0, _GUICtrlEdit_GetLineCount($h_memo)) 8882: 0-0: If $Debug_Ed Then __UDF_ValidateClassName($hWnd, $__EDITCONSTANT_ClassName) 8883: 0-0: If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) 8884: 0-0: Return _SendMessage($hWnd, $EM_GETLINECOUNT) 0526: 0-0: Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageW", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) 0527: 0-0: If @error Then Return SetError(@error, @extended, "") 0528: 0-0: If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] 8989: 0-0: If $Debug_Ed Then __UDF_ValidateClassName($hWnd, $__EDITCONSTANT_ClassName) 8990: 0-0: If Not IsHWnd($hWnd) Then $hWnd = GUICtrlGetHandle($hWnd) 8991: 0-0: Return _SendMessage($hWnd, $EM_LINESCROLL, $iHoriz, $iVert) <> 0 0526: 0-0: Local $aResult = DllCall("user32.dll", $sReturnType, "SendMessageW", "hwnd", $hWnd, "uint", $iMsg, $wParamType, $wParam, $lParamType, $lParam) 0527: 0-0: If @error Then Return SetError(@error, @extended, "") 0528: 0-0: If $iReturn >= 0 And $iReturn <= 4 Then Return $aResult[$iReturn] 44886: 0-0: EndFunc 44823: 0-0: Else 44826: 0-0: If $b_czy_file_log_all = True Then 44829: 0-0: EndFunc 44866: 0-0: EndIf 44867: 0-0: EndFunc 54093: 0-0: EndFunc 52937: 0-0: EndIf !>23:16:14 AutoIt3.exe ended.rc:255 >Exit code: 255 Time: 562.364 But I use it with UDF I mean I use: _GUICtrlEdit_LineScroll($h_memo, 0, _GUICtrlEdit_GetLineCount($h_memo)) jmon 1 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 Code * for 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 API * ErrorLog.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 TaskScheduler * IE 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 stuff * OnHungApp handler * Avoid "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" , 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
Exit Posted November 14, 2013 Posted November 14, 2013 @Jos Don't use the Errorhandler in this way as this is already done internally in the IE functions. Read the IE.au3 code and look at line 329 - 343. Line 343 is giving the error now. Throwing an error to determine if it is a browser type...?. Lines 337 to 353 should be replaced by this single line If $o_window.name = "Windows-Explorer" Then ContinueLoop App: Au3toCmd UDF: _SingleScript()
Recommended Posts