Jump to content
Sign in to follow this  
Jos

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

Recommended Posts

I also had to use the workaround to get my functions back. hmmmm, I have been using other editors so it's not that big a deal


My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites

I was able to fix this by completely uninstalling AutoIt and SciTE, deleting the C:\Users\<username>\AppData\Local\AutoIt v3\SciTE folder, and then re-installing it all, and finally editing line 24 as posted.

I didn't save the old folder content so I can't tell what was in there. I know that I had v3.3.8.1, then updated to v3.3.14.5, then later installed the new editor that Jos posted here.

56 minutes ago, Earthshine said:

I also had to use the workaround to get my functions back. hmmmm, I have been using other editors so it's not that big a deal

Out of curiosity, what other editors do you use for .au3?

Edited by ModemJunki

Always carry a towel.

Share this post


Link to post
Share on other sites

Sublimne Text 3 and I really love that open source SynWrite. Visual Code too but it's too bulky so mostly the others. Synwrite comes out of box able to treeview the functions.

Edited by Earthshine

My resources are limited. You must ask the right questions

 

Share this post


Link to post
Share on other sites

Hi Jos, 

Call: we have a file that is open in scite (as none admin) launched from a file and not from scite.exe opening
 The last saved session is not overwritten until the any scite.exe instance is to be closed ()

If I don't or didn't close any instance and go start up scite.exe with out any file s parameter I will only want it to start with my last saved session
Regardless.. 
@ the impression that there is no consideration when the opening just redirects to an open instance

Thanks
Deye

Edited by Deye

Share this post


Link to post
Share on other sites

Not sure I understand, but you are aware there is an option to check whether SciTE is already started. Disable that and it will always IP een n a new instance.

Just check the help for files the  exact parameter you need to put in sciteuser.peoperties as I am on my mobile and can check. ;)

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.
  :)

Share this post


Link to post
Share on other sites

Hi Jos, 

It's only weird why it isn't considered to be set as default or why no one cares to request it to be the default Behavior

it is killing me on refresh :bonk:

Maybe a small link at the OP "know how: help for scite settings" or basic known preset packages that can be shared would do it

Will try looking for any scite topic mentioning this ..

Thanks
Deye

Share this post


Link to post
Share on other sites

I do not really see why the default behavior is wrong. I actually added the option where all files are also opened that were open in the last session when you double click a file and SciTE isn't open yet.

As to all config options.... anybody interested enough in modifying stuff can open the helpfile and find the documentation. ;)   

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.
  :)

Share this post


Link to post
Share on other sites

Thanks  Jos, 

I changed the check.if.already.open to 0 in SciTEGlobal.properties and it works for me ..
Tried it first in SciTEUser.properties but it didn't override

for me, There are always two instances one for the started scite.exe (no parameter)
and the other: stand alone double clicked files
Starting up other stand alone get added to "second instance"

When a stand alone file starts up  I'm not sure if it needs to load the last session
unless you kept last saved session for the stand alone s (second instance), it would make some kind of sense

Anyways, for me double clicked files start separate whether there is another instance of scite.exe or not, even with a valid last saved session that contains extra files ..

On the same note, If someone can tell me how to make the mouse position stay put when a syntax error occurs .. :sweating:


Thanks
Deye
 

Share this post


Link to post
Share on other sites

Hi Jos,

As i pointed out, many times I open files for a short reviewing and then close them to realize later, when opening scite again, that my last main session is gone
It happens to me all the time (can never remember this one .. )
 
maybe you can add something that shouldn't bother any one:

That unless explicitly using optionally  : file > "Exit and Save Session" nothing will be ever saved when using a  regular exit or the  [x] button
And have in SciTEUser.properties: "Auto Save Session on close = 0"

"Exit and Save Session" can might as well remain as a dummy button if "Auto Save Session on close = 1" (the current default behavior)

problem solved  .. :tv_happy:


Thanks
Deye

Edited by Deye

Share this post


Link to post
Share on other sites

For anyone testing .. _GetIP() with\out #AutoIt3Wrapper_UseX64=y 
Do you get the same results ?

edit : maybe needs to be compiled .. will try later.

Deye

Edited by Deye

Share this post


Link to post
Share on other sites

I have made a new Beta version 4.1.1 of SciTE4AutoIt3 available in the beta directory. Just download both SciTE.exe and SciLexer.dll when you like to try it.

Quote

Release 4.1.1

  • Released 9 September 2018.
  • Optional indexing of line starts in UTF-8 documents by UTF-32 code points and UTF-16 code units added. This can improve performance for clients that provide UTF-32 or UTF-16 interfaces or that need to interoperate with UTF-32 or UTF-16 components.
  • Lexers added for SAS and Stata. Feature #1185.
  • Shell folder folds "if", "do", and "case". Feature #1144.
  • SciTE's menukey feature implemented on Windows.
  • For SciTE on Windows, user defined strip lists are now scrollable. Cursor no longer flickers in edit and combo boxes. Focus in and out events occur for combo boxes.
  • Fix a leak in the bidirectional code on Win32.
  • Fix crash on Win32 when switching technology to default after setting bidirectional mode.
  • Fix margin cursor on Cocoa to point more accurately.
  • Fix SciTE crash on GTK+ when using director interface.

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.
  :)

