seadoggie01 Posted April 3, 2020 Share Posted April 3, 2020 That's a SciTE issue. Just hit the end key while on that line and it'll recalculate the width of the script. At that point though, I would really suggest wrapping the line with an underscore or using a few temporary variables All my code provided is Public Domain... but it may not work. Use it, change it, break it, whatever you want. Spoiler My Humble Contributions:Personal Function Documentation - A personal HelpFile for your functionsAcro.au3 UDF - Automating Acrobat ProToDo Finder - Find #ToDo: lines in your scriptsUI-SimpleWrappers UDF - Use UI Automation more Simply-erKeePass UDF - Automate KeePass, a password managerInputBoxes - Simple Input boxes for various variable types Link to comment Share on other sites More sharing options...
Developers Jos Posted April 3, 2020 Author Developers Share Posted April 3, 2020 (edited) This is a known querk with SciTE.... Just hit the End key and the scrollbar will adapt. No much I can do as this is something in the Standard version I use. Jos EDIT @seadoggie01... get out of my head please ! Edited April 3, 2020 by Jos Danp2 and seadoggie01 2 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...
Colduction Posted April 3, 2020 Share Posted April 3, 2020 39 minutes ago, Jos said: This is a known querk with SciTE... Is there any hope to fix in future updates? Link to comment Share on other sites More sharing options...
Developers Jos Posted April 3, 2020 Author Developers Share Posted April 3, 2020 35 minutes ago, Colduction said: Is there any hope to fix in future updates? That something you need to ask here: https://groups.google.com/forum/#!forum/scite-interest Jos Colduction 1 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...
wyf Posted May 21, 2020 Share Posted May 21, 2020 A very strange phenomenon: On the disk partition outside the system C drive, use AutoIt3Wrapper.au3 (19.1127.1402.5) to test @ScriptDir, The result returns @ScriptDir = 😄 \ Users \ ... AutoIt3Wrapper.au3 (19.1127.1402.0) and (19.1127.1402.3) return correct Link to comment Share on other sites More sharing options...
Developers Jos Posted May 21, 2020 Author Developers Share Posted May 21, 2020 @wyf, It is unclear to me what you are saying. please be a little more explicit by showing some code and the output of the SciTE Console. 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...
wyf Posted May 21, 2020 Share Posted May 21, 2020 (edited) Sorry! Test again and return to normal! It may be a problem with my windows 10 system! Apologies again! Edited May 21, 2020 by wyf Link to comment Share on other sites More sharing options...
Purity8 Posted May 21, 2020 Share Posted May 21, 2020 Console doesn't seem to support Chinese characters. I've set everything to UTF-8 encoding beforehand, so everything else displays Chinese characters normally. I learned this from using Notepad2. When writing to console: Global Const $sVar = 王 ConsoleWrite("sVar : " & $sVar) In the console, sVar will appear as question mark (?). Exceptions are Msg & Input boxes. These display Chinese normally. Link to comment Share on other sites More sharing options...
wyf Posted May 21, 2020 Share Posted May 21, 2020 The strange phenomenon occurs when the path string or file name has Chinese characters. Link to comment Share on other sites More sharing options...
wyf Posted May 21, 2020 Share Posted May 21, 2020 The problem may be due to the judgment processing of "AutoIt3Wrapper.au3" "Main script copied to temp file because of unicode characters in one of the filenames:" Link to comment Share on other sites More sharing options...
Purity8 Posted May 21, 2020 Share Posted May 21, 2020 (edited) @wyf, I was about to point that out too. Thanks for confirming. Everything else works normally internally with UTF-8 & externally in respect of Dir's being created successfully with Chinese in string and path. Edited May 21, 2020 by Purity8 Link to comment Share on other sites More sharing options...
argumentum Posted May 24, 2020 Share Posted May 24, 2020 I was thinking that given the differences between WIN_10 environments, OS:WIN_10 don't say enough. Could you add the ReleaseId to it, like OS:WIN_10(1903) to the wrapper ? ConsoleWrite('+ ReleaseId: ' & RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion", "ReleaseId") & @CRLF) Thanks Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 24, 2020 Author Developers Share Posted May 24, 2020 Added to the current Beta version.... tnx Musashi, argumentum, jchd and 1 other 4 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...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 (edited) Au3Stripper ended with errors, using original scriptfile.rc:1 Au3Stripper wisely uses the original on potential errors. But we have the option to use: #Au3Stripper_Off Stop the Stripping process below this line #Au3Stripper_On Start the Stripping process below this line #Au3Stripper_Ignore_Funcs= Do not Strip these functions. ... . #Au3Stripper_Ignore_Variables= Do not Strip these variables. ... . now, could you implement a #Au3Stripper_Ignore_Errors=TheseFunc* ? This request is because Au3Stripper can guess so much and only so much. I the coder, know for a fact, that those functions will not misbehave but Au3Stripper can not risk it, hence, a "ignore these errors, there are on the coder" would be good to have. I hope is an error counter that you can play with, or some simple thing. Thanks. Edit: https://www.autoitscript.com/forum/files/file/500-ondebugmsgbox/ is a good example of something that would benefit from this. Edited May 25, 2020 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 25, 2020 Author Developers Share Posted May 25, 2020 That line is generated by AutoIt3Wrapper, which then decides to use the original. In case you always want to use the Stripped version anyways you simply use the appropriate #AutotIt3Wrapper directive: (last one) ; Au3Stripper Settings #AutoIt3Wrapper_Run_Au3Stripper= ;(Y/N) Run Au3Stripper before compilation. default=N #Au3Stripper_Parameters= ; Au3Stripper parameters...see SciTE4AutoIt3 Helpfile for options #AutoIt3Wrapper_Au3stripper_OnError= ;(C/S/ForceUse) Continue/Stop on Errors/Continue using stripped source in Exe (Default=C) 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...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 (edited) ...ok, that is true, but ... can I have it, please, please, please, please ? That way an UDF that is known to be kosher can be "error exempt" AND, the coder can be told that there is a problem with his/her code, unrelated to the "proven error exempt" part declared in the distributed UDF. And I am painfully aware of the power of such, and the misuse/misapplication of it, and the complains down the road due to inexperienced ppl coding, and ... the whole 9 yards. But it would certainly be welcomed. Edit: I hard coded the offending function in the UDF I used as an example to avoid the warning, but this is not the only piece of code where I could use the requested feature. Edited May 25, 2020 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 25, 2020 Author Developers Share Posted May 25, 2020 (edited) 2 hours ago, argumentum said: ...ok, that is true, but ... can I have it, please, please, please, please ? So you would like to be able to add : #Au3Stripper_Ignore_Errors=DllCallbackRegister To make au3stripper totally ignore this error for the specified functions: -### StripOnly/StripFunc Error: Found DllCallbackRegister() statement using unsolvable Func, which will/could lead to removal of Funcs that are used by this Function. .. and also not trigger an rc=1 returncode in case this was the only issue? What exactly is the benefit for this in stead of using the option I provided? Jos Edited May 25, 2020 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...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 (edited) ..skip the function. The user may use DllCallbackRegister() and mess up, so a global disregard for all DllCallbackRegister() would not be wise. And yes to the "not trigger an rc=1" for the function that is excluded from error counts, if the only error is in the declared exempt function, otherwise it should return an error. The idea would be to ignore errors from a function or functions, but do check everything, not excluded/ignored, as usual. If the only viable simple solution is to exclude a set of error type, then no, it would not be the idea. In a way I'm making a distinction between UDFs and scripts. An UDF is something a scripter includes in the script and the UDF, is some magical code that someone else wrote and does its magical thing ( because scripting kids, like my self, see it just like that ). This would be a tool meant for the experienced coder that knows what is doing. Edited May 25, 2020 by argumentum Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Developers Jos Posted May 25, 2020 Author Developers Share Posted May 25, 2020 (edited) Skipping the function i assume you mean skipping reporting any issues in that function? I also see you put this line at the top: #Au3Stripper_Ignore_Errors=__DebugMsgBox_* So you would like to simply ignore any error in any of the UDF's with that mask? Jos Edited May 25, 2020 by Jos argumentum 1 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...
argumentum Posted May 25, 2020 Share Posted May 25, 2020 yes Follow the link to my code contribution ( and other things too ). FAQ - Please Read Before Posting. Link to comment Share on other sites More sharing options...
Recommended Posts