Jump to content

July 8, 2018: New SciTE4AutoIt3 available with the updated SciTE v4.1.0 release


Jos
 Share

Recommended Posts

Whatever caused these errors has been solved when i replaced

"AutoIt3Wrapper.au3" v18.708.1148.0

with the beta

"AutoIt3Wrapper.au3" v18.708.1148.8

screenshot - 02112018-1100.jpg

screenshot - 02112018-1156.jpg

Edited by careca
Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

So currently all works well ?

 

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 Codefor 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 APIErrorLog.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 TaskSchedulerIE 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 stuffOnHungApp handlerAvoid "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"
:naughty:  :ranting:, 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

  • Developers
20 minutes ago, careca said:

Whatever caused these errors has been solved when i replaced

"AutoIt3Wrapper.au3" v18.708.1148.0

with the beta

"AutoIt3Wrapper.au3" v18.708.1148.8

Correct, we fixed that issue here remember?...:  ;)

 

Edited 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

This is a bit confusing to me so let me recap:

I had installed the SciTE4AutoIt3 v17.224.935.0, when i installed the version on the first post of this topic,

SciTE4AutoIt3 v18.708.1148.0, i would get those errors, when trying to compile or run a script,

now i replaced that file and it works again.

So i would say that maybe this file should be included on a new release of SciTE, let's call it SciTE4AutoIt3 v18.708.1148.8

one that has already got the wrapper included and prevents this error in the future for other people. Makes sense?

Edited by careca
Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

  • Developers

Understand it can be confusing, but like the link shows, we worked on it and found the issue and was fixed in 18.708.1148.1 as documented in the history.log:

*** Updated AutoIt3Wrapper v18.708.1148.0 (Jos)
    - 18.703.1808.1 renamed "#AutoIt3Wrapper_Au3Stripper_Stop_OnError" to "#AutoIt3Wrapper_Au3Stripper_OnError" with now as options S,C,F,Stop,Continue,ForceUse
    - 18.708.1148.1 Added #include <WinAPIFiles.au3> back in the included file list to ensure backward compatibility.
    - 18.708.1148.2 Added "Tidy_Stop_OnError" support to the AutoIt3Wrapper.INI file.
                    Changed HiDPI settings for Win 10 compatibility.
    - 18.708.1148.4 Added logic to be able to display Console Output of script that have #RequireAdmin while SciTE runs at normal level.
    - 18.708.1148.5 Added support to allow to Stop Execution or Restart for scripts with #RequireAdmin while SciTE runs at normal level.
                    It won't hang anymore when you reply No on the UAC and detect the elevated process didn;t start.
    - 18.708.1148.6 Reverted HiDPI changes made in 18.708.1148.2 as problems are reported. needs investigation.
    - 18.708.1148.7 Changed check for RequireAdmin AutoIt3Wrapper startup.

It is due to the release of Autoit3 you are running which doesn't include WinAPIFiles.au3 in WinAPI.AU3 yet, and we had it removed from AutoIt3Wrapper assuming it always did. 
Either...  That is indeed fixed. :)  

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

Thank you for the clarification.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

@Jos hi, i thought all problems were fixed, but i only tested the run, now when i tried to compile i got this:

 

screenshot - 05112018-1543.jpg

Output

Spoiler

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "C:\Users\W10\Desktop\Roster\txt2cal-ics.au3"
+>15:48:25 Starting AutoIt3Wrapper v.18.708.1148.8 SciTE v.4.1.0.0   Keyboard:00000816  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\W10\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\W10\AppData\Local\AutoIt v3\SciTE
> #pragma Compile(out, YourFileName) and/or #pragma Compile(x64, true/false) found:
-    Ignoring the following #AutoIt3Wrapper_#directives:
-    ==> #AutoIt3Wrapper_OutFile*
-    ==> #AutoIt3Wrapper_Compile_both
-    ==> #AutoIt3Wrapper_UseX64
>Running Tidy (18.708.1148.0)  from:C:\Program Files (x86)\AutoIt3\SciTE\tidy
+>15:48:25 Tidy ended.rc:0
>Running AU3Check (3.3.14.2)  params:-d -w 1 -w 2 -w 3 -w- 4 -w 6 -w- 7  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\W10\Desktop\Roster\txt2cal-ics.au3
+>15:48:25 AU3Check ended.rc:0
>Running:(3.3.14.2):C:\Program Files (x86)\AutoIt3\aut2exe\aut2exe.exe  /in "C:\Users\W10\Desktop\Roster\txt2cal-ics.au3" /out "C:\Users\W10\AppData\Local\AutoIt v3\Aut2exe\~AUAD5A.tmp.exe" /icon "C:\Users\W10\Desktop\Roster\cal.ico" /comp 2
+>15:48:26 Aut2exe.exe ended.C:\Users\W10\AppData\Local\AutoIt v3\Aut2exe\~AUAD5A.tmp.exe. rc:0
>15:48:26 Performing the Program Resource Update steps:
> #pragma Compile() found that updates the VERSION Resources.
-    Ignoring all #AutoIt3Wrapper_* #directives that would normally update the VERSION section!
...>Adding original Script source to RT_RCDATA,999 in the Output executable.
+>15:48:46 AutoIt3Wrapper Finished.
>Exit code: 1    Time: 22.12

 

