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

## 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

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

##### Share on other sites

So currently all works well ?

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
*
How to use IE.au3  UDF with  AutoIt v3.3.14.x  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 to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 UDF * SMTP Mailer UDF * Dual Monitor resolution detection * * 2GUI on Dual Monitor System * _SciLexer.au3 UDF * SciTE - Lexer for console pane

"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: 2019-10-01

##### Share on other sites
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

Live for the present,
Dream of the future,
Learn from the past.

##### 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

##### Share on other sites

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

Live for the present,
Dream of the future,
Learn from the past.

##### 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

##### 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:

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 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

##### Share on other sites

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>

Jos

Live for the present,
Dream of the future,
Learn from the past.

##### 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

##### Share on other sites

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

TIA

##### 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

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

Edited by argumentum

##### Share on other sites

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

Live for the present,
Dream of the future,
Learn from the past.

##### 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.

##### Share on other sites
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

Live for the present,
Dream of the future,
Learn from the past.

##### 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.

##### Share on other sites
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

Live for the present,
Dream of the future,
Learn from the past.

##### Share on other sites
3 minutes ago, Jos said:

still have no idea where to start and the exact steps to take to make the crash happen.

this should give you the idea

##### Share on other sites
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

Live for the present,
Dream of the future,
Learn from the past.

##### 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.

##### Share on other sites

Still can't make it crash following those steps....sorry.

Live for the present,
Dream of the future,
Learn from the past.

##### Share on other sites
This topic is now closed to further replies.

• ### Similar Content

• Scite 3.4.4
Win 10
I click "Help" or press F1, there is no response
If I use the file explorer and double click Autoit.chm or Autoit3.chm help opens.
There is no dialog to check or uncheck "Always ask before opening this file" when clicking on these files.

If you are curious as to why I dont have the latest version, I am creating a back up laptop that has a VERY extensive automation application that I have written over the past 15 years.

An extremely potent, powerful, needed function has been deleted in the upgrade of Autoit in recent years that I can not do without. If my main laptop dies, which it almost did, I am in a very bad position. So I bought the exact same laptop and I am "cofiguring" it to work exactly the same as my main laptop. However, this one has been "Upgraded" to Win 10 which I hope is not the problem.
Thanks for any help
• By Beege
If you have every taken the time to set up a nice dark theme for your scite editor, you probably noticed shortly after a small yet really annoying flaw. For what ever reason, scite is not set up to let you change the caret fore color and caret line color per language. This really sucks if say you want to edit a properties file or any of the many other languages that Scite currently is setup to support. Pretty much all the other languages are set as light theme so unless you change the theme for those file types, you end up with something like below where the line color and caret are still using the dark theme colors. Line 3 in the pic:

To get around this I came up with the following that seems to work pretty well.

Add the following properties to SciteUser.properties file (Options -> Open User Options File). Update colors to your own needs. You can addionally add any other propertys that dont have a lexer language option in the same fashion.
# The default values (light themes) will be used for any lexer other than au3 caret.default.fore=#000000 caret.default.line.back=#FFFED8 selection.default.fore=#006000 selection.default.back=#F0A0A8 caret.au3.fore=#FFFFFF caret.au3.line.back=#111111 selection.au3.fore=#C2FFAE selection.au3.back=#f9f9f9
Add the following function to PersonalTools.Lua file. As jos pointed out, the OnStartup covers the filetab switches as well as the startup so only need the one function:
function PersonalTools:OnStartup() -- the "and" + "or" keywords are ternary operators here local sLex = self:IsLexer(SCLEX_AU3) and 'au3' or 'default' props['caret.line.back'] = props['caret.' .. sLex .. '.line.back'] props['caret.fore'] = props['caret.' .. sLex .. '.fore'] props['selection.fore'] = props['selection.' .. sLex .. '.fore'] props['selection.back'] = props['selection.' .. sLex .. '.back'] end
Last restart SciTE and that should be it. Let me know if you have any issues. Thanks

• Is there a way to remove the numbers from the tabs in Scite?
When you have multiple autoit programs open, the tabs are numbered, so you'll get something like 1 ProgramA.au3    2 Program2.au3   3 Program3.au3
I am working on programs with numbers as the first character, so I get  1 3-DoThis.au3     2 4-DoAnother.au3   3 5-DoTheRest.au3  (not the real program names, obviously :))
It would be nice if I could get rid of the tab number, and just have the program name on each tab.

• HI people,
I got a questions, I maintain code in autoIT and every time I compile a new version or modification, Scite generate 2 folders. One folder is finish by released and the other is tentative. I try to make some google search, but never find answer would satisfied myself. The dev who was maintain it before were using AutoIt3Wrapper_GUI, and I don't know if it's related. I look both folder, but they seem pretty identical, but I would like to know what it's the difference between those to folder. Anyone have a clue?

• ConsoleWrite('>Message here.' & @CRLF) outputs colored text (per + > - ! characters).
ConsoleWrite('warning' & @TAB & '38' & @TAB & 'more text ...' & @CRLF) enables jump to line 38 on doubleclick.

Using "jump to line" format, only red and pink text coloring seems possible (simply prefixing color directives to output-text disables jump to line functionality). Is it possible to combine the two (define custom color while keeping "jump to line" functionality)?
×

• Wiki

• Back

• #### Beta

• Git
• FAQ
• Our Picks
×
• Create New...