jpm Posted March 5 Posted March 5 Yes there is a pb scrollbars example have not been update I will fix them
argumentum Posted March 7 Posted March 7 ; SQLite3 dll version must match #include <MsgBoxConstants.au3> #include <SQLite.au3> #include <SQLite.dll.au3> Global $sSQliteDll = _SQLite_Startup() If @error Then If MsgBox($MB_SYSTEMMODAL + $MB_YESNO + $MB_DEFBUTTON2, "SQLite Error", (@AutoItX64 ? 'SQLite3_x64.dll' : 'SQLite3.dll') & " Can't be Loaded!" & @CRLF & @CRLF & _ "Not FOUND in @ScriptDir, @WorkingDir," & @CRLF & @TAB & "@LocalAppDataDir\AutoIt v3\SQLite," & @CRLF & @TAB & "@SystemDir or @WindowsDir" & _ @CRLF & @CRLF & "Would you like to go to the site to download it ?") = $IDYES Then ShellExecute("https://www.sqlite.org/download.html") Exit 4 EndIf MsgBox($MB_SYSTEMMODAL, (@AutoItX64 ? 'SQLite3_x64.dll' : 'SQLite3.dll') & " Loaded", $sSQliteDll & " (v" & _SQLite_LibVersion() & ")") ConsoleWrite("_SQLite_LibVersion=" & _SQLite_LibVersion() & @CRLF) _SQLite_Shutdown() This "Example 1" will be better than the current one. If the DLL is not there it takes you to the site for download. Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
argumentum Posted March 8 Posted March 8 ..to be or not to be.. As the well read and organized coder that I am ( or aim to be ) I read the WiKi. Add button(s) with $idRun, and $idCancel to have $idCntrlName = ... Then I run the script and I get "error: $idCancel previously declared as a 'Const'." and I open the offending file and I read: ... Global Const $MB_SERVICE_NOTIFICATION = 0x00200000 ; The caller is a service notifying the user of an event. Global Const $MB_RIGHTJUSTIFIED = $MB_RIGHT ; Do not use, see $MB_RIGHT. Included for backwards compatibility. ; Indicates the button selected in the message box Global Const $IDTIMEOUT = -1 ; The message box timed out Global Const $IDOK = 1 ; OK button was selected Global Const $IDCANCEL = 2 ; Cancel button was selected ... ... I found it, "funny" ? 🤷♂️ donnyh13 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
donnyh13 Posted March 23 Posted March 23 To help some unnecessary confusion, I was thinking a small note added to OnAutoItExitRegister may be handy: Quote Any declared parameters in a function called by OnAutoItExitRegister are treated as undeclared when called, and will cause a crash if used by the function. Use @NumParams or IsDeclared if a function with parameters must be used. Best Regards Donny argumentum 1 LibreOffice UDF Scite4AutoIt Spell-Checker Using LibreOffice WPS Office adapter — Use MS Word UDFs with WPS Office! LibreOffice API Inspector tools Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
argumentum Posted March 24 Posted March 24 ..it'd be better to say that "the function shall not have parameters", same as with AdlibRegister(). I can not see a reason where "if a function with parameters must be used." other than convenience 🤔 donnyh13 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
donnyh13 Posted Wednesday at 12:23 AM Posted Wednesday at 12:23 AM Good points @argumentum, Quote The function called must not have any parameters. argumentum 1 LibreOffice UDF Scite4AutoIt Spell-Checker Using LibreOffice WPS Office adapter — Use MS Word UDFs with WPS Office! LibreOffice API Inspector tools Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
argumentum Posted Wednesday at 01:39 AM Posted Wednesday at 01:39 AM (edited) JPM already patched it all with our inputs. So, coming soon ( some day ) to a beta ( or alpha ) near you Edited Wednesday at 01:40 AM by argumentum donnyh13 1 Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting.
jpm Posted Wednesday at 08:55 AM Posted Wednesday at 08:55 AM I hope I did the right job ... donnyh13 and argumentum 1 1
donnyh13 Posted Thursday at 09:12 PM Posted Thursday at 09:12 PM In the examples of StdoutRead and StdioClose, the following lines occur: ; Use StringSplit to split the output of StdoutRead to an array. All carriage returns (@CRLF) are stripped and @CRLF (line feed) is used as the delimiter. Local $aArray = StringSplit(StringTrimRight(StringStripCR($sOutput), StringLen(@LF)), @LF) The description, I think, is slightly inaccurate: Quote All carriage returns (@CRLF) are stripped and @CRLF (line feed) is used as the delimiter. It should read: Quote All carriage returns (@CR) are stripped and @LF (line feed) is used as the delimiter. Thanks for your work jpm, Best Regards, Donny argumentum 1 LibreOffice UDF Scite4AutoIt Spell-Checker Using LibreOffice WPS Office adapter — Use MS Word UDFs with WPS Office! LibreOffice API Inspector tools Spoiler "Life is chiefly made up, not of great sacrifices and wonderful achievements, but of little things. It is oftenest through the little things which seem so unworthy of notice that great good or evil is brought into our lives. It is through our failure to endure the tests that come to us in little things, that the habits are molded, the character misshaped; and when the greater tests come, they find us unready. Only by acting upon principle in the tests of daily life can we acquire power to stand firm and faithful in the most dangerous and most difficult positions."
mLipok Posted Friday at 10:32 PM Posted Friday at 10:32 PM (edited) I was working with LV justification. Here is my modified _GUICtrlListView_JustifyColumn.au3 : expandcollapse popup#include <GUIConstantsEx.au3> #include <GuiListView.au3> #include <MsgBoxConstants.au3> #include <ListViewConstants.au3> #include <WindowsStylesConstants.au3> Example() Func Example() GUICreate("ListView Justify (v" & @AutoItVersion & ")", 400, 300) Local $idListview If $IDNO = MsgBox($MB_YESNO + $MB_TOPMOST + $MB_ICONQUESTION + $MB_DEFBUTTON2, "Question", _ "Right to Left Text (RTL Layout) ?") Then $idListview = GUICtrlCreateListView("", 2, 2, 394, 268) Else $idListview = GUICtrlCreateListView("", 2, 2, 394, 268, BitOR($LVS_SHOWSELALWAYS, $LVS_SINGLESEL), $WS_EX_LAYOUTRTL) EndIf GUISetState(@SW_SHOW) ; Set ANSI format ;~ _GUICtrlListView_SetUnicodeFormat($idListview, False) ; Add columns _GUICtrlListView_AddColumn($idListview, "Column 1", 100) _GUICtrlListView_AddColumn($idListview, "Column 2", 100) _GUICtrlListView_AddColumn($idListview, "Column 3", 100) ; Change column Local $aInfo, $sInformation = '' For $i = 0 To 2 $aInfo = _GUICtrlListView_GetColumn($idListview, $i) $sInformation &= "Column " & $i & " justification: " & $aInfo[0] & @CRLF Next MsgBox($MB_SYSTEMMODAL, "Information before justification", $sInformation) $sInformation = '' _GUICtrlListView_JustifyColumn($idListview, 0, 0) _GUICtrlListView_JustifyColumn($idListview, 1, 1) _GUICtrlListView_JustifyColumn($idListview, 2, 2) For $i = 0 To 2 $aInfo = _GUICtrlListView_GetColumn($idListview, $i) $sInformation &= "Column " & $i & " justification: " & $aInfo[0] & @CRLF Next MsgBox($MB_SYSTEMMODAL, "Information after justification", $sInformation) ; Loop until the user exits. Do Until GUIGetMsg() = $GUI_EVENT_CLOSE GUIDelete() EndFunc ;==>Example Help file says: $iAlign [optional] Alignment of the column header and the subitem text in the column: 0 - Text is left aligned 1 - Text is right aligned 2 - Text is centered But the description is only correct for the LTR layout, and if you're using the RTL layout, the description seems misleading. Any ideas on how to improve the description? maybe just: $iAlign [optional] Alignment of the column header and the subitem text in the column: 0 - Text is left aligned for LTR Layout, and right aligned for RTL Layout 1 - Text is right aligned for LTR Layout, and left aligned for RTL Layout 2 - Text is centered Edited Friday at 10:33 PM by mLipok donnyh13 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
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