Edited by careca
Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

  • Developers

I think I found the issue ......  although the real issue is you are upgrading SciTE4AutoIt3 without upgrading AutoIt3!

Add the below line to Autoit3Wrapper line 51:

#include <APIResConstants.au3>

.. and try again please.

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

Thanks, that solved it.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

  • 1 month later...

This is the story ( https://www.autoitscript.com/forum/topic/197080-using-ui-automation-code-in-autoit/?do=findComment&comment=1413641 )

Could you run the SciTE code in a debugger to see what happens when a control is investigated with UIA ?

TIA 

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

use "SampleControls.au3" to replicate the above mention issue. 

PS: ..but use the newer version with all the #Regions in it. ( I have every version from each distro. from way back :) )

PS2: it happens as the "code plane" is investigated

Capture.png

..when you click this plane right after, then it crashes.

Edited by argumentum

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • Developers

So, run this by me but this time a little less fragmented...  what are the exact steps after I open the SampleControl.au3 to get the crash? :)
ps. I use SciTE 4.1.2 available in Beta so you could also try that before replying.

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

7 minutes ago, Jos said:

use SciTE 4.1.2 available in Beta

got me "SciLexer.dll, 2018-11-08 15:14" and "SciTE.exe, 2018-10-18 20:29" and replaced those only. Same experience.
I've discovered that SciTE tabs, with certain scripts, will crash the editor when inspecting "Scintilla1"  with UI Automation tools.
The one I used for this is the Control viewer mod. I put together but troubleshooting that, even Inspect.exe (Active Accessibility Object Inspector (64-bit UNICODE Release)) from Microsoft ( circa 2001) crashes the editor.
So, I've found that if I remove code from SampleControls.au3 in "AutoIt3\Examples\GUI" folder, it does not crash, but can not drill down to what is exactly, I figure that if you run it with the debug on your IDE, maybe you can find the reason for the crash.
The one from Scite's site does not crash, so it must be something introduced when switching from 3.x to 4. x.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • Developers
4 minutes ago, argumentum said:

The one from Scite's site does not crash,

Which one as the SciTE site also has 4.x?  Also is the AutoIt3 lexer enabled as that is disabled as standard in the official distribution?

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

official distribution does not have the option in language selector and the F5, F7, etc., are disabled. But it does not crash. I've tried it to see if is something of our distribution or SciTE's code itself ... but is our editor the one that shows the mishap.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • Developers
Just now, argumentum said:

option in language selector and the F5, F7, etc.,

That is what I mentioned, AutoIt3 lexer is disabled ( plus a very old version).  ;)  

I would be happy to check it out to see if it is something in the official distro or our  just our version, but (call me dumb or something) still have no idea where to start and the exact steps to take to make the crash happen.

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

  • Developers
8 minutes ago, argumentum said:

this should give you the idea

No it does not.  I am running them both but can't make it fail. 

So without exact steps I am in the dark.

Edited 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

I've tried on a VM to see if is in this PC only and it replicated the failure.

The steps I take are to use any UI exploration tool. I use  Control viewer mod.

Then load in the editor the "\AutoIt3\Examples\GUI\SampleControls.au3" file.

Then drag the "Browse tool" from CV.exe while "UIA highlight" is enabled, and highlight "Scintilla1", then release the tool.

Then click "Scintilla1" and that should show the crash.

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

  • Jos locked and unpinned this topic
Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...