Jump to content

Recommended Posts

  • Developers
Posted (edited)

6/3/2014: re-Uploaded a new SciTE4AutoIt3.exe installer with an updated SciTE v3.4.1 release.

These are the major changes:

- 6/3 Fixed several regressions.
- Fixes for reported bugs in Au3Stripper.
- Many other minor fixes.

Enjoy,
Jos

Addition/Changes/Fixes in the current installer:

--------------------------------------------------------------------------------------------------
6/3/2014
*** Updated AutoIt3Wrapper 2.2.0.3 (Jos)
    - Reverted the changes made for Environment variables translation due to a regression when using the GUI.
*** Updated Tidy v2.4.1.6 (Jos)
    - Fixes regression when Delim=0 in some occasions adding a extra "(" character.
*** Updated Syntax files to latest production version (Jos)
*** Updated several small Helpfile issues.
*** Included the proper latest version of the totally re-written AutoItIndentFix.lua.
--------------------------------------------------------------------------------------------------
5/31/2014
*** Updated our version of SciTE v 3.4.1 by Neil Hodgson. (Jos)
   - Fixed hardcrash in case a very long error line is displayed without spaces.
*** Totally re-written the logic used in AutoItIndentFix.lua to better handle Auto Indent corrections.
*** Updated AutoIt3Wrapper 2.2.0.2 (Jos)
    - Added to option to add Environment variables to #AutoIt3Wrapper directives.
*** Updated SciTEConfig v1.6.11.13
    - Fixed issue with Save+Apply asking again to update the settings. (Jos)
    - Fixed issue with 3 Checkboxes causing a flicker of the Status field. (Jos)
    - Fixed issue in UCTManager. (Melba23)
*** Updated Tidy v2.4.1.5 (Jos)
    - Several minor spacing fixes with new syntax variations.
    - Changed the logic to restore the Folds, Bookmarks, initial line displayed and caret position to make it
      work on multiple instances of SciTE and better restore the original layout.
    - Fixed bug when using more than 200 include files.
    - Fixed writing Indent characters in Commentblocks for empty lines.
    - Fixed writing ending CRLF in case End_With_NewLine=0 when in commentblock or on commentline.
*** Updated Au3Stripper v1.2.1.0 (Jos)
    - Fixed lexing issue which was in some occasions stripping variables while being used.
    - Fixed issue when /MO is specified to ensure no other option is performed crippling the output script.
    - Fixed bug when using more than 200 include files.
*** Updated SciTEJump to the latest version v2.18.103.243 (guinness)
--------------------------------------------------------------------------------------------------

==> ScitillaHistory page containing all SciTE/Scintilla updates.
==> Visit the SciTE4AutoIt3 Download page for the latest versions
==> Check the newly formatted online documentation for an overview of all extras you get with this installer.

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

Also SciTE Jump was updated as part this release :)

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

  • Developers
Posted
  On 5/31/2014 at 10:31 AM, guinness said:

Also SciTE Jump was updated as part this release :)

Fixed the history above and on the website. Helpfile will contain the updated history next time. :)

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

Running tidy on this line:

GUISetFont((8.5 / GetDPI_Ratio($main_gui)), $FW_MEDIUM, 0, "Segoe UI", $main_gui, $CLEARTYPE_QUALITY)

Produces this:

GUISetFont(((8.5 / GetDPI_Ratio($main_gui)), $FW_MEDIUM, 0, "Segoe UI", $main_gui, $CLEARTYPE_QUALITY)

Note the added unbalanced comma.

  • Developers
Posted
  On 6/1/2014 at 8:31 PM, jaberwacky said:

Running tidy on this line:

GUISetFont((8.5 / GetDPI_Ratio($main_gui)), $FW_MEDIUM, 0, "Segoe UI", $main_gui, $CLEARTYPE_QUALITY)

Produces this:

GUISetFont(((8.5 / GetDPI_Ratio($main_gui)), $FW_MEDIUM, 0, "Segoe UI", $main_gui, $CLEARTYPE_QUALITY)

Note the added unbalanced comma.

When I copy the first line into a test.au3 and run Tidy, I don't see this happening.

What do I need to do to replicate this?

Using Tidy v2.4.1.5

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

comma ??? and I thought that the problem is the third bracket ? first char on the left from 8.5

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)

High strangeness. If I put that line into its own au3 by itself then this still happens.  I am running Tidy -- 2.4.1.5.  I blanked out my user properties file to see if that stops it but no joy.

Don't really know what other possibilities to eliminate.

Win7Prox64.  Latest SciTE4AutoIt3 and latest AutoIt3.

Edit: here's the original file just in case:

#include-once

#Region ; Includes
#include <GUIconstantsEx.au3>

#include <Windowsconstants.au3>

#include <UpDownconstants.au3>

#include <Tabconstants.au3>

#include <constants.au3>

#include <WinAPI.au3>

#include <Buttonconstants.au3>

#include "ToolTip.au3"

#include "GUIScrollbars_Ex.au3"

#include "StringSize.au3"
#EndRegion

Opt("WinTitleMatchMode", 2) ; needed for SciTE window resizing

Opt("GuiResizeMode", ($GUI_DOCKSIZE + $GUI_DOCKTOP + $GUI_DOCKLEFT))

Opt("GUIEventOptions", 1)

#Region ; GUI
#Region ; Globals
Enum Step 5 $padding = 5, $padding2, $padding3, $padding4, $padding5

Const $maximize_width  = 475
Const $maximize_height = 765

Const $scrollbar_width = 15

Const $tab_width  = 475 - $padding3 - 3
Const $tab_height = 680

Const $group_spacing = $padding

Const $group_width = $tab_width - $padding2

Const $combo_height = 10

Const $button_width  = 80
Const $button_height = 17

Const $label_height = 13

Const $input_length = 35
Const $input_height = 17

Const $row = 20

Enum Step 20 $row1 = 18, $row2, $row3, $row4, $row5, $row6, $row7, $row8, $row9, $row10, $row11, $row12, $row13 ; step is == $row
#EndRegion

Const $main_gui = GUICreate('', -1, -1, -1, -1, BitOr($WS_MAXIMIZEBOX, $WS_MINIMIZEBOX, $WS_SIZEBOX, $WS_SYSMENU), $WS_EX_TOPMOST)

GUISetFont((8.5 / GetDPI_Ratio($main_gui)), $FW_MEDIUM, 0, "Segoe UI", $main_gui, $CLEARTYPE_QUALITY)

_GUIScrollbars_Generate($main_gui, 0, 0, 0, 0, True)

#Region ; File Menu Items
#Region ; File
Const $file_menu_file = GUICtrlCreateMenu    ("&File")
Const $file_menu_exit = GUICtrlCreateMenuItem("&Exit", $file_menu_file)
#EndRegion

#Region ; Theme
Const $file_menu_theme         = GUICtrlCreateMenu    ("&Theme")
Const $file_menu_load_theme    = GUICtrlCreateMenuItem("&Load Theme",       $file_menu_theme)
Const $file_menu_default_theme = GUICtrlCreateMenuItem("&Default Theme",  $file_menu_theme)
Const $file_menu_reload        = GUICtrlCreateMenuItem("&Reload Theme",     $file_menu_theme)
Const $file_menu_theme_save    = GUICtrlCreateMenuItem("&Save Theme",         $file_menu_theme)
Const $file_menu_theme_saveas  = GUICtrlCreateMenuItem("Save Theme &As",    $file_menu_theme)
Const $file_menu_update_tidy   = GUICtrlCreateMenuItem("&Update Tidy",      $file_menu_theme)
#EndRegion

#Region ; Versions
Const $file_menu_versions                        = GUICtrlCreateMenu    ("Versions")
Const $file_menu_versions_au3check_beta          = GUICtrlCreateMenuItem("AU3Check Beta",          $file_menu_versions)
Const $file_menu_versions_au3check_production    = GUICtrlCreateMenuItem("AU3Check Production",    $file_menu_versions)
Const $file_menu_versions_au3stripper            = GUICtrlCreateMenuItem("AU3Stripper",            $file_menu_versions)
Const $file_menu_versions_autoit3_beta           = GUICtrlCreateMenuItem("AutoIt3 Beta",           $file_menu_versions)
Const $file_menu_versions_autoit3_production     = GUICtrlCreateMenuItem("AutoIt3 Production",     $file_menu_versions)
Const $file_menu_versions_autoit3wrapper         = GUICtrlCreateMenuItem("AutoIt3Wrapper",         $file_menu_versions)
Const $file_menu_versions_autoit3wrappertopragma = GUICtrlCreateMenuItem("AutoIt3WrapperToPragma", $file_menu_versions)
Const $file_menu_versions_koda                   = GUICtrlCreateMenuItem("Koda",                   $file_menu_versions)
Const $file_menu_versions_scite                  = GUICtrlCreateMenuItem("SciTE",                  $file_menu_versions)
Const $file_menu_versions_sciteconfig            = GUICtrlCreateMenuItem("SciTEConfig",            $file_menu_versions)
Const $file_menu_versions_scite_jump             = GUICtrlCreateMenuItem("SciTE Jump",             $file_menu_versions)
Const $file_menu_versions_tidy                   = GUICtrlCreateMenuItem("Tidy",                   $file_menu_versions)
#EndRegion

#Region ; Extras
Const $file_menu_extras_abbrevman = GUICtrlCreateMenuItem("Abbrev Manager",      -1)
Const $file_menu_extras_uctman    = GUICtrlCreateMenuItem("UserCallTip Manager", -1)
#EndRegion
#EndRegion

#Region ; Context Menu
Const $h_context_menu               = GUICtrlCreateContextMenu()
Const $h_context_menu_load_theme    = GUICtrlCreateMenuItem("Load Theme",                   $h_context_menu)
Const $h_context_menu_default_theme = GUICtrlCreateMenuItem("Default Theme",          $h_context_menu)
Const $h_context_menu_reload_theme  = GUICtrlCreateMenuItem("Reload Theme",                 $h_context_menu)
Const $h_context_menu_save_theme    = GUICtrlCreateMenuItem("Save Theme",                   $h_context_menu)
Const $h_context_menu_save_theme_as = GUICtrlCreateMenuItem("Save Theme As",                $h_context_menu)
Const $h_context_menu_update_tidy   = GUICtrlCreateMenuItem("Update Tidy",                  $h_context_menu)
Const $h_context_menu_abbrevman     = GUICtrlCreateMenuItem("Abbrev Manager",           $h_context_menu)
Const $h_context_menu_uctman        = GUICtrlCreateMenuItem("User Calltip Manager", $h_context_menu)
#EndRegion

Const $h_tooltip = _GUIToolTip_Create($main_gui)

#Region ; Tabs
Const $main_tab = GUICtrlCreateTab($padding, 0, $tab_width, $tab_height)

#include "SciTE1\SciTE1 GUI.au3"

#include "SciTE2\SciTE2 GUI.au3"

#include "SciTE3\SciTE3 GUI.au3"

#include "Theme\Theme GUI.au3"

#include "Tools\Tools GUI.au3"

#include "SciTE4AutoIt3\SciTE4AutoIt3 GUI.au3"

#include "Tidy\Tidy GUI.au3"

GUICtrlCreateTabItem('')
#EndRegion

#Region ; Action Buttons
Const $action_load_theme    = create_button("&Load",           $padding2,                                ($tab_height + $padding),  $button_width)
Const $action_save        = create_button("&Save",         ($padding3 + $button_width),              ($tab_height + $padding),  $button_width)
Const $action_reload      = create_button("&Reload",       ($padding4 + $button_width * 2),          ($tab_height + $padding),  $button_width)
Const $action_tidy_update = create_button("&Update Tidy",  ($padding5 + $button_width * 3),          ($tab_height + $padding),  $button_width)
Const $action_exit        = create_button("&Exit",         ($tab_width - $button_width - $padding),  ($tab_height + $padding),  $button_width)
#EndRegion

#Region ; Controls
#include "Color Box.au3"

Func create_up_down_box(Const $text, Const $left, Const $top, Const $min, Const $max)
  create_label($text,   $left, $top)

  Local Const $width = _StringSize($max) + $input_length

  Local Const $up_down_box = GUICtrlCreateInput('', ($left + _StringSize($text) + $padding), ($top - 2), $width, ($input_height + 1), $ES_NUMBER)

  GUICtrlCreateUpdown($up_down_box, ($UDS_ARROWKEYS + $UDS_NOTHOUSANDS))

  GUICtrlSetLimit(-1, $max, $min)

  Return $up_down_box
EndFunc

Func create_checkbox(Const $text, Const $left, Const $top, Const $style = $BS_AUTOCHECKBOX)
  Return GUICtrlCreateCheckbox($text, $left, $top, (_StringSize($text) + 20), 15, $style)
EndFunc

Func create_label(Const $text, Const $left, Const $top, Const $width = -1, Const $height = -1, Const $style = -1)
  Return GUICtrlCreateLabel($text, $left, $top, (($width = -1) ? _StringSize($text) : $width), (($height = -1) ? $label_height : $height), $style)
EndFunc

Func create_button(Const $text, Const $left, Const $top, Const $width = -1, Const $height = -1, Const $style = -1)
  Return GUICtrlCreateButton($text, $left, $top, (($width = -1) ? (_StringSize($text) + 20) : $width), (($height = -1) ? ($button_height + 2) : $height), $style)
EndFunc

Func create_input(Const $text, Const $left, Const $top, Const $width = -1, Const $height = -1, Const $style = -1)
  Return GUICtrlCreateInput($text, $left, $top, (($width = -1) ? _StringSize($text) : $width), (($height = -1) ? $input_height : $height), $style)
EndFunc

Func create_radio(Const $text, Const $left, Const $top)
  Return GUICtrlCreateRadio($text, $left, $top, (_StringSize($text) + 15), 15)
EndFunc
#EndRegion

Func GetDPI_Ratio(Const $gui) ; Spiff59 -- http://www.autoitscript.com/forum/topic/154885-autoit-and-dpi-awareness/?p=1118815
  Local Const $user32_dll = DllOpen("User32.dll")

  Local Const $hDC = DllCall($user32_dll, "long", "GetDC", "long", $gui)

  Local Const $aRet = DllCall("gdi32.dll", "long", "GetDeviceCaps", "long", $hDC[0], "long", 90)[0]

  DllCall($user32_dll, "long", "ReleaseDC", "long", $gui, "long", $hDC)

  DllClose($user32_dll)

  Return $aRet ? ($aRet / 96.0) : 1.0
EndFunc
#EndRegion

Edit 2: It just occurred to me to include my tidy.ini:

[ProgramSettings]
tabchar=2
region_indent=0
Skip_CommentBlock=0
proper=1
properconstants=1
vars=3
delim=0
Remove_Empty_Lines=2
End_With_NewLine=0
Sort_funcs=0
Sort_funcs_Comments=0
endfunc_comment=-1
endregion_comment=-1
KeepNVersions=5
backupDir=D:\Programming\AutoIt\My Scripts\SciTE4AutoIt3 Customizer\SciTE Customization GUI\Backup
Gen_Doc=0
Gen_Doc_Show=0
ShowConsoleInfo=9
ShowDiffPgm=C:\Progra~1\WinMerge\winmerge.exe '%new%' '%old%'
Edited by jaberwacky
  • Moderators
Posted

jaberwacky,

Does not happen to me - Win7 HP x32, AutoIt v3.3.12.0, Tidy v2.4.1.5 from Jos' installer released yesterday. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

  • Developers
Posted (edited)
  On 6/1/2014 at 9:16 PM, jaberwacky said:

 

High strangeness. If I put that line into its own au3 by itself then this still happens.  I am running Tidy -- 2.4.1.5.  I blanked out my user properties file to see if that stops it but no joy.

Don't really know what other possibilities to eliminate.

I am also seeing the issue now and will have a look tomorrow.

It is related to this setting in tidy.ini:

delim=0

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/1/2014 at 9:33 PM, jaberwacky said:

Ok, weird.  Weeeeiiirrrd.

Not so weird, the Proper=0 setting will totally skip the proper logic thus will not show the issue any more.

The delim=0/1 setting is just about the spacing around delimiters, which is part of the whole proper process.

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

Toggling Au3Stripper setting causes SciTE internal variables to be replaced with current values.

Initial Code:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=test.exe
#AutoIt3Wrapper_Res_Fileversion=1.0.0.13
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Run_After=start test.bat %in% %out% %fileversion%
#AutoIt3Wrapper_Run_After=start test.bat "%in%" "%out%" "%fileversion%"
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

After enabling Stripper:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=test.exe
#AutoIt3Wrapper_Res_Fileversion=1.0.0.13
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Run_After=start test.bat D:\tmp\test.au3 test.exe 1.0.0.13
#AutoIt3Wrapper_Run_After=start test.bat "D:\tmp\test.au3" "test.exe" "1.0.0.13"
#AutoIt3Wrapper_Run_Au3Stripper=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
.... GOTOs? We don't need no stinkin' GOTOs! ....
  • Developers
Posted (edited)
  On 6/1/2014 at 11:37 PM, Loz said:

Toggling Au3Stripper setting causes SciTE internal variables to be replaced with current values.

Initial Code:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=test.exe
#AutoIt3Wrapper_Res_Fileversion=1.0.0.13
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Run_After=start test.bat %in% %out% %fileversion%
#AutoIt3Wrapper_Run_After=start test.bat "%in%" "%out%" "%fileversion%"
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

After enabling Stripper:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=test.exe
#AutoIt3Wrapper_Res_Fileversion=1.0.0.13
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Run_After=start test.bat D:\tmp\test.au3 test.exe 1.0.0.13
#AutoIt3Wrapper_Run_After=start test.bat "D:\tmp\test.au3" "test.exe" "1.0.0.13"
#AutoIt3Wrapper_Run_Au3Stripper=y
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

I need more info how to replicate what you are seeing as this is not clear to me at this moment.

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/1/2014 at 8:31 PM, jaberwacky said:

Running tidy on this line:

GUISetFont((8.5 / GetDPI_Ratio($main_gui)), $FW_MEDIUM, 0, "Segoe UI", $main_gui, $CLEARTYPE_QUALITY)

Produces this:

GUISetFont(((8.5 / GetDPI_Ratio($main_gui)), $FW_MEDIUM, 0, "Segoe UI", $main_gui, $CLEARTYPE_QUALITY)

Note the added unbalanced comma.

Please try the current Beta Tidy to see if that fixes it all for you.

Cheers

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/2/2014 at 1:10 PM, Exit said:

AutoItWrapper in new SciTE4AutoIt replaces %out% with a null string.

#AutoIt3Wrapper_Run_After=start %out%
MsgBox(Default, Default, "Hello world",0)

Old SciTE4Autoit shows Messagebox.

New SciTE4AutoIt shows a CMD window due to START without parameters.

Shoot ..  This is a regression from the %EnvironmentVariables% replacement implementation.

Please try the current Beta to see if that resolves it for you.

Cheers

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
  On 6/2/2014 at 6:02 PM, Jos said:

Shoot ..  This is a regression from the %EnvironmentVariables% replacement implementation.

Please try the current Beta to see if that resolves it for you.

Cheers

Jos

Confirmed as fixed. Thanks.

App: Au3toCmd              UDF: _SingleScript()                             

Posted

Hi Jos. I think you included an older version of AutoItIndentFix.lua in the installer than you had in the beta directory most recently. Common.lua seems up to date however.

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

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