Share this post


Link to post
Share on other sites

Thanks.
I just start to use them.

Edited by mLipok

Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest beginning - communication with GitHub REST API Forum Rules *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    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 (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 *

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 * 

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

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 *

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

Share this post


Link to post
Share on other sites

I just merged the source from the official SciTE with our SciTE4AutoIt3 SVN, so need to check.
it is actually a little different:

  1. Press F5 -> Script start
  2. Press F5 -> First script in the queue starts again
  3. Script of First run ends -> start Second script

Tested the above with 2 different scripts to see this happening.

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.
  :)

Share this post


Link to post
Share on other sites

Is this behavior configurable? Also notice that if the first script uses _Singleton, that the behavior is different than you describe --

  1. Press F5 -> _Singleton Script start
  2. Press F5 -> First script in the queue starts again, but ends due to _Singleton check
  3. Press F5 -> Second script starts
  4. Output from both scripts still appears in the console

Share this post


Link to post
Share on other sites

Don't like this new behavior and just posted a question in the SciTE Google group whether this is intentional new behavior.
Will see what the answer is.

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.
  :)

Share this post


Link to post
Share on other sites

The menukey  feature will be reverted in 4.1.2 as there are several issues with it including the issues with shelling commands for a second time.
That should be available soon for me to merge into our 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.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Bhooshan
      I need to mute an ongoing call on Microsoft teams without activating the window. Teams allows us to mute using shortcut key Ctrl+Shift+m but only when the window is active.
      # Used set option as ongoing call can be with any person which leads to change in Title Name.
      AutoItSetOption ( "WinTitleMatchMode", 2 ) 
      # I am not clear with the control ID which will be good to use here and also the key combination of ^M       
      ControlSend ( "Microsoft Teams", "", "[CLASS:Intermediate D3D Window; INSTANCE:1]", "{ctrl down}")
       
      Can anyone help...!!! 
       

    • By Sayed
      Hi there, 
      I'm new in AutoIt forms and using AutoIt to automate desktop application (able to automate the application normally but facing issue when I've to re-run the application twice within the same script...so need help in this please)
      here is the steps then followed by the issue in a brief : 
      1- run application . 
      2- do some actions (click menus,activate windows,set texts..)
      3- close the application. 
      4- run the application again & access the same controls.
      5- open the same windows again (like step 2)
      6- perform some validations (by getting texts from some text boxes)
      7- close the application again (and repeat 1-7 for 15 times in average )
      The issue 
      * all controls are accessible in the first run and actions done successfully on controls (for steps 1-3) BUT from the second run of the application from step-4 it's able to set focus only the main application window.
      Note: only unique properties used to while mapping the controls. 
      Error that appear in the console :
      UIAWrappers.au3" (1673) : ==> Array variable has incorrect number of subscripts or subscript dimension range exceeded.: $x = Int($t[1] + ($t[3] / 2)) $x = Int($t[1] + (^ ERROR  
      Simple spy code  of one of the controls that has this strange issue(menubar&view menu Item): 
      ;~ *** Standard code maintainable *** #include "UIAWrappers.au3" AutoItSetOption("MustDeclareVars", 1) _UIA_setVar("oP1","Title:=XXX;controltype:=UIA_WindowControlTypeId;class:=WindowsForms10.Window.8.app") ;main app form xxx _UIA_setVar("oP2","Title:=menuStrip1;controltype:=UIA_MenuBarControlTypeId;class:=WindowsForms10.Window.8.app") ;menuStrip1 ;~ $oUIElement=_UIA_getObjectByFindAll("View.mainwindow", "title:=View;ControlType:=UIA_MenuItemControlTypeId", $treescope_subtree) _UIA_setVar("oUIElement","Title:=View;controltype:=UIA_MenuItemControlTypeId;class:=") ;ControlType:=UIA_MenuItemControlTypeId;classname:=") ;~ Actions split away from logical/technical definition above can come from configfiles ;~_UIA_Action("oP1","highlight") _UIA_Action("oP1","setfocus") ;~_UIA_Action("oP2","highlight") _UIA_Action("oP2","setfocus") _UIA_action("oUIElement","highlight") ;~_UIA_action("oUIElement","click")  
       
    • By Fenzik
      Hello All!
      i suggest to set default encoding in Scite4 for Autoit 3 to UTF 8 with Bom encoding, format recommended also in Autoit Help.
      In last editor version, when i open new script, for example Czech characters (č, ř, ž) aren't correct.
      So when i change Encoding to UTF 8 with Bom from Default Code page property state, everithing seems to be OK.
      Thank you and sorry for potentialy duplicated content.
      Fenzik
    • By jitb
      I have an eof problem in SciTE. I keep gitting this knitsu at the end of the open sesion.
      Please see below. The file should end at line 1220 but has invisable lines. What am I doing wrong?
    • By AutoitMike
      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
×
×
  • Create New...