Jump to content

Recommended Posts

Posted (edited)

spoke too soon :)

just did a clean install again and the issue is still present :(

S4A 14.06.03.20 -- MD5: 99B5B11853D11C7BFBBD8FA91F9710C9

autoit 3.3.12.0

sorry guys

so... tell me what file is responsible for code indenting and we'll compare files

Edited by iCode

FUNCTIONS: WinDock (dock window to screen edge) | EditCtrl_ToggleLineWrap (line/word wrap for AU3 edit control) | SendEX (yet another alternative to Send( ) ) | Spell Checker (Hunspell wrapper) | SentenceCase (capitalize first letter of sentences)

CODE SNIPPITS: Dynamic tab width (set tab control width according to window width)

Posted (edited)

one thing i'm seeing in the 'au3abbrev.properties' file is that all of the sections are repeated twice -- example:

#; -- Directives --
include=#include <GUIConstants.au3>\n|
includeonce=#include-once\n|
reg=#region - |\n
ereg=#endregion\n|
nti=#NoTrayIcon\n|

the above, as with other blocks, are repeated twice

i'm guessing it's supposed to be that way, but just wanted to mention it just in case

Edited by iCode

FUNCTIONS: WinDock (dock window to screen edge) | EditCtrl_ToggleLineWrap (line/word wrap for AU3 edit control) | SendEX (yet another alternative to Send( ) ) | Spell Checker (Hunspell wrapper) | SentenceCase (capitalize first letter of sentences)

CODE SNIPPITS: Dynamic tab width (set tab control width according to window width)

  • Developers
Posted (edited)

That file looks fine... so back to how I can replicate the issue:

Please do the following:

  • change line 18 in AutoItIndentFix.lua to:     self.Debug = true
  • Use this code and hit the enter with the caret after the Else (Which is going wrong for you:
If 'this' Then
        'that'
    Else
  • Cut en Paste the debug info from the  SciTE outputpane in your reply.

 

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

Posted

the indent worked as it is supposed to, regardless of whether i backspace before entering 'Else' or not ... and ... after changing it back to 'false' i can no longer reproduce the problem o:)

sorry, i'm lost

JScript?

Debug: *** Enter detected => Start Indent checking
Debug: +### processing line:0 Curr_firstword::      Next_firstword::
Debug:  Curr_foldLvl:1024 Curr_lev:67109888   Curr_IsFoldHeader    :false        Parent_line:-1        Parent_foldLvl: -1
Debug:  Prev_foldLvl:1024 Prev_lev:1024   Prev_IsFoldHeader    :false   Prev_Parent_line:-1   Prev_Parent_foldLvl: -2
Debug:  Next_foldLvl:1024 Next_lev:1024   Next_IsFoldHeader    :false   Next_Parent_line:-1   Next_Parent_foldLvl: 0
Debug: *** Enter detected => Start Indent checking
Debug: +### processing line:1 Curr_firstword:if:      Next_firstword::
Debug:  Curr_foldLvl:1024 Curr_lev:67183616   Curr_IsFoldHeader    :true        Parent_line:-1        Parent_foldLvl: -1
Debug:  Prev_foldLvl:1024 Prev_lev:67109888   Prev_IsFoldHeader    :false   Prev_Parent_line:-1   Prev_Parent_foldLvl: -2
Debug:  Next_foldLvl:1025 Next_lev:67175425   Next_IsFoldHeader    :false   Next_Parent_line:1   Next_Parent_foldLvl: 0
Debug: *** Enter detected => Start Indent checking
Debug: +### processing line:2 Curr_firstword:'that:      Next_firstword::
Debug:  Curr_foldLvl:1025 Curr_lev:67175425   Curr_IsFoldHeader    :false        Parent_line:1        Parent_foldLvl: 1
Debug:  Prev_foldLvl:1024 Prev_lev:67183616   Prev_IsFoldHeader    :true   Prev_Parent_line:-1   Prev_Parent_foldLvl: 0
Debug:  Next_foldLvl:1025 Next_lev:67175425   Next_IsFoldHeader    :false   Next_Parent_line:1   Next_Parent_foldLvl: 2
Debug: *** Enter detected => Start Indent checking
Debug: +### processing line:3 Curr_firstword:else:      Next_firstword::
Debug:  Curr_foldLvl:1024 Curr_lev:67183616   Curr_IsFoldHeader    :true        Parent_line:-1        Parent_foldLvl: -1
Debug:  Prev_foldLvl:1025 Prev_lev:67175425   Prev_IsFoldHeader    :false   Prev_Parent_line:1   Prev_Parent_foldLvl: -2
Debug:  Next_foldLvl:1025 Next_lev:67175425   Next_IsFoldHeader    :false   Next_Parent_line:3   Next_Parent_foldLvl: 0
Debug: !  Current line:Found Case/End*/Else/Next/Until statement ...  update Indent.
Debug: !  Current line:Found Else/elseif statement ...  update Indent.

FUNCTIONS: WinDock (dock window to screen edge) | EditCtrl_ToggleLineWrap (line/word wrap for AU3 edit control) | SendEX (yet another alternative to Send( ) ) | Spell Checker (Hunspell wrapper) | SentenceCase (capitalize first letter of sentences)

CODE SNIPPITS: Dynamic tab width (set tab control width according to window width)

Posted (edited)

@Jos

For me it only happens if the If-EndIf pair is inside of Switch-Case-EndSwitch or Select-Case-EndSelect !

See:

NWVXovh.png

After giving enter:

OXyAes1.png

It's like the "Else" it were a "Case"

JS

Edited by JScript

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

  Reveal hidden contents

Somewhere Out ThereJames Ingram

somewh10.png

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

Posted

that's different than what i was experiencing - for me it happened anywhere

i just tested inside a Case and i couldn't reproduce it

probably going way out on a limb here, but did you try Jos's solution in post 105?

for whatever reason, i haven't had any problems after toggling that setting to true, then running a test, that back to false again

FUNCTIONS: WinDock (dock window to screen edge) | EditCtrl_ToggleLineWrap (line/word wrap for AU3 edit control) | SendEX (yet another alternative to Send( ) ) | Spell Checker (Hunspell wrapper) | SentenceCase (capitalize first letter of sentences)

CODE SNIPPITS: Dynamic tab width (set tab control width according to window width)

Posted (edited)

in au3abbrev.properties

What special char can be used ?

I know this one:

  Quote

 

n

t

|

 

is there any other ?

Edit: typo

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:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted (edited)

  On 6/23/2014 at 9:02 PM, JScript said:

@Jos

For me it only happens if the If-EndIf pair is inside of Switch-Case-EndSwitch or Select-Case-EndSelect !

See:

NWVXovh.png

-snip-

It's like the "Else" it were a "Case"

JS

Do you know how hard it is to cut and paste this into SciTE... so guess you are expecting me to type it all. ;)  ... lets see..

Works fine here so please do as I suggested and add the Debug option and Cut&Paste the OutputPane result.

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

  • Developers
Posted

  On 6/24/2014 at 1:58 PM, mLipok said:

in au3abbrev.properties

What special char can be used ?

 

This is what the SCiTE Doc states included in the helpfile:

  Quote

 

To use an abbreviation, type it and use the Expand Abbreviation command or the Ctrl+B key. The abbreviation is replaced by an expansion defined in the Abbreviations file. You can open the Abbreviations file with a command in the Options menu and add abbreviations. There is a default abbreviations file but a different abbreviations file can be set for particular file extensions.

Each line in the files looks like "abbreviation=expansion".

The abbreviations names can have any character (except perhaps control chars, surely for CR and LF), including high Ascii chars (accented chars).

Names have properties files limits: they cannot start with sharp (#) or space or tab (but can have spaces inside); and they cannot have '=' character inside.

Abbreviations names are limited to 32 characters. It is probably enough for abbreviations...

An expansion may contain new line characters indicated by 'n' and a caret position indicated by the '|' character. To include a literal '|' character, use '||'.

Some simple examples are included in the distributed Abbreviations file.

When expanding, the names don't need to be separated from the previous text. Ie. if you define 'é' as '&eacute;', you can expand it inside a word.

When multiple abbreviation names match, the longest matching name will be expanded.

 

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

Posted

gee
I see that before I read it too short and too fast ;)

thanks

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:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

AutoItWrapper Question:

When Build using F7 then AutoIt wrapper show the progres window.

I do now want to see that window.

For me enough are messages in SciTE console.

Is it possible to disable the Progress Bar ?

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:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted
  On 6/25/2014 at 4:58 PM, mLipok said:

AutoItWrapper Question:

When Build using F7 then AutoIt wrapper show the progres window.

I do now want to see that window.

For me enough are messages in SciTE console.

Is it possible to disable the Progress Bar ?

Currently only possible by adding the "/NoStatus" parameter to the commandline.

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

  • Developers
Posted

@jscript,

  On 6/24/2014 at 6:15 PM, Jos said:
Works fine here so please do as I suggested and add the Debug option and Cut&Paste the OutputPane result.

 

Any chance you can try this?

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

Posted
  On 6/25/2014 at 5:08 PM, Jos said:

Currently only possible by adding the "/NoStatus" parameter to the commandline.

Jos

 

but can I do it from SciTe ? 

in any way ie. modyfing config ?

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:

  Reveal hidden contents

Signature last update: 2023-04-24

  • Developers
Posted

You simply add this in your SciTEUser.properties:

command.build.$(au3)="$(SciteDefaultHome)\AutoIt3Wrapper\AutoIt3Wrapper.exe" /NoStatus /prod /in "$(FilePath)"

I could consider adding a Directive for this I guess.

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

Posted

First I want to check how this works and then rerport if I find any othere issue or this became exactly what I mean.

But the idea with new directive is very good.

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:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

At first glance, it works great.

edit:

I mean:

  Quote

 

command.build.$(au3)="$(SciteDefaultHome)AutoIt3WrapperAutoIt3Wrapper.exe" /NoStatus /prod /in "$(FilePath)"

 

beta downloading in progress....

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:

  Reveal hidden contents

Signature last update: 2023-04-24

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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