Developers Jos Posted September 12, 2014 Author Developers Share Posted September 12, 2014 I can replicate the hard-crash and is related to AutoIt3Help.exe getting very confused about the number of parameters. Will have a detailed look when I have some time to kill. 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 More sharing options...
JohnOne Posted September 12, 2014 Share Posted September 12, 2014 I have following code in scite4autoit. expandcollapse popup#include <Screencapture.au3> #include <File.au3> Const $AimFrames = 15 ;Create a temp folder in script dir if it does not exist Const $CaptureFolder = @ScriptDir & "\capture\" If Not FileExists($CaptureFolder) Then DirCreate($CaptureFolder) EndIf $ShotTime = _AvarageScreenshotTime(100) $Tune = 1;$ShotTime / 1.2 For $n = 10 To 70 _Main($n, $ShotTime, $Tune) ;Sleep(1000) Next Func _Main($TargetFramesPerSecond, $AvaerageShotTime, $FineTune) ;Some variables Const $OneSecond = 1000 $Iterator = 1 ;Some Calculations. ;_Debug($AvaerageShotTime, "$AvaerageShotTime") $Calc1 = $AvaerageShotTime * $TargetFramesPerSecond ;_Debug($Calc1, "$Calc1") $Calc2 = 1000 - $Calc1 ;_Debug($Calc2, "$Calc2") $Calc3 = $Calc2 / $TargetFramesPerSecond ;;_Debug($Calc3, "$Calc3") $Sleep = Ceiling($Calc3 - $FineTune) ;_Debug($Sleep, "$Sleep") If $TargetFramesPerSecond >= 40 Then $AvaerageShotTime += 2 ElseIf $TargetFramesPerSecond >= 30 Then $AvaerageShotTime += 1 EndIf ;Loop for approx one second $Timer = TimerInit() While TimerDiff($Timer) <= $OneSecond ;$hAnotherTimer = TimerInit() $Cap = _ScreenCapture_Capture($CaptureFolder & $Iterator & ".bmp", 0, 0, 100, 100) ;Just for file name $Iterator += 1 ;Sleep(1000 / $TargetFramesPerSecond - TimerDiff($hAnotherTimer)) $sTimer = TimerInit() Do Until TimerDiff($sTimer) >= (1000 / $TargetFramesPerSecond) - $AvaerageShotTime ;Sleep(66 - 15) WEnd Local $aFiles = _FileListToArray($CaptureFolder, "*.bmp", 1) If @error Then ;Remove files and folders If Not _RemoveDir() Then Exit MsgBox(0, 0, "Error _RemoveDir") EndIf Exit MsgBox(0, 0, "Error _FileListToArray") EndIf ;Amount of images created $CURRENT_FPS = Int($aFiles[0]) ConsoleWrite("Target = " & $TargetFramesPerSecond & " - Captured " & $CURRENT_FPS & @LF) _RemoveDir() EndFunc ;==>_Main Func _Debug($val, $varname) ConsoleWrite($varname & " = " & $val & @LF) EndFunc ;==>_Debug Func _RemoveDir() FileDelete($CaptureFolder & "*") #cs For $i = 1 To 10 $Removed = DirRemove($CaptureFolder) If $Removed Then ExitLoop EndIf Sleep(100) Next Return ($Removed = 0) #ce EndFunc ;==>_RemoveDir Func _AvarageScreenshotTime($NunShots) Local $aShots[$NunShots] For $i = 0 To $NunShots - 1 $Timer = TimerInit() _ScreenCapture_Capture("pic.bmp", 0, 0, 100, 100) $Diff = TimerDiff($Timer) $aShots[$i] = $Diff Next FileDelete("pic.bmp") $Total = 0 For $i = 0 To $NunShots - 1 $Total += ($aShots[$i]) Next $average = $Total / $NunShots Return Floor($average) EndFunc ;==>_AvarageScreenshotTime If I select test starting at line 4 Const $AimFrames = 15 It's fine, I can select text from line 4 upto and including line 7 Const $CaptureFolder = @ScriptDir & "capture" If I select any more, help will not open, it has not crashed again yet, the help file is what crashed (help has stopped working etc...) AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Developers Jos Posted September 13, 2014 Author Developers Share Posted September 13, 2014 Give this version a try to see if that now always open the helpfile without crashing. 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 More sharing options...
jpm Posted September 13, 2014 Share Posted September 13, 2014 I cannot reproduce with Standard or Beta release ... Link to comment Share on other sites More sharing options...
Developers Jos Posted September 13, 2014 Author Developers Share Posted September 13, 2014 I cannot reproduce with Standard or Beta release ...jp, the issue is that when you select multiple lines and these also contain double quotes, the parameter lexing assumes it are multiple parameters. As you know, the second parameter is assumed to be the helpfilename override, so when that is invalid it would crash. 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 More sharing options...
jpm Posted September 13, 2014 Share Posted September 13, 2014 I understand, it looks good whatever I don't understand when selection of more than a word is very useful Cheers Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 15, 2014 Moderators Share Posted September 15, 2014 Jos,With that new AutoIt3Help.exe it seems that you always get the release version of Help opened when you select F1 - even if you are running the Beta and have the Beta Help already open. >M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Developers Jos Posted September 15, 2014 Author Developers Share Posted September 15, 2014 Jos, With that new AutoIt3Help.exe it seems that you always get the release version of Help opened when you select F1 - even if you are running the Beta and have the Beta Help already open. > M23 Doesn't F1 always open production and Alt-F1 Beta? Did the behaviour change in this last modified version of autoit3help.exe? 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 More sharing options...
jchd Posted September 15, 2014 Share Posted September 15, 2014 Doesn't F1 always open production and Alt-F1 Beta? That's what I've always experienced but you know where I live... 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) Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 15, 2014 Moderators Share Posted September 15, 2014 Jos,As far as I can remember pressing F1 has always opened the Beta Help if it was already open. I always have the Beta Help open when I am using SciTE (all done via a script of course) and it has always been that version which shows the page for the selected function. The new version you posted opened an instance of the release Help even though the Beta Help was already open. Reverting to the installed Autoit3Help.exe returned to the behaviour I had been expecting - Beta Help with both F1 & Alt-F1. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Developers Jos Posted September 15, 2014 Author Developers Share Posted September 15, 2014 (edited) Jos, As far as I can remember pressing F1 has always opened the Beta Help if it was already open. I always have the Beta Help open when I am using SciTE (all done via a script of course) and it has always been that version which shows the page for the selected function. The new version you posted opened an instance of the release Help even though the Beta Help was already open. Reverting to the installed Autoit3Help.exe returned to the behaviour I had been expecting - Beta Help with both F1 & Alt-F1. M23 ahh... You remember correctly and I fixed that issue also on July 26 to allow for opening both Production and Beta and being able to work with the correct version of the helpfile. Jos Edited September 15, 2014 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 More sharing options...
jchd Posted September 15, 2014 Share Posted September 15, 2014 So much for me. Must be eating frogs & snails. 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) Link to comment Share on other sites More sharing options...
Developers Jos Posted September 16, 2014 Author Developers Share Posted September 16, 2014 So much for me. Must be eating frogs & snails. I thought the same until somebody told me that the Beta Helpfile wouldn't open when the production Helpfile was already opened and visa versa. Back to the burgers and blooming onions. 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 More sharing options...
wraithdu Posted September 16, 2014 Share Posted September 16, 2014 Jos, something up with the way the last two versions of the help file EXE have been compiled. ESET NOD32 complains of a trojan or some such nonsense. Do you have it UPX'd or otherwise compressed? Compiler / language? Link to comment Share on other sites More sharing options...
jchd Posted September 16, 2014 Share Posted September 16, 2014 I also run Nod32 (currently v7.0.302.26) but I never experienced any interference with the help nor with compiled au3. 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) Link to comment Share on other sites More sharing options...
wraithdu Posted September 16, 2014 Share Posted September 16, 2014 9/16/2014 11:00:05 AM HTTP filter file http://www.autoitscript.com/autoit3/scite/download/beta_SciTE4AutoIt3/AutoIt3Help.exe a variant of Win32/Injector.ANNX trojan connection terminated - quarantined xxxxxxxx Threat was detected upon access to web by the application: C:Program Files (x86)GoogleChromeApplicationchrome.exe. Log entry. I'm running the same version of Nod32 7. Link to comment Share on other sites More sharing options...
jchd Posted September 16, 2014 Share Posted September 16, 2014 I don't see that; btw I'm using FF. 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) Link to comment Share on other sites More sharing options...
Developers Jos Posted September 16, 2014 Author Developers Share Posted September 16, 2014 (edited) I am using out standard C++ project file for the build which doesn't do any UPX compression. This version is build by VC11. Just did a scan on virustotal.com and ESET-NOD32 was indeed the only one indicating this as : "a variant of Win32/Injector.ANNX". All others stated it is Clean. Jos Edited September 16, 2014 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 More sharing options...
mLipok Posted September 30, 2014 Share Posted September 30, 2014 (edited) au3abbrev.properties proposals: include=#include <GUIConstants.au3>\n| change to this: include=#include <|.au3>\n or add new incl=#include <|.au3>\n EDIT: I do not know where to report such suggestions, and so far I reported here, if it is any other place please indicate. Edited September 30, 2014 by mLipok 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 Link to comment Share on other sites More sharing options...
JohnOne Posted September 30, 2014 Share Posted September 30, 2014 I believe you use trac for feature requests. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts