Jump to content

New SciTE4AutoIt3 available with updated SciTE v3.4.4


Jos
 Share

Recommended Posts

That is the default tempdir value. this can be changed in autoit3wrapper.ini by setting tempdir=

 

Jos

What section below I add this item?:

 

' This INI sets the Defaults for AutoIt3Wrapper which can be overridden by the Compiler Directives

' Use 1 for Yes and 0 for No on options like Allow_Decompile,UseUPX and UseAnsi

' See documentation for an explanation on purpose of the fields and their values

' AutoIt section for aut2exe and AutoIt3

[Autoit]

aut2exe=

Icon=

OutfileType=

Compression=

PassPhrase=

Allow_Decompile=

UseUpx=

UseAnsi=

' Resource update section

[Res]

Language=

Comment=

Description=

Fileversion=

LegalCopyright=

Field1Name=

Field1Value=

Field2Name=

Field2Value=

[Other]

Run_AU3Check=

AU3Check_Stop_OnWarning=

AU3Check_Parameter=

Run_Before=

Run_After=

[Config]

ResHackerPath=

RCExePath=

JS

Edited by JScript

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

When using the zip file it is assumed to run portable and that means these files are in the right place for running it in that mode.

I don't understand that answer. These files are in the Scite folder, and if I just copy them into an existing installation (yes, in a portable "install"), it will overwrite my settings files. I thought the whole purpose of the *user.properties files was so that wouldn't happen during an upgrade?

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Link to comment
Share on other sites

What section below I add this item?:

 

' This INI sets the Defaults for AutoIt3Wrapper which can be overridden by the Compiler Directives

' Use 1 for Yes and 0 for No on options like Allow_Decompile,UseUPX and UseAnsi

' See documentation for an explanation on purpose of the fields and their values

' AutoIt section for aut2exe and AutoIt3

[Autoit]

aut2exe=

Icon=

OutfileType=

Compression=

PassPhrase=

Allow_Decompile=

UseUpx=

UseAnsi=

' Resource update section

[Res]

Language=

Comment=

Description=

Fileversion=

LegalCopyright=

Field1Name=

Field1Value=

Field2Name=

Field2Value=

[Other]

Run_AU3Check=

AU3Check_Stop_OnWarning=

AU3Check_Parameter=

Run_Before=

Run_After=

[Config]

ResHackerPath=

RCExePath=

JS

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

What section below I add this item?:

JS

Are you aware the .au3 for the wrapper is in the folder with the executable? Now I don't have the latest version installed on this machine, but it doesn't seem like something that should change very often, so=

$TempDir = _WinAPI_ExpandEnvironmentStrings(IniRead(@ScriptDir & "\AutoIt3Wrapper.ini", "Other", "TempDir", ""))

 

Link to comment
Share on other sites

  • Developers

I don't understand that answer. These files are in the Scite folder, and if I just copy them into an existing installation (yes, in a portable "install"), it will overwrite my settings files. I thought the whole purpose of the *user.properties files was so that wouldn't happen during an upgrade?

Agree I could do this differently and will rename those files so they won't mess up your portable setup.

Will do that for the next version.

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

@AdmiralClaws

Thanks buddy, but unfortunately I do not understand!

There is a reason the helpfile is made. ;)

Yes, I know, but I just posted the question for the simple fact that I have not understood how to do this in practice!

Forgive me if my intelligence is not enough to understand something that is very simple for you, but it would be great If you could reproduce an example.

JS

http://forum.autoitbrasil.com/ (AutoIt v3 Brazil!!!)

Somewhere Out ThereJames Ingram

somewh10.png

dropbo10.pngDownload Dropbox - Simplify your life!
Your virtual HD wherever you go, anywhere!

Link to comment
Share on other sites

  • Developers

@AdmiralClaws

Thanks buddy, but unfortunately I do not understand!

Yes, I know, but I just posted the question for the simple fact that I have not understood how to do this in practice!

Forgive me if my intelligence is not enough to understand something that is very simple for you, but it would be great If you could reproduce an example.

JS

There was no intent to question your intelligence and you only asked where to make the change I indicated. Well the "where" is described in the helpfile. ;)

So have you made the change in %localappdata%AutoIt v3SciTEAutoIt3WrapperAutoIt3Wrapper.ini and didn't it work?

If so then tell me what you exactly did and show me the SciTEOutput pane info when doing a Compile.

Jos

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

Au3Stripper /rsln replaces an incorrect number for @ScriptLineNumber in a function parameter default value.

v14.801.1932.0 currently replaces @ScriptLineNumber in a function parameter default with the line number of the callee code.  It should be the line number of the caller code.  To implement this, it could automatically insert default arguments for all unspecified function arguments and also the line number of the calling code, where the function call occurs.
 

Here is the bug report that I posted for this issue:

https://www.autoitscript.com/trac/autoit/ticket/2867#ticket
 

Thanks Jos for making quality tools for AutoIt development.

Link to comment
Share on other sites

I make a repro to check:

#AutoIt3Wrapper_Run_Au3Stripper=Y
#Au3Stripper_Parameters=/MO /rsln
#include <array.au3>
MsgBox(0, '', @ScriptLineNumber)

and the result is:

MsgBox(0, '',  1169)

this is correct line in test_Au3Stripper_stripped.au3

So please make your repro to show where is the issue.

edit: attached file

test_Au3Stripper.ZIP

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

/rsln is missing in the Au3Stripper Documentation.

UDF List:

 
_AdapterConnections()_AlwaysRun()_AppMon()_AppMonEx()_ArrayFilter/_ArrayReduce_BinaryBin()_CheckMsgBox()_CmdLineRaw()_ContextMenu()_ConvertLHWebColor()/_ConvertSHWebColor()_DesktopDimensions()_DisplayPassword()_DotNet_Load()/_DotNet_Unload()_Fibonacci()_FileCompare()_FileCompareContents()_FileNameByHandle()_FilePrefix/SRE()_FindInFile()_GetBackgroundColor()/_SetBackgroundColor()_GetConrolID()_GetCtrlClass()_GetDirectoryFormat()_GetDriveMediaType()_GetFilename()/_GetFilenameExt()_GetHardwareID()_GetIP()_GetIP_Country()_GetOSLanguage()_GetSavedSource()_GetStringSize()_GetSystemPaths()_GetURLImage()_GIFImage()_GoogleWeather()_GUICtrlCreateGroup()_GUICtrlListBox_CreateArray()_GUICtrlListView_CreateArray()_GUICtrlListView_SaveCSV()_GUICtrlListView_SaveHTML()_GUICtrlListView_SaveTxt()_GUICtrlListView_SaveXML()_GUICtrlMenu_Recent()_GUICtrlMenu_SetItemImage()_GUICtrlTreeView_CreateArray()_GUIDisable()_GUIImageList_SetIconFromHandle()_GUIRegisterMsg()_GUISetIcon()_Icon_Clear()/_Icon_Set()_IdleTime()_InetGet()_InetGetGUI()_InetGetProgress()_IPDetails()_IsFileOlder()_IsGUID()_IsHex()_IsPalindrome()_IsRegKey()_IsStringRegExp()_IsSystemDrive()_IsUPX()_IsValidType()_IsWebColor()_Language()_Log()_MicrosoftInternetConnectivity()_MSDNDataType()_PathFull/GetRelative/Split()_PathSplitEx()_PrintFromArray()_ProgressSetMarquee()_ReDim()_RockPaperScissors()/_RockPaperScissorsLizardSpock()_ScrollingCredits_SelfDelete()_SelfRename()_SelfUpdate()_SendTo()_ShellAll()_ShellFile()_ShellFolder()_SingletonHWID()_SingletonPID()_Startup()_StringCompact()_StringIsValid()_StringRegExpMetaCharacters()_StringReplaceWholeWord()_StringStripChars()_Temperature()_TrialPeriod()_UKToUSDate()/_USToUKDate()_WinAPI_Create_CTL_CODE()_WinAPI_CreateGUID()_WMIDateStringToDate()/_DateToWMIDateString()Au3 script parsingAutoIt SearchAutoIt3 PortableAutoIt3WrapperToPragmaAutoItWinGetTitle()/AutoItWinSetTitle()CodingDirToHTML5FileInstallrFileReadLastChars()GeoIP databaseGUI - Only Close ButtonGUI ExamplesGUICtrlDeleteImage()GUICtrlGetBkColor()GUICtrlGetStyle()GUIEventsGUIGetBkColor()Int_Parse() & Int_TryParse()IsISBN()LockFile()Mapping CtrlIDsOOP in AutoItParseHeadersToSciTE()PasswordValidPasteBinPosts Per DayPreExpandProtect GlobalsQueue()Resource UpdateResourcesExSciTE JumpSettings INISHELLHOOKShunting-YardSignature CreatorStack()Stopwatch()StringAddLF()/StringStripLF()StringEOLToCRLF()VSCROLLWM_COPYDATAMore Examples...

Updated: 22/04/2018

Link to comment
Share on other sites

I couldn't find this in the help file.  Hopefully I didn't overlook it. I did a search for this in the lua folder but no joy.  I was wondering what 8 meant as an option for calltip.au3.delimiter.style?  Also, are there other options?  If so what are they please.

Edited by jaberwacky
Link to comment
Share on other sites

http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/History.html

 

- Added #Au3Stripper_Parameters Parameter:
        - /rsln -> Replace @ScriptLineNumber with the actual line number for source debug purposes with compiled scripts. (Idea of 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 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

/rsln is missing in the Au3Stripper Documentation.

Is already fixed in my repo.

 

Will the following code still work correctly?

_Error("Hello, World!")

Func _Error($sMsg, $iLine = @ScriptLineNumber)
    ConsoleWrite("Error on line " & $iLine & ": " & $sMsg & @LF)
EndFunc

Of course not is the obvious statement as the @ScriptLineNumber is replaced with the actual line number it is on, plus the fact that you cripple the Func. :)

This option is there for Debugging purposes and people are expected to understand what they are doing.

As to the shown code there is an easy fix. Just use:

_Error("Hello, World!", @ScriptLineNumber )

Jos

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

  • Developers

I couldn't find this in the help file.  Hopefully I didn't overlook it. I did a search for this in the lua folder but no joy.  I was wondering what 8 meant as an option for calltip.au3.delimiter.style?  Also, are there other options?  If so what are they please.

calltip.au3.delimiter.style is an modification I made in SciTE and described in the History of the helpfile:

- Added logic to better determine the current CallTip parameter being edited by testing for the delimiter style define with:
        calltip.au3.delimiter.style=8

It Fixes the fact that comma's in literal strings of Calltips were considered delimiters. This parameters tells SciTE which style is used as Delimiter so any other comma is ignored.

Guess nobody really noticed this change in the last version. 

Jos

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 understand the idea behind the option but wondering what other options there were other than 8. And what other options than 8 might there be if any?  For example is 9 an option?  If so then what would it mean?  Where do I find out?  Etc.

Edited by jaberwacky
Link to comment
Share on other sites

  • Developers

I understand the idea behind the option but wondering what other options there were other than 8. And what other options than 8 might there be if any?  For example is 9 an option?  If so then what would it mean?  Where do I find out?  Etc.

Guess you are missing what Style means here :)

The Lexer assigns one of the below known AU3Styles to each character in the script. Only the matching style characters will be seen as Delimiter.

So 0 is any comma and 8 in this case is any comma that has the Operator style.

# White space
style.au3.0=fore:#000000
# Comment line
style.au3.1=fore:#008000,italics
# Comment block
style.au3.2=fore:#008000,italics
# Number
style.au3.3=fore:#0000FF
# Function
style.au3.4=fore:#000090
# Keyword
style.au3.5=fore:#0000FF
# Macro
style.au3.6=fore:#808000
# String
style.au3.7=fore:#FF0000
# Operator
style.au3.8=fore:#FF8000
# Variable
style.au3.9=fore:#5A5A5A
# Send keys in string
style.au3.10=fore:#808080
# Pre-Processor
style.au3.11=fore:#808000
# Special
style.au3.12=fore:#DC143C
#Abbrev-Expand
style.au3.13=fore:#FF0000
# COM Objects
style.au3.14=fore:#993399
#Standard UDF's
style.au3.15=fore:#0080FF

All clear?

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

There was a recent change for ShowProgress when using F7.
The progressbar isn't shown anymore.

#AutoIt3Wrapper_ShowProgress=N/Y

may be used to alter the behaviour.

And a INI setting
progressbar=1
can do the job, due to the change log.
My question:
What is the full pathname of the user INI file and what is the section name.
Please give me the link to this information.
Thanks

App: Au3toCmd              UDF: _SingleScript()                             

Link to comment
Share on other sites

